public class BigdataGraphQuery extends Object implements com.tinkerpop.blueprints.GraphQuery
Modifier and Type | Field and Description |
---|---|
protected org.openrdf.model.URI |
EDGE
URI used to represent a Edge.
|
protected static List<Class> |
knownPredicates
These are the only Predicate implementations we handle currently.
|
protected org.openrdf.model.URI |
LABEL
URI used for labeling edges.
|
protected static org.apache.log4j.Logger |
log |
protected org.openrdf.model.URI |
TYPE
URI used for typing elements.
|
protected org.openrdf.model.URI |
VERTEX
URI used to represent a Vertex.
|
Constructor and Description |
---|
BigdataGraphQuery(BigdataGraph graph) |
Modifier and Type | Method and Description |
---|---|
Iterable<com.tinkerpop.blueprints.Edge> |
edges()
Execute the query and return the matching edges.
|
com.tinkerpop.blueprints.GraphQuery |
has(String key)
Filter out elements that do not have a property with provided key.
|
com.tinkerpop.blueprints.GraphQuery |
has(String key,
Object value)
Filter out elements that do not have a property value equal to provided value.
|
com.tinkerpop.blueprints.GraphQuery |
has(String key,
com.tinkerpop.blueprints.Predicate predicate,
Object value)
Filter out the element if it does not have a property with a comparable value.
|
<T extends Comparable<T>> |
has(String key,
T value,
com.tinkerpop.blueprints.Query.Compare compare)
Deprecated.
|
com.tinkerpop.blueprints.GraphQuery |
hasNot(String key)
Filter out elements that have a property with provided key.
|
com.tinkerpop.blueprints.GraphQuery |
hasNot(String key,
Object value)
Filter out elements that have a property value equal to provided value.
|
<T extends Comparable<?>> |
interval(String key,
T startValue,
T endValue)
Filter out the element of its property value is not within the provided interval.
|
com.tinkerpop.blueprints.GraphQuery |
limit(int limit)
Filter out the element if the take number of incident/adjacent elements to retrieve has already been reached.
|
protected String |
toQueryStr(org.openrdf.model.URI type)
Generate the SPARQL query.
|
Iterable<com.tinkerpop.blueprints.Vertex> |
vertices()
Execute the query and return the vertices on the other end of the matching edges.
|
protected static final transient org.apache.log4j.Logger log
protected static List<Class> knownPredicates
protected final org.openrdf.model.URI TYPE
protected final org.openrdf.model.URI VERTEX
protected final org.openrdf.model.URI EDGE
protected final org.openrdf.model.URI LABEL
public BigdataGraphQuery(BigdataGraph graph)
public com.tinkerpop.blueprints.GraphQuery has(String key)
has
in interface com.tinkerpop.blueprints.GraphQuery
has
in interface com.tinkerpop.blueprints.Query
key
- the key of the propertypublic com.tinkerpop.blueprints.GraphQuery hasNot(String key)
hasNot
in interface com.tinkerpop.blueprints.GraphQuery
hasNot
in interface com.tinkerpop.blueprints.Query
key
- the key of the propertypublic com.tinkerpop.blueprints.GraphQuery has(String key, Object value)
has
in interface com.tinkerpop.blueprints.GraphQuery
has
in interface com.tinkerpop.blueprints.Query
key
- the key of the propertyvalue
- the value to check againstpublic com.tinkerpop.blueprints.GraphQuery hasNot(String key, Object value)
hasNot
in interface com.tinkerpop.blueprints.GraphQuery
hasNot
in interface com.tinkerpop.blueprints.Query
key
- the key of the propertyvalue
- the value to check againstpublic com.tinkerpop.blueprints.GraphQuery has(String key, com.tinkerpop.blueprints.Predicate predicate, Object value)
has
in interface com.tinkerpop.blueprints.GraphQuery
has
in interface com.tinkerpop.blueprints.Query
key
- the key of the propertypredicate
- the comparator to use for comparisonvalue
- the value to check against@Deprecated public <T extends Comparable<T>> com.tinkerpop.blueprints.GraphQuery has(String key, T value, com.tinkerpop.blueprints.Query.Compare compare)
has
in interface com.tinkerpop.blueprints.GraphQuery
has
in interface com.tinkerpop.blueprints.Query
key
- the key of the propertyvalue
- the value to check againstcompare
- the comparator to use for comparisonpublic <T extends Comparable<?>> com.tinkerpop.blueprints.GraphQuery interval(String key, T startValue, T endValue)
interval
in interface com.tinkerpop.blueprints.GraphQuery
interval
in interface com.tinkerpop.blueprints.Query
key
- the key of the propertystartValue
- the inclusive start value of the intervalendValue
- the exclusive end value of the intervalpublic com.tinkerpop.blueprints.GraphQuery limit(int limit)
limit
in interface com.tinkerpop.blueprints.GraphQuery
limit
in interface com.tinkerpop.blueprints.Query
limit
- the take number of elements to returnpublic Iterable<com.tinkerpop.blueprints.Edge> edges()
edges
in interface com.tinkerpop.blueprints.Query
public Iterable<com.tinkerpop.blueprints.Vertex> vertices()
vertices
in interface com.tinkerpop.blueprints.Query
protected String toQueryStr(org.openrdf.model.URI type)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.