|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.jena.graph.query.Pattern
public class Pattern
A Pattern represents a matching triple; it is composed of S, P, and O Elements.
Field Summary | |
---|---|
Element |
O
|
Element |
P
|
Element |
S
|
Constructor Summary | |
---|---|
Pattern(Element S,
Element P,
Element O)
|
Method Summary | |
---|---|
TripleMatch |
asTripleMatch(Domain d)
Convert a Pattern into a TripleMatch by making a Triple who's Nodes are the conversions of the constituent elements. |
boolean |
match(Domain d,
Triple t)
Answer true iff this pattern, given the values for variables as found in a given Domain, matches the given triple; update the Domain with any variable bindings. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final Element S
public final Element P
public final Element O
Constructor Detail |
---|
public Pattern(Element S, Element P, Element O)
Method Detail |
---|
public TripleMatch asTripleMatch(Domain d)
public boolean match(Domain d, Triple t)
d
- the Domain with the current bound variable values (and slots for the rest)t
- the concrete triple to match
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |