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 RDFNodegetAsRDFNode(Resource r, Property p) static StringgetAsStringValue(Resource r, Property p) Get a string literal or a URI as a string.static booleangetBooleanValue(Resource r, Property p) static ResourcegetResourceByType(Model model, Resource type) static ResourcegetResourceValue(Resource r, Property p) static StringgetStringValue(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) Get all the literals for a resource-property.multiValueURI(Resource r, Property p)
-
Constructor Details
-
GraphUtils
public GraphUtils()
-
-
Method Details
-
multiValueString
Get all the literals for a resource-property. -
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.
-