Interface BGP
- All Superinterfaces:
Query
,SPARQLGraphPattern
- All Known Implementing Classes:
BGPImpl
,StarPattern
This interface represents basic graph patterns (BGPs).
-
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.Returns an unmodifiable set of triple patterns.Return a BGP that contains all triple patterns of this BGP plus all triple patterns of the given BGP.Returns a BGP that contains all triple patterns of this BGP plus the given triple pattern.toString()
Returns a string representation of the BGPMethods inherited from interface se.liu.ida.hefquin.base.query.SPARQLGraphPattern
getAllMentionedTPs, getAllMentionedVariables, getCertainVariables, getExpectedVariables, getNumberOfTermMentions, getNumberOfVarMentions, getPossibleVariables, mergeWith, mergeWith, mergeWith
-
Method Details
-
getTriplePatterns
Set<TriplePattern> getTriplePatterns()Returns an unmodifiable set of triple patterns. -
toString
-
applySolMapToGraphPattern
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 all triple patterns of this BGP plus the given triple pattern. This method is a more specific version ofSPARQLGraphPattern.mergeWith(SPARQLGraphPattern)
. -
mergeWith
Return a BGP that contains all triple patterns of this BGP plus all triple patterns of the given BGP. This method is a more specific version ofSPARQLGraphPattern.mergeWith(SPARQLGraphPattern)
.
-