slib.sglib.algo.graph.accessor
Class GraphAccessor

java.lang.Object
  extended by slib.sglib.algo.graph.accessor.GraphAccessor

public class GraphAccessor
extends Object

Author:
Harispe Sébastien

Constructor Summary
GraphAccessor()
           
 
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
 

Constructor Detail

GraphAccessor

public GraphAccessor()
Method Detail

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 :

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 :

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.