org.openanzo.glitter.rdf
Class Triple

java.lang.Object
  extended by org.openanzo.glitter.rdf.TriplePattern
      extended by org.openanzo.glitter.rdf.Triple

public class Triple
extends TriplePattern

A Triple is a TriplePattern without any variables.

Author:
lee

Constructor Summary
Triple(RDFTerm s, RDFTerm p, RDFTerm o)
          Construct a triple from three RDFTerms.
 
Method Summary
 PatternSolution entails(TriplePattern other)
          Determines whether this triple entails the given TriplePattern, and if so, what bindings are necessary to make that so.
 
Methods inherited from class org.openanzo.glitter.rdf.TriplePattern
entailedBy, equals, getObject, getPredicate, getSubject, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Triple

public Triple(RDFTerm s,
              RDFTerm p,
              RDFTerm o)
Construct a triple from three RDFTerms.

Parameters:
s -
p -
o -
Method Detail

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.