Class GraphUtils
java.lang.Object
org.apache.jena.sparql.util.graph.GraphUtils
Graph utilities. See also GraphFactory.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAll subjects and objects, no duplicates.static booleanstatic booleanstatic ResourcefindRootByType(Model model, Resource atype) findRootsByType(Model model, Resource atype) static Stringstatic StringgetAsStringValue(Resource r, Property p) static booleangetBooleanValue(Resource r, Property p) static ResourcegetResourceByType(Model model, Resource type) static ResourcegetResourceValue(Resource r, Property p) static StringgetStringValue(Resource r, Property p) 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
-
getAsStringValue
-
getResourceValue
-
listResourcesByType
-
getResourceByType
-
findRootByType
-
findRootsByType
-
fmtURI
-
allNodes
All subjects and objects, no duplicates.
-