Interface TriplePattern
- All Superinterfaces:
Query
,SPARQLGraphPattern
- All Known Implementing Classes:
TriplePatternImpl
This interface represents triple patterns.
-
Method Summary
Modifier and TypeMethodDescriptionApplies the given solution mapping to this graph pattern and returns the resulting graph pattern in which all occurrences of the variables bound by the given solution mapping are replaced by the RDF terms that the solution mappings assigns to these variables.org.apache.jena.graph.Triple
Returns a representation of this triple pattern as an object of the classTriple
of the Jena API.Return a BGP that contains this triple pattern plus all triple patterns of the given BGP.mergeWith
(TriplePattern other) Returns a BGP that contains this triple pattern plus all triple patterns of the given BGP.int
Returns the number of distinct variables in this triple pattern.toString()
Returns a string representation of the tripleMethods inherited from interface se.liu.ida.hefquin.base.query.SPARQLGraphPattern
getAllMentionedTPs, getAllMentionedVariables, getCertainVariables, getExpectedVariables, getNumberOfTermMentions, getNumberOfVarMentions, getPossibleVariables, mergeWith, mergeWith, mergeWith
-
Method Details
-
asJenaTriple
org.apache.jena.graph.Triple asJenaTriple()Returns a representation of this triple pattern as an object of the classTriple
of the Jena API. -
numberOfVars
int numberOfVars()Returns the number of distinct variables in this triple pattern. -
toString
-
applySolMapToGraphPattern
TriplePattern applySolMapToGraphPattern(SolutionMapping sm) throws VariableByBlankNodeSubstitutionException Description copied from interface:SPARQLGraphPattern
Applies the given solution mapping to this graph pattern and returns the resulting graph pattern in which all occurrences of the variables bound by the given solution mapping are replaced by the RDF terms that the solution mappings assigns to these variables.- Specified by:
applySolMapToGraphPattern
in interfaceSPARQLGraphPattern
- Throws:
VariableByBlankNodeSubstitutionException
- if one of the variables would be replaced by a blank node
-
mergeWith
Returns a BGP that contains this triple pattern plus all triple patterns of the given BGP. This method is a more specific version ofSPARQLGraphPattern.mergeWith(SPARQLGraphPattern)
. -
mergeWith
Return a BGP that contains this triple pattern plus all triple patterns of the given BGP. This method is a more specific version ofSPARQLGraphPattern.mergeWith(SPARQLGraphPattern)
.
-