org.openanzo.glitter.rdf
Class Triple
java.lang.Object
org.openanzo.glitter.rdf.TriplePattern
org.openanzo.glitter.rdf.Triple
public class Triple
- extends TriplePattern
A Triple is a TriplePattern without any variables.
- Author:
- lee
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Triple
public Triple(RDFTerm s,
RDFTerm p,
RDFTerm o)
- Construct a triple from three
RDFTerms.
- Parameters:
s - p - o -
entails
public PatternSolution entails(TriplePattern other)
- Determines whether this triple entails the given
TriplePattern, and if so, what
bindings are necessary to make that so. (This is effectively subgraph matching.)
entails it
- Parameters:
other - The TriplePattern that may contain Bindables to be bound
in defining the entailment relationship.
- Returns:
- A
PatternSolution that, when applied to other results in this Triple.
If this triple does not entail other, then null is returned.
Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.