slib.sglib.algo.graph.extraction.rvf.instances.impl
Class InstanceAccessor_RDF_TYPE

java.lang.Object
  extended by slib.sglib.algo.graph.extraction.rvf.instances.impl.InstanceAccessor_RDF_TYPE
All Implemented Interfaces:
InstancesAccessor

public class InstanceAccessor_RDF_TYPE
extends Object
implements InstancesAccessor

Author:
Sébastien Harispe

Constructor Summary
InstanceAccessor_RDF_TYPE(slib.sglib.model.graph.G graph)
           
InstanceAccessor_RDF_TYPE(slib.sglib.model.graph.G graph, DescendantEngine engine)
           
 
Method Summary
 Set<org.openrdf.model.URI> getDirectClass(org.openrdf.model.URI v)
          Method providing access to the classes annotating an instance.
 Set<org.openrdf.model.URI> getDirectInstances(org.openrdf.model.URI v)
          Access to a way to iterate through the set of instances considered as direct instances of a class e.g.
 long getDirectInstancesNumber(org.openrdf.model.URI v)
           
 Set<org.openrdf.model.URI> getInstances()
          Return a way to iterate over the collection of instances.
 Set<org.openrdf.model.URI> getInstances(org.openrdf.model.URI v)
          Access to a way to iterate over an instance of a class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceAccessor_RDF_TYPE

public InstanceAccessor_RDF_TYPE(slib.sglib.model.graph.G graph,
                                 DescendantEngine engine)
Parameters:
graph -

InstanceAccessor_RDF_TYPE

public InstanceAccessor_RDF_TYPE(slib.sglib.model.graph.G graph)
Parameters:
graph -
Method Detail

getDirectInstances

public Set<org.openrdf.model.URI> getDirectInstances(org.openrdf.model.URI v)
Description copied from interface: InstancesAccessor
Access to a way to iterate through the set of instances considered as direct instances of a class e.g. all x respecting x RDF.TYPE class considering that a transitive reduction have been performed to remove inferable RDF.TYPE relationships.

Specified by:
getDirectInstances in interface InstancesAccessor
Parameters:
v - the class of interest
Returns:
the set of direct instances of the specified class

getDirectInstancesNumber

public long getDirectInstancesNumber(org.openrdf.model.URI v)

getInstances

public Set<org.openrdf.model.URI> getInstances()
Description copied from interface: InstancesAccessor
Return a way to iterate over the collection of instances. The definition of instance is domain specific and depends on the use case.

Specified by:
getInstances in interface InstancesAccessor
Returns:
a way to iterate over the collection of instances

getDirectClass

public Set<org.openrdf.model.URI> getDirectClass(org.openrdf.model.URI v)
Description copied from interface: InstancesAccessor
Method providing access to the classes annotating an instance. This method doesn't support inference, i.e. considering an instance y only the vertex x for which y RDF.TYPE x are returned.

Specified by:
getDirectClass in interface InstancesAccessor
Parameters:
v - the vertex corresponding to the instance
Returns:
the set of classes associated to the instance

getInstances

public Set<org.openrdf.model.URI> getInstances(org.openrdf.model.URI v)
Description copied from interface: InstancesAccessor
Access to a way to iterate over an instance of a class. This method must provide the inferred results, i.e. if x is a subclass of y and we ask for the instance of y, this method will also return all the instances typed to x as a result. see to InstancesAccessor.getDirectInstances(org.openrdf.model.URI) for an access to the direct classes.

Specified by:
getInstances in interface InstancesAccessor
Parameters:
v - the class of interest
Returns:
the set of instances of the specified class


Copyright © 2013. All Rights Reserved.