|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.nsdl.mptstore.query.component.GraphPattern
public class GraphPattern
A set of concrete triple patterns and value constraints defining an RDF subgraph.
Triple patterns and filters (NodeFilter constraints on triple
value ranges) are as necessary to build a graph pattern
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.nsdl.mptstore.query.component.QueryElement |
|---|
QueryElement.Type |
| Constructor Summary | |
|---|---|
GraphPattern()
|
|
| Method Summary | |
|---|---|
void |
addFilter(NodeFilter<Node> filter)
Add the given node filter to the list of filters. |
void |
addTriplePattern(TriplePattern s)
Add a triple pattern to the list of patterns. |
java.util.List<NodeFilter<Node>> |
getFilters()
Get the list of filters. |
java.util.List<TriplePattern> |
getTriplePatterns()
Get the list of patterns. |
QueryElement.Type |
getType()
Get the type of this element. |
void |
remove(TriplePattern s)
Remove the given triple pattern from the list of patterns. |
void |
removeFilter(java.lang.String filter)
Remove the given node filter from the list of filters. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GraphPattern()
| Method Detail |
|---|
public QueryElement.Type getType()
getType in interface QueryElementpublic java.util.List<TriplePattern> getTriplePatterns()
public java.util.List<NodeFilter<Node>> getFilters()
public void addTriplePattern(TriplePattern s)
s - the triple pattern to add.public void remove(TriplePattern s)
s - the triple pattern to remove.public void addFilter(NodeFilter<Node> filter)
filter - the node filter to add.public void removeFilter(java.lang.String filter)
filter - the node filter to remove.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 | ||||||||