public class Pattern extends Object
Constructor and Description |
---|
Pattern(Element S,
Element P,
Element O) |
Modifier and Type | Method and Description |
---|---|
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() |
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 matchCopyright ? 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP