| Constructor and Description |
|---|
VertexImpl(Graph graph,
org.openrdf.model.Resource id) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Edge e) |
void |
addProperty(org.openrdf.model.URI property,
org.openrdf.model.Value value) |
List<org.openrdf.model.Value> |
asList() |
Graph |
asNamedGraph()
Get a representation of this Vertex as a named graph.
|
Graph |
assertNamedGraph()
Assert that this Vertex is a named graph and get that graph.
|
Traversal |
asTraversal() |
Double |
doubleValue(org.openrdf.model.URI predicate) |
Graph |
getGraph()
Get the graph that contains this vertex.
|
org.openrdf.model.Resource |
getId()
The identifier for this Vertex
|
org.openrdf.model.Resource |
getResource(org.openrdf.model.URI predicate)
Get the value of a specified property as a Resource
|
org.openrdf.model.URI |
getURI(org.openrdf.model.URI predicate)
Get the value of a specified property as a URI.
|
org.openrdf.model.Value |
getValue(org.openrdf.model.URI predicate)
Get the value of a specified property.
|
Set<org.openrdf.model.Value> |
getValueSet(org.openrdf.model.URI predicate)
Get the set of values of a specified property
|
Vertex |
getVertex(org.openrdf.model.URI predicate)
Get the value of a property as a Vertex
|
Set<Vertex> |
getVertexSet(org.openrdf.model.URI predicate)
Get the set of values of a specified property as a set of vertices.
|
boolean |
hasEdge(Edge edge) |
boolean |
hasProperty(org.openrdf.model.URI predicate,
org.openrdf.model.Value value)
Test whether the Vertex has a given value for a specified property.
|
Set<Map.Entry<org.openrdf.model.URI,Set<Edge>>> |
inEdges() |
Set<Edge> |
inEdgeSet()
Returns a set containing all of the incoming edges
|
Set<Edge> |
inProperty(org.openrdf.model.URI predicate)
Get the Set of incoming edges with the specified predicate.
|
Integer |
integerValue(org.openrdf.model.URI predicate) |
boolean |
isList() |
boolean |
isOrphan()
Test whether the Vertex has any incoming edges.
|
Set<Map.Entry<org.openrdf.model.URI,Set<Edge>>> |
outEdges()
Returns a set of entries for the outgoing edges
|
Set<Edge> |
outEdgeSet()
Returns a set containing all of the outgoing edges
|
Set<Edge> |
outProperty(org.openrdf.model.URI predicate)
Get the Set of outgoing edges with the specified predicate.
|
void |
remove(Edge edge) |
String |
stringValue(org.openrdf.model.URI predicate) |
String |
toString() |
Vertex |
vertexValue(org.openrdf.model.URI predicate) |
public VertexImpl(Graph graph, org.openrdf.model.Resource id)
public org.openrdf.model.Resource getId()
Vertexpublic Graph getGraph()
Vertexpublic void add(Edge e)
public Set<Edge> outProperty(org.openrdf.model.URI predicate)
VertexoutProperty in interface Vertexpredicate - The predicate for the outgoing edgespublic Set<Edge> inProperty(org.openrdf.model.URI predicate)
VertexinProperty in interface Vertexpredicate - The predicate for the incoming edgespublic Set<Map.Entry<org.openrdf.model.URI,Set<Edge>>> outEdges()
Vertexpublic Traversal asTraversal()
asTraversal in interface Vertexpublic Graph asNamedGraph()
VertexasNamedGraph in interface Vertexpublic Graph assertNamedGraph()
VertexassertNamedGraph in interface Vertexpublic Set<Edge> outEdgeSet()
VertexoutEdgeSet in interface Vertexpublic Set<Edge> inEdgeSet()
Vertexpublic Set<Vertex> getVertexSet(org.openrdf.model.URI predicate)
VertexgetVertexSet in interface Vertexpublic org.openrdf.model.Value getValue(org.openrdf.model.URI predicate)
throws KonigException
VertexgetValue in interface Vertexpredicate - The predicate that identifies the property whose value is to be returned.KonigExceptionpublic boolean hasProperty(org.openrdf.model.URI predicate,
org.openrdf.model.Value value)
VertexhasProperty in interface Vertexpredicate - The property to be testedvalue - The value to be testedpublic void addProperty(org.openrdf.model.URI property,
org.openrdf.model.Value value)
addProperty in interface Vertexpublic Integer integerValue(org.openrdf.model.URI predicate)
integerValue in interface Vertexpublic String stringValue(org.openrdf.model.URI predicate)
stringValue in interface Vertexpublic Double doubleValue(org.openrdf.model.URI predicate)
doubleValue in interface Vertexpublic Vertex vertexValue(org.openrdf.model.URI predicate)
vertexValue in interface Vertexpublic boolean isOrphan()
Vertexpublic Vertex getVertex(org.openrdf.model.URI predicate) throws KonigException
VertexgetVertex in interface Vertexpredicate - The predicate that identifies the propertyKonigException - If there is more than one value for the specified propertypublic org.openrdf.model.URI getURI(org.openrdf.model.URI predicate)
Vertexpublic Set<org.openrdf.model.Value> getValueSet(org.openrdf.model.URI predicate)
VertexgetValueSet in interface Vertexpublic org.openrdf.model.Resource getResource(org.openrdf.model.URI predicate)
VertexgetResource in interface Vertexpredicate - The predicate that identifies the property whose value is to be returned.Copyright © 2019. All rights reserved.