|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.trippi.TriplePattern
public class TriplePattern
A pattern that can be used to derive a Triple from a Map of Node objects.
Constructor Summary | |
---|---|
TriplePattern(java.lang.Object subject,
java.lang.Object predicate,
java.lang.Object object)
|
Method Summary | |
---|---|
java.lang.Object |
getObject()
Get the object of the pattern. |
java.lang.Object |
getPredicate()
Get the predicate of the pattern. |
java.lang.Object |
getSubject()
Get the subject of the pattern. |
static void |
main(java.lang.String[] args)
|
org.jrdf.graph.Triple |
match(java.util.Map tuple)
Get a Triple that matches this pattern using the provided tuple. |
static TriplePattern[] |
parse(java.lang.String patterns)
|
static java.util.List |
parse(java.lang.String triples,
org.jrdf.graph.GraphElementFactory factory)
Parse and return a Set of Triples, treating variable bindings as anonymous nodes. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TriplePattern(java.lang.Object subject, java.lang.Object predicate, java.lang.Object object) throws TrippiException
TrippiException
Method Detail |
---|
public static TriplePattern[] parse(java.lang.String patterns) throws TrippiException
TrippiException
public static java.util.List parse(java.lang.String triples, org.jrdf.graph.GraphElementFactory factory) throws TrippiException
TrippiException
public java.lang.Object getSubject()
SubjectNode
public java.lang.Object getPredicate()
PredicateNode
public java.lang.Object getObject()
ObjectNode
public org.jrdf.graph.Triple match(java.util.Map tuple) throws TrippiException
TrippiException
- if the Map does not contain a key that
matches a binding name in this pattern.public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |