public class GraphUtils extends Object
Constructor and Description |
---|
GraphUtils() |
Modifier and Type | Method and Description |
---|---|
static Iterator<Node> |
allNodes(Graph graph)
All subjects and objects, no duplicates.
|
static boolean |
atmostOneProperty(Resource r,
Property p) |
static boolean |
exactlyOneProperty(Resource r,
Property p) |
static Resource |
findRootByType(Model model,
Resource atype) |
static String |
fmtURI(Resource r) |
static String |
getAsStringValue(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) |
static List<RDFNode> |
multiValue(Resource r,
Property p) |
static List<Resource> |
multiValueResource(Resource r,
Property p) |
static List<String> |
multiValueString(Resource r,
Property p) |
static List<String> |
multiValueURI(Resource r,
Property p) |
Licenced under the Apache License, Version 2.0