Class GraphUtils
java.lang.Object
org.apache.jena.sparql.util.graph.GraphUtils
Graph utilities. See also GraphFactory.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAll subjects and objects, no duplicates.static boolean
static boolean
static Resource
findRootByType
(Model model, Resource atype) findRootsByType
(Model model, Resource atype) static String
static RDFNode
getAsRDFNode
(Resource r, Property p) static String
getAsStringValue
(Resource r, Property p) Get a string literal or a URI as a string.static boolean
getBooleanValue
(Resource r, Property p) static Resource
getResourceByType
(Model model, Resource type) static Resource
getResourceValue
(Resource r, Property p) static String
getStringValue
(Resource r, Property p) Get a string literal.listResourcesByType
(Model model, Resource type) multiValue
(Resource r, Property p) Get a list of the URIs (as strings) and stringsmultiValueString
(Resource r, Property p) multiValueURI
(Resource r, Property p)
-
Constructor Details
-
GraphUtils
public GraphUtils()
-
-
Method Details
-
multiValueString
-
multiValueAsString
Get a list of the URIs (as strings) and strings -
multiValue
-
multiValueResource
-
multiValueURI
-
exactlyOneProperty
-
atmostOneProperty
-
getBooleanValue
-
getStringValue
Get a string literal. -
getAsStringValue
Get a string literal or a URI as a string. -
getAsRDFNode
-
getResourceValue
-
listResourcesByType
-
getResourceByType
-
findRootByType
-
findRootsByType
-
fmtURI
-
allNodes
All subjects and objects, no duplicates.
-