Interface EntityTemplate
- All Known Implementing Classes:
EntityTemplateImpl
public interface EntityTemplate
An extension of a (triple-based) construct template where:
- a set of nodes can be marked as 'entity nodes' which are starting points for traversing the template.
- every blank node can be mapped to a tuple of expressions whose evaluation over a binding
yields an identity of the blank node.
- Author:
- raven
-
Method Summary
Modifier and TypeMethodDescriptionapplyNodeTransform(org.apache.jena.sparql.graph.NodeTransform nodeTransform) Map<org.apache.jena.graph.Node,org.apache.jena.sparql.expr.ExprList> List<org.apache.jena.graph.Node>org.apache.jena.sparql.syntax.Templatestatic EntityTemplatemerge(EntityTemplate... templates) Combine the information from multiple EntityTemplates into a single one This operation should only be performed after processing variable names such that no clashes occur.voidsetTemplate(org.apache.jena.sparql.syntax.Template template)
-
Method Details
-
cloneTemplate
EntityTemplate cloneTemplate() -
getTemplate
org.apache.jena.sparql.syntax.Template getTemplate() -
setTemplate
void setTemplate(org.apache.jena.sparql.syntax.Template template) -
getEntityNodes
List<org.apache.jena.graph.Node> getEntityNodes() -
getBnodeIdMapping
Map<org.apache.jena.graph.Node,org.apache.jena.sparql.expr.ExprList> getBnodeIdMapping() -
applyNodeTransform
-
merge
Combine the information from multiple EntityTemplates into a single one This operation should only be performed after processing variable names such that no clashes occur.- Parameters:
templates-- Returns:
-