public abstract class ObjectTemplateFactory extends AbstractTemplateFactory
termFactory| Modifier | Constructor and Description |
|---|---|
protected |
ObjectTemplateFactory(TermFactory termFactory) |
| Modifier and Type | Method and Description |
|---|---|
static String |
format(String iriOrBnodeTemplate,
it.unibz.inf.ontop.com.google.common.collect.ImmutableList<?> args)
This method instantiates the input uri template by arguments
|
protected it.unibz.inf.ontop.com.google.common.collect.ImmutableList<ImmutableTerm> |
getTemplateTerms(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<Template.Component> components) |
String |
serializeTemplateTerm(ImmutableFunctionalTerm functionalTerm)
Converts a IRI or BNode template function into a template
|
getComponents, getVariable, templateComponentToTermclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetColumn, getConstant, getTemplateTermprotected ObjectTemplateFactory(TermFactory termFactory)
protected it.unibz.inf.ontop.com.google.common.collect.ImmutableList<ImmutableTerm> getTemplateTerms(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<Template.Component> components)
public String serializeTemplateTerm(ImmutableFunctionalTerm functionalTerm)
For instance:
http://example.org/{}/{}/{}(X, Y, X) -> "http://example.org/{X}/{Y}/{X}"
functionalTerm - URI or BNode Functionpublic static String format(String iriOrBnodeTemplate, it.unibz.inf.ontop.com.google.common.collect.ImmutableList<?> args)
Example:
If args = ["A", 1], then
URITemplates.format("http://example.org/{}/{}", args)
results "http://example.org/A/1"
Copyright © 2009–2021 Free University of Bozen-Bolzano. All rights reserved.