Package | Description |
---|---|
org.openrdf.model.util |
Modifier and Type | Method and Description |
---|---|
static Value |
GraphUtil.getOptionalObject(Graph graph,
Resource subj,
URI pred,
Resource... contexts)
Gets the object of the statement(s) with the specified subject and
predicate from the specified contexts in the supplied graph.
|
static Literal |
GraphUtil.getOptionalObjectLiteral(Graph graph,
Resource subj,
URI pred)
Utility method that casts the return value of
GraphUtil.getOptionalObject(Graph, Resource, URI, Resource[]) to a Literal,
or throws a GraphUtilException if that value is not a Literal. |
static Resource |
GraphUtil.getOptionalObjectResource(Graph graph,
Resource subj,
URI pred)
Utility method that casts the return value of
GraphUtil.getOptionalObject(Graph, Resource, URI, Resource[]) to a
Resource, or throws a GraphUtilException if that value is not a Resource. |
static URI |
GraphUtil.getOptionalObjectURI(Graph graph,
Resource subj,
URI pred)
Utility method that casts the return value of
GraphUtil.getOptionalObject(Graph, Resource, URI, Resource[]) to a URI, or
throws a GraphUtilException if that value is not a URI. |
static Resource |
GraphUtil.getOptionalSubject(Graph graph,
URI pred,
Value obj,
Resource... contexts)
Gets the subject of the statement(s) with the specified predicate and
object from the specified contexts in the supplied graph.
|
static URI |
GraphUtil.getOptionalSubjectURI(Graph graph,
URI pred,
Value obj,
Resource... contexts)
Utility method that casts the return value of
GraphUtil.getOptionalSubject(Graph, URI, Value, Resource[]) to a URI, or
throws a GraphUtilException if that value is not a URI. |
static Value |
GraphUtil.getUniqueObject(Graph graph,
Resource subj,
URI pred,
Resource... contexts)
Gets the object of the statement(s) with the specified subject and
predicate from the specified contexts in the supplied graph.
|
static Literal |
GraphUtil.getUniqueObjectLiteral(Graph graph,
Resource subj,
URI pred)
Utility method that casts the return value of
GraphUtil.getUniqueObject(Graph, Resource, URI, Resource[]) to a Literal,
or throws a GraphUtilException if that value is not a Literal. |
static Resource |
GraphUtil.getUniqueObjectResource(Graph graph,
Resource subj,
URI pred)
Utility method that casts the return value of
GraphUtil.getUniqueObject(Graph, Resource, URI, Resource[]) to a Resource,
or throws a GraphUtilException if that value is not a Resource. |
static URI |
GraphUtil.getUniqueObjectURI(Graph graph,
Resource subj,
URI pred)
Utility method that casts the return value of
GraphUtil.getUniqueObject(Graph, Resource, URI, Resource[]) to a URI, or
throws a GraphUtilException if that value is not a URI. |
static Resource |
GraphUtil.getUniqueSubject(Graph graph,
URI pred,
Value obj,
Resource... contexts)
Gets the subject of the statement(s) with the specified predicate and
object from the specified contexts in the supplied graph.
|
static URI |
GraphUtil.getUniqueSubjectURI(Graph graph,
URI pred,
Value obj,
Resource... contexts)
Utility method that casts the return value of
GraphUtil.getUniqueSubject(Graph, URI, Value, Resource[]) to a URI, or
throws a GraphUtilException if that value is not a URI. |
Copyright © 2001-2013 Aduna. All Rights Reserved.