| java.lang.Object com.hp.hpl.jena.graph.query.Pattern
Pattern | public class Pattern (Code) | | A Pattern represents a matching triple; it is composed of S, P, and O Elements.
author: hedgehog |
Method Summary | |
public TripleMatch | asTripleMatch(Domain d) Convert a Pattern into a TripleMatch by making a Triple who's Nodes are the
conversions of the constituent elements. | public 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. | public String | toString() |
asTripleMatch | public TripleMatch asTripleMatch(Domain d)(Code) | | Convert a Pattern into a TripleMatch by making a Triple who's Nodes are the
conversions of the constituent elements.
|
match | public boolean match(Domain d, Triple t)(Code) | | 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.
Parameters: d - the Domain with the current bound variable values (and slots for the rest) Parameters: t - the concrete triple to match true iff this pattern matches the triple [and side-effects the domain] |
|
|