slib.sglib.algo.graph.extraction.rvf.instances
Interface InstancesAccessor

All Known Implementing Classes:
InstanceAccessor_RDF_TYPE

public interface InstancesAccessor

Interface defining a access to the instances of the classes

Author:
Sébastien Harispe

Method Summary
 Set<org.openrdf.model.URI> getDirectClass(org.openrdf.model.URI v)
          Method providing access to the classes annotating an instance.
 Iterable<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.
 Iterable<org.openrdf.model.URI> getInstances()
          Return a way to iterate over the collection of instances.
 Iterable<org.openrdf.model.URI> getInstances(org.openrdf.model.URI v)
          Access to a way to iterate over an instance of a class.
 

Method Detail

getInstances

Iterable<org.openrdf.model.URI> getInstances()
Return a way to iterate over the collection of instances. The definition of instance is domain specific and depends on the use case.

Returns:
a way to iterate over the collection of instances

getInstances

Iterable<org.openrdf.model.URI> getInstances(org.openrdf.model.URI v)
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 getDirectInstances(org.openrdf.model.URI) for an access to the direct classes.

Parameters:
v - the class of interest
Returns:
the set of instances of the specified class

getDirectInstances

Iterable<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. all x respecting x RDF.TYPE class considering that a transitive reduction have been performed to remove inferable RDF.TYPE relationships.

Parameters:
v - the class of interest
Returns:
the set of direct instances of the specified class

getDirectClass

Set<org.openrdf.model.URI> getDirectClass(org.openrdf.model.URI v)
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.

Parameters:
v - the vertex corresponding to the instance
Returns:
the set of classes associated to the instance


Copyright © 2013. All Rights Reserved.