|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nsdl.mptstore.query.component.MappableTriplePattern
public class MappableTriplePattern
Represents a pattern that defines matching triples.
A triple pattern contains three MappableNodePattern
s
representing the subject, predicate, and object of a triple.
In addition to representing a particular triple pattern, a TriplePattern may be bound to a apecific table (logically, the one that maps to its predicate). When bound to a table, the TriplePattern may be used for selecting triples from its table or for joining triple selection results with other TriplePatterns.
Constructor Summary | |
---|---|
MappableTriplePattern(MappableNodePattern<SubjectNode> s,
MappableNodePattern<PredicateNode> p,
MappableNodePattern<ObjectNode> o)
Construct a mappable triple pattern with the given component patterns. |
|
MappableTriplePattern(TriplePattern pattern)
Construct a mappable triple pattern using the existing triple pattern. |
Method Summary | |
---|---|
void |
bindTo(MPTable t)
Bind this triple pattern to the given table. |
java.util.Set<MappableNodePattern<? extends Node>> |
getNodes()
Get the subject and object node patterns in a set. |
MappableNodePattern<ObjectNode> |
getObject()
Get the object pattern. |
MappableNodePattern<PredicateNode> |
getPredicate()
Get the predicate pattern. |
MappableNodePattern<SubjectNode> |
getSubject()
Get the subject pattern. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MappableTriplePattern(MappableNodePattern<SubjectNode> s, MappableNodePattern<PredicateNode> p, MappableNodePattern<ObjectNode> o)
s
- the subject pattern.p
- the predicate pattern.o
- the object pattern.public MappableTriplePattern(TriplePattern pattern)
pattern
- the existing triple pattern.Method Detail |
---|
public MappableNodePattern<SubjectNode> getSubject()
getSubject
in interface TriplePattern
public MappableNodePattern<PredicateNode> getPredicate()
getPredicate
in interface TriplePattern
public MappableNodePattern<ObjectNode> getObject()
getObject
in interface TriplePattern
public void bindTo(MPTable t)
t
- the table to bind to.public java.util.Set<MappableNodePattern<? extends Node>> getNodes()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |