slib.sglib.algo.graph.accessor
Class GraphAccessor
java.lang.Object
slib.sglib.algo.graph.accessor.GraphAccessor
public class GraphAccessor
- extends Object
- Author:
- Harispe Sébastien
Method Summary |
static Set<org.openrdf.model.URI> |
getClasses(slib.sglib.model.graph.G graph)
Return a set of URI corresponding to the classes of the graph. |
static Set<org.openrdf.model.URI> |
getInstances(slib.sglib.model.graph.G graph)
Return a set of URI corresponding to the instances of the graph, note
that instance definition is here different from RDF the definition of an
instance. |
static Set<org.openrdf.model.URI> |
getV_NoEdgeType(slib.sglib.model.graph.G g,
Set<org.openrdf.model.URI> edgeTypes,
slib.sglib.model.graph.utils.Direction dir)
|
static Set<org.openrdf.model.URI> |
getV_NoEdgeType(slib.sglib.model.graph.G g,
org.openrdf.model.URI edgeType,
slib.sglib.model.graph.utils.Direction dir)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphAccessor
public GraphAccessor()
getClasses
public static Set<org.openrdf.model.URI> getClasses(slib.sglib.model.graph.G graph)
- Return a set of URI corresponding to the classes of the graph. A vertex v
of the graph is considered as a class if the graph contains a statement
of the form :
- v RFDS.SUBCLASSOF ?
- ? RDFS.SUBCLASSOF v
- ? RDF.TYPE v
- Returns:
- a set of URI corresponding to the classes of the graph
getInstances
public static Set<org.openrdf.model.URI> getInstances(slib.sglib.model.graph.G graph)
- Return a set of URI corresponding to the instances of the graph, note
that instance definition is here different from RDF the definition of an
instance. A vertex v of the graph is considered as an instance if the
graph contains a statement of the form :
- v RFD.TYPE ? with ? not equals to
RDFS.RESOURCE/CLASS/LITERAL/DATATYPE/PROPERTY/XMLLITERAL
Those restrictions do not cover all cases e.g. RDF instance of
RDFS.CONTAINER will be considered as instance...
- Returns:
- a set of URI corresponding to the classes of the graph
getV_NoEdgeType
public static Set<org.openrdf.model.URI> getV_NoEdgeType(slib.sglib.model.graph.G g,
org.openrdf.model.URI edgeType,
slib.sglib.model.graph.utils.Direction dir)
getV_NoEdgeType
public static Set<org.openrdf.model.URI> getV_NoEdgeType(slib.sglib.model.graph.G g,
Set<org.openrdf.model.URI> edgeTypes,
slib.sglib.model.graph.utils.Direction dir)
Copyright © 2013. All Rights Reserved.