org.openanzo.rdfs
Class RDFSFactory

java.lang.Object
  extended by org.openanzo.jastor.GraphThingFactory
      extended by org.openanzo.rdfs.RDFSFactory

public class RDFSFactory
extends GraphThingFactory

Factory for instantiating objects for ontology classes in the RDFS ontology. The get methods leave the graph unchanged and return a Java view of the object in the graph. The create methods may add certain baseline properties to the graph such as rdf:type and any properties with hasValue restrictions.

(URI: http://www.w3.org/2000/01/rdf-schema#RDFS)


RDF Schema Standard Properties
comment : RDFS Classes


Version:
1.1

Field Summary
 
Fields inherited from class org.openanzo.jastor.GraphThingFactory
valueFactory
 
Constructor Summary
RDFSFactory()
           
 
Method Summary
static _Property create_Property(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of _Property.
static _Property create_Property(java.lang.String uri, INamedGraph graph)
          Create a new instance of _Property.
static _Resource create_Resource(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of _Resource.
static _Resource create_Resource(java.lang.String uri, INamedGraph graph)
          Create a new instance of _Resource.
static Alt createAlt(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Alt.
static Alt createAlt(java.lang.String uri, INamedGraph graph)
          Create a new instance of Alt.
static Bag createBag(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Bag.
static Bag createBag(java.lang.String uri, INamedGraph graph)
          Create a new instance of Bag.
static Class createClass(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Class.
static Class createClass(java.lang.String uri, INamedGraph graph)
          Create a new instance of Class.
static Container createContainer(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Container.
static Container createContainer(java.lang.String uri, INamedGraph graph)
          Create a new instance of Container.
static ContainerMembershipProperty createContainerMembershipProperty(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of ContainerMembershipProperty.
static ContainerMembershipProperty createContainerMembershipProperty(java.lang.String uri, INamedGraph graph)
          Create a new instance of ContainerMembershipProperty.
static Datatype createDatatype(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Datatype.
static Datatype createDatatype(java.lang.String uri, INamedGraph graph)
          Create a new instance of Datatype.
static List createList(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of List.
static List createList(java.lang.String uri, INamedGraph graph)
          Create a new instance of List.
static Literal createLiteral(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Literal.
static Literal createLiteral(java.lang.String uri, INamedGraph graph)
          Create a new instance of Literal.
static Seq createSeq(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Seq.
static Seq createSeq(java.lang.String uri, INamedGraph graph)
          Create a new instance of Seq.
static _Property get_Property(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of _Property.
static _Property get_Property(java.lang.String uri, INamedGraph graph)
          Create a new instance of _Property.
static _Resource get_Resource(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of _Resource.
static _Resource get_Resource(java.lang.String uri, INamedGraph graph)
          Create a new instance of _Resource.
static java.util.List<_Property> getAll_Property(INamedGraph graph)
          Return an instance of _Property for every resource in the model with rdf:Type http://www.w3.org/1999/02/22-rdf-syntax-ns#Property
static java.util.List<_Resource> getAll_Resource(INamedGraph graph)
          Return an instance of _Resource for every resource in the model with rdf:Type http://www.w3.org/2000/01/rdf-schema#Resource
static java.util.List<Alt> getAllAlt(INamedGraph graph)
          Return an instance of Alt for every resource in the model with rdf:Type http://www.w3.org/1999/02/22-rdf-syntax-ns#Alt
static java.util.List<Bag> getAllBag(INamedGraph graph)
          Return an instance of Bag for every resource in the model with rdf:Type http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag
static java.util.List<Class> getAllClass(INamedGraph graph)
          Return an instance of Class for every resource in the model with rdf:Type http://www.w3.org/2000/01/rdf-schema#Class
static java.util.List<Container> getAllContainer(INamedGraph graph)
          Return an instance of Container for every resource in the model with rdf:Type http://www.w3.org/2000/01/rdf-schema#Container
static java.util.List<ContainerMembershipProperty> getAllContainerMembershipProperty(INamedGraph graph)
          Return an instance of ContainerMembershipProperty for every resource in the model with rdf:Type http://www.w3.org/2000/01/rdf-schema#ContainerMembershipProperty
static java.util.List<Datatype> getAllDatatype(INamedGraph graph)
          Return an instance of Datatype for every resource in the model with rdf:Type http://www.w3.org/2000/01/rdf-schema#Datatype
static java.util.List<List> getAllList(INamedGraph graph)
          Return an instance of List for every resource in the model with rdf:Type http://www.w3.org/1999/02/22-rdf-syntax-ns#List
static java.util.List<Literal> getAllLiteral(INamedGraph graph)
          Return an instance of Literal for every resource in the model with rdf:Type http://www.w3.org/2000/01/rdf-schema#Literal
static java.util.List<Seq> getAllSeq(INamedGraph graph)
          Return an instance of Seq for every resource in the model with rdf:Type http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq
static Alt getAlt(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Alt.
static Alt getAlt(java.lang.String uri, INamedGraph graph)
          Create a new instance of Alt.
static Bag getBag(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Bag.
static Bag getBag(java.lang.String uri, INamedGraph graph)
          Create a new instance of Bag.
static Class getClass(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Class.
static Class getClass(java.lang.String uri, INamedGraph graph)
          Create a new instance of Class.
static Container getContainer(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Container.
static Container getContainer(java.lang.String uri, INamedGraph graph)
          Create a new instance of Container.
static ContainerMembershipProperty getContainerMembershipProperty(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of ContainerMembershipProperty.
static ContainerMembershipProperty getContainerMembershipProperty(java.lang.String uri, INamedGraph graph)
          Create a new instance of ContainerMembershipProperty.
static Datatype getDatatype(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Datatype.
static Datatype getDatatype(java.lang.String uri, INamedGraph graph)
          Create a new instance of Datatype.
static GraphThing getGraphThing(org.openrdf.model.Resource res, INamedGraph graph)
          Returns an instance of an interface for the given Resource.
static GraphThing getGraphThing(java.lang.String uri, INamedGraph graph)
          Returns an instance of an interface for the given Resource URI.
static List getList(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of List.
static List getList(java.lang.String uri, INamedGraph graph)
          Create a new instance of List.
static Literal getLiteral(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Literal.
static Literal getLiteral(java.lang.String uri, INamedGraph graph)
          Create a new instance of Literal.
static Seq getSeq(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Seq.
static Seq getSeq(java.lang.String uri, INamedGraph graph)
          Create a new instance of Seq.
static java.util.List<java.lang.Class<? extends GraphThing>> listCompatibleInterfaces(org.openrdf.model.Resource type)
          Return a list of compatible interfaces for the given type.
 
Methods inherited from class org.openanzo.jastor.GraphThingFactory
clearCache, clearCaches, createGraphThing, createGraphThing
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDFSFactory

public RDFSFactory()
Method Detail

createContainer

public static Container createContainer(org.openrdf.model.Resource resource,
                                        INamedGraph graph)
                                 throws JastorException
Create a new instance of Container. Adds the rdf:type property for the given resource to the graph.

Parameters:
resource - The resource of the Container
graph - the INamedGraph containing data.
Returns:
the Container created
Throws:
JastorException

createContainer

public static Container createContainer(java.lang.String uri,
                                        INamedGraph graph)
                                 throws JastorException
Create a new instance of Container. Adds the rdf:type property for the given resource to the graph.

Parameters:
uri - The uri of the Container
graph - the INamedGraph containing data.
Returns:
the Container created
Throws:
JastorException

getContainer

public static Container getContainer(java.lang.String uri,
                                     INamedGraph graph)
                              throws JastorException
Create a new instance of Container. Leaves the graph unchanged.

Parameters:
uri - The uri of the Container
graph - the INamedGraph containing data.
Returns:
the Container retrieved, or created
Throws:
JastorException

getContainer

public static Container getContainer(org.openrdf.model.Resource resource,
                                     INamedGraph graph)
                              throws JastorException
Create a new instance of Container. Leaves the graph unchanged.

Parameters:
resource - The resource of the Container
graph - the INamedGraph containing data.
Returns:
the Container retrieved, or created
Throws:
JastorException

getAllContainer

public static java.util.List<Container> getAllContainer(INamedGraph graph)
                                                 throws JastorException
Return an instance of Container for every resource in the model with rdf:Type http://www.w3.org/2000/01/rdf-schema#Container

Parameters:
graph - the INamedGraph
Returns:
a List of Container
Throws:
JastorException

createContainerMembershipProperty

public static ContainerMembershipProperty createContainerMembershipProperty(org.openrdf.model.Resource resource,
                                                                            INamedGraph graph)
                                                                     throws JastorException
Create a new instance of ContainerMembershipProperty. Adds the rdf:type property for the given resource to the graph.

Parameters:
resource - The resource of the ContainerMembershipProperty
graph - the INamedGraph containing data.
Returns:
the ContainerMembershipProperty created
Throws:
JastorException

createContainerMembershipProperty

public static ContainerMembershipProperty createContainerMembershipProperty(java.lang.String uri,
                                                                            INamedGraph graph)
                                                                     throws JastorException
Create a new instance of ContainerMembershipProperty. Adds the rdf:type property for the given resource to the graph.

Parameters:
uri - The uri of the ContainerMembershipProperty
graph - the INamedGraph containing data.
Returns:
the ContainerMembershipProperty created
Throws:
JastorException

getContainerMembershipProperty

public static ContainerMembershipProperty getContainerMembershipProperty(java.lang.String uri,
                                                                         INamedGraph graph)
                                                                  throws JastorException
Create a new instance of ContainerMembershipProperty. Leaves the graph unchanged.

Parameters:
uri - The uri of the ContainerMembershipProperty
graph - the INamedGraph containing data.
Returns:
the ContainerMembershipProperty retrieved, or created
Throws:
JastorException

getContainerMembershipProperty

public static ContainerMembershipProperty getContainerMembershipProperty(org.openrdf.model.Resource resource,
                                                                         INamedGraph graph)
                                                                  throws JastorException
Create a new instance of ContainerMembershipProperty. Leaves the graph unchanged.

Parameters:
resource - The resource of the ContainerMembershipProperty
graph - the INamedGraph containing data.
Returns:
the ContainerMembershipProperty retrieved, or created
Throws:
JastorException

getAllContainerMembershipProperty

public static java.util.List<ContainerMembershipProperty> getAllContainerMembershipProperty(INamedGraph graph)
                                                                                     throws JastorException
Return an instance of ContainerMembershipProperty for every resource in the model with rdf:Type http://www.w3.org/2000/01/rdf-schema#ContainerMembershipProperty

Parameters:
graph - the INamedGraph
Returns:
a List of ContainerMembershipProperty
Throws:
JastorException

createLiteral

public static Literal createLiteral(org.openrdf.model.Resource resource,
                                    INamedGraph graph)
                             throws JastorException
Create a new instance of Literal. Adds the rdf:type property for the given resource to the graph.

Parameters:
resource - The resource of the Literal
graph - the INamedGraph containing data.
Returns:
the Literal created
Throws:
JastorException

createLiteral

public static Literal createLiteral(java.lang.String uri,
                                    INamedGraph graph)
                             throws JastorException
Create a new instance of Literal. Adds the rdf:type property for the given resource to the graph.

Parameters:
uri - The uri of the Literal
graph - the INamedGraph containing data.
Returns:
the Literal created
Throws:
JastorException

getLiteral

public static Literal getLiteral(java.lang.String uri,
                                 INamedGraph graph)
                          throws JastorException
Create a new instance of Literal. Leaves the graph unchanged.

Parameters:
uri - The uri of the Literal
graph - the INamedGraph containing data.
Returns:
the Literal retrieved, or created
Throws:
JastorException

getLiteral

public static Literal getLiteral(org.openrdf.model.Resource resource,
                                 INamedGraph graph)
                          throws JastorException
Create a new instance of Literal. Leaves the graph unchanged.

Parameters:
resource - The resource of the Literal
graph - the INamedGraph containing data.
Returns:
the Literal retrieved, or created
Throws:
JastorException

getAllLiteral

public static java.util.List<Literal> getAllLiteral(INamedGraph graph)
                                             throws JastorException
Return an instance of Literal for every resource in the model with rdf:Type http://www.w3.org/2000/01/rdf-schema#Literal

Parameters:
graph - the INamedGraph
Returns:
a List of Literal
Throws:
JastorException

createClass

public static Class createClass(org.openrdf.model.Resource resource,
                                INamedGraph graph)
                         throws JastorException
Create a new instance of Class. Adds the rdf:type property for the given resource to the graph.

Parameters:
resource - The resource of the Class
graph - the INamedGraph containing data.
Returns:
the Class created
Throws:
JastorException

createClass

public static Class createClass(java.lang.String uri,
                                INamedGraph graph)
                         throws JastorException
Create a new instance of Class. Adds the rdf:type property for the given resource to the graph.

Parameters:
uri - The uri of the Class
graph - the INamedGraph containing data.
Returns:
the Class created
Throws:
JastorException

getClass

public static Class getClass(java.lang.String uri,
                             INamedGraph graph)
                      throws JastorException
Create a new instance of Class. Leaves the graph unchanged.

Parameters:
uri - The uri of the Class
graph - the INamedGraph containing data.
Returns:
the Class retrieved, or created
Throws:
JastorException

getClass

public static Class getClass(org.openrdf.model.Resource resource,
                             INamedGraph graph)
                      throws JastorException
Create a new instance of Class. Leaves the graph unchanged.

Parameters:
resource - The resource of the Class
graph - the INamedGraph containing data.
Returns:
the Class retrieved, or created
Throws:
JastorException

getAllClass

public static java.util.List<Class> getAllClass(INamedGraph graph)
                                         throws JastorException
Return an instance of Class for every resource in the model with rdf:Type http://www.w3.org/2000/01/rdf-schema#Class

Parameters:
graph - the INamedGraph
Returns:
a List of Class
Throws:
JastorException

createList

public static List createList(org.openrdf.model.Resource resource,
                              INamedGraph graph)
                       throws JastorException
Create a new instance of List. Adds the rdf:type property for the given resource to the graph.

Parameters:
resource - The resource of the List
graph - the INamedGraph containing data.
Returns:
the List created
Throws:
JastorException

createList

public static List createList(java.lang.String uri,
                              INamedGraph graph)
                       throws JastorException
Create a new instance of List. Adds the rdf:type property for the given resource to the graph.

Parameters:
uri - The uri of the List
graph - the INamedGraph containing data.
Returns:
the List created
Throws:
JastorException

getList

public static List getList(java.lang.String uri,
                           INamedGraph graph)
                    throws JastorException
Create a new instance of List. Leaves the graph unchanged.

Parameters:
uri - The uri of the List
graph - the INamedGraph containing data.
Returns:
the List retrieved, or created
Throws:
JastorException

getList

public static List getList(org.openrdf.model.Resource resource,
                           INamedGraph graph)
                    throws JastorException
Create a new instance of List. Leaves the graph unchanged.

Parameters:
resource - The resource of the List
graph - the INamedGraph containing data.
Returns:
the List retrieved, or created
Throws:
JastorException

getAllList

public static java.util.List<List> getAllList(INamedGraph graph)
                                       throws JastorException
Return an instance of List for every resource in the model with rdf:Type http://www.w3.org/1999/02/22-rdf-syntax-ns#List

Parameters:
graph - the INamedGraph
Returns:
a List of List
Throws:
JastorException

createBag

public static Bag createBag(org.openrdf.model.Resource resource,
                            INamedGraph graph)
                     throws JastorException
Create a new instance of Bag. Adds the rdf:type property for the given resource to the graph.

Parameters:
resource - The resource of the Bag
graph - the INamedGraph containing data.
Returns:
the Bag created
Throws:
JastorException

createBag

public static Bag createBag(java.lang.String uri,
                            INamedGraph graph)
                     throws JastorException
Create a new instance of Bag. Adds the rdf:type property for the given resource to the graph.

Parameters:
uri - The uri of the Bag
graph - the INamedGraph containing data.
Returns:
the Bag created
Throws:
JastorException

getBag

public static Bag getBag(java.lang.String uri,
                         INamedGraph graph)
                  throws JastorException
Create a new instance of Bag. Leaves the graph unchanged.

Parameters:
uri - The uri of the Bag
graph - the INamedGraph containing data.
Returns:
the Bag retrieved, or created
Throws:
JastorException

getBag

public static Bag getBag(org.openrdf.model.Resource resource,
                         INamedGraph graph)
                  throws JastorException
Create a new instance of Bag. Leaves the graph unchanged.

Parameters:
resource - The resource of the Bag
graph - the INamedGraph containing data.
Returns:
the Bag retrieved, or created
Throws:
JastorException

getAllBag

public static java.util.List<Bag> getAllBag(INamedGraph graph)
                                     throws JastorException
Return an instance of Bag for every resource in the model with rdf:Type http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag

Parameters:
graph - the INamedGraph
Returns:
a List of Bag
Throws:
JastorException

createAlt

public static Alt createAlt(org.openrdf.model.Resource resource,
                            INamedGraph graph)
                     throws JastorException
Create a new instance of Alt. Adds the rdf:type property for the given resource to the graph.

Parameters:
resource - The resource of the Alt
graph - the INamedGraph containing data.
Returns:
the Alt created
Throws:
JastorException

createAlt

public static Alt createAlt(java.lang.String uri,
                            INamedGraph graph)
                     throws JastorException
Create a new instance of Alt. Adds the rdf:type property for the given resource to the graph.

Parameters:
uri - The uri of the Alt
graph - the INamedGraph containing data.
Returns:
the Alt created
Throws:
JastorException

getAlt

public static Alt getAlt(java.lang.String uri,
                         INamedGraph graph)
                  throws JastorException
Create a new instance of Alt. Leaves the graph unchanged.

Parameters:
uri - The uri of the Alt
graph - the INamedGraph containing data.
Returns:
the Alt retrieved, or created
Throws:
JastorException

getAlt

public static Alt getAlt(org.openrdf.model.Resource resource,
                         INamedGraph graph)
                  throws JastorException
Create a new instance of Alt. Leaves the graph unchanged.

Parameters:
resource - The resource of the Alt
graph - the INamedGraph containing data.
Returns:
the Alt retrieved, or created
Throws:
JastorException

getAllAlt

public static java.util.List<Alt> getAllAlt(INamedGraph graph)
                                     throws JastorException
Return an instance of Alt for every resource in the model with rdf:Type http://www.w3.org/1999/02/22-rdf-syntax-ns#Alt

Parameters:
graph - the INamedGraph
Returns:
a List of Alt
Throws:
JastorException

createDatatype

public static Datatype createDatatype(org.openrdf.model.Resource resource,
                                      INamedGraph graph)
                               throws JastorException
Create a new instance of Datatype. Adds the rdf:type property for the given resource to the graph.

Parameters:
resource - The resource of the Datatype
graph - the INamedGraph containing data.
Returns:
the Datatype created
Throws:
JastorException

createDatatype

public static Datatype createDatatype(java.lang.String uri,
                                      INamedGraph graph)
                               throws JastorException
Create a new instance of Datatype. Adds the rdf:type property for the given resource to the graph.

Parameters:
uri - The uri of the Datatype
graph - the INamedGraph containing data.
Returns:
the Datatype created
Throws:
JastorException

getDatatype

public static Datatype getDatatype(java.lang.String uri,
                                   INamedGraph graph)
                            throws JastorException
Create a new instance of Datatype. Leaves the graph unchanged.

Parameters:
uri - The uri of the Datatype
graph - the INamedGraph containing data.
Returns:
the Datatype retrieved, or created
Throws:
JastorException

getDatatype

public static Datatype getDatatype(org.openrdf.model.Resource resource,
                                   INamedGraph graph)
                            throws JastorException
Create a new instance of Datatype. Leaves the graph unchanged.

Parameters:
resource - The resource of the Datatype
graph - the INamedGraph containing data.
Returns:
the Datatype retrieved, or created
Throws:
JastorException

getAllDatatype

public static java.util.List<Datatype> getAllDatatype(INamedGraph graph)
                                               throws JastorException
Return an instance of Datatype for every resource in the model with rdf:Type http://www.w3.org/2000/01/rdf-schema#Datatype

Parameters:
graph - the INamedGraph
Returns:
a List of Datatype
Throws:
JastorException

create_Property

public static _Property create_Property(org.openrdf.model.Resource resource,
                                        INamedGraph graph)
                                 throws JastorException
Create a new instance of _Property. Adds the rdf:type property for the given resource to the graph.

Parameters:
resource - The resource of the _Property
graph - the INamedGraph containing data.
Returns:
the _Property created
Throws:
JastorException

create_Property

public static _Property create_Property(java.lang.String uri,
                                        INamedGraph graph)
                                 throws JastorException
Create a new instance of _Property. Adds the rdf:type property for the given resource to the graph.

Parameters:
uri - The uri of the _Property
graph - the INamedGraph containing data.
Returns:
the _Property created
Throws:
JastorException

get_Property

public static _Property get_Property(java.lang.String uri,
                                     INamedGraph graph)
                              throws JastorException
Create a new instance of _Property. Leaves the graph unchanged.

Parameters:
uri - The uri of the _Property
graph - the INamedGraph containing data.
Returns:
the _Property retrieved, or created
Throws:
JastorException

get_Property

public static _Property get_Property(org.openrdf.model.Resource resource,
                                     INamedGraph graph)
                              throws JastorException
Create a new instance of _Property. Leaves the graph unchanged.

Parameters:
resource - The resource of the _Property
graph - the INamedGraph containing data.
Returns:
the _Property retrieved, or created
Throws:
JastorException

getAll_Property

public static java.util.List<_Property> getAll_Property(INamedGraph graph)
                                                 throws JastorException
Return an instance of _Property for every resource in the model with rdf:Type http://www.w3.org/1999/02/22-rdf-syntax-ns#Property

Parameters:
graph - the INamedGraph
Returns:
a List of _Property
Throws:
JastorException

createSeq

public static Seq createSeq(org.openrdf.model.Resource resource,
                            INamedGraph graph)
                     throws JastorException
Create a new instance of Seq. Adds the rdf:type property for the given resource to the graph.

Parameters:
resource - The resource of the Seq
graph - the INamedGraph containing data.
Returns:
the Seq created
Throws:
JastorException

createSeq

public static Seq createSeq(java.lang.String uri,
                            INamedGraph graph)
                     throws JastorException
Create a new instance of Seq. Adds the rdf:type property for the given resource to the graph.

Parameters:
uri - The uri of the Seq
graph - the INamedGraph containing data.
Returns:
the Seq created
Throws:
JastorException

getSeq

public static Seq getSeq(java.lang.String uri,
                         INamedGraph graph)
                  throws JastorException
Create a new instance of Seq. Leaves the graph unchanged.

Parameters:
uri - The uri of the Seq
graph - the INamedGraph containing data.
Returns:
the Seq retrieved, or created
Throws:
JastorException

getSeq

public static Seq getSeq(org.openrdf.model.Resource resource,
                         INamedGraph graph)
                  throws JastorException
Create a new instance of Seq. Leaves the graph unchanged.

Parameters:
resource - The resource of the Seq
graph - the INamedGraph containing data.
Returns:
the Seq retrieved, or created
Throws:
JastorException

getAllSeq

public static java.util.List<Seq> getAllSeq(INamedGraph graph)
                                     throws JastorException
Return an instance of Seq for every resource in the model with rdf:Type http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq

Parameters:
graph - the INamedGraph
Returns:
a List of Seq
Throws:
JastorException

create_Resource

public static _Resource create_Resource(org.openrdf.model.Resource resource,
                                        INamedGraph graph)
                                 throws JastorException
Create a new instance of _Resource. Adds the rdf:type property for the given resource to the graph.

Parameters:
resource - The resource of the _Resource
graph - the INamedGraph containing data.
Returns:
the _Resource created
Throws:
JastorException

create_Resource

public static _Resource create_Resource(java.lang.String uri,
                                        INamedGraph graph)
                                 throws JastorException
Create a new instance of _Resource. Adds the rdf:type property for the given resource to the graph.

Parameters:
uri - The uri of the _Resource
graph - the INamedGraph containing data.
Returns:
the _Resource created
Throws:
JastorException

get_Resource

public static _Resource get_Resource(java.lang.String uri,
                                     INamedGraph graph)
                              throws JastorException
Create a new instance of _Resource. Leaves the graph unchanged.

Parameters:
uri - The uri of the _Resource
graph - the INamedGraph containing data.
Returns:
the _Resource retrieved, or created
Throws:
JastorException

get_Resource

public static _Resource get_Resource(org.openrdf.model.Resource resource,
                                     INamedGraph graph)
                              throws JastorException
Create a new instance of _Resource. Leaves the graph unchanged.

Parameters:
resource - The resource of the _Resource
graph - the INamedGraph containing data.
Returns:
the _Resource retrieved, or created
Throws:
JastorException

getAll_Resource

public static java.util.List<_Resource> getAll_Resource(INamedGraph graph)
                                                 throws JastorException
Return an instance of _Resource for every resource in the model with rdf:Type http://www.w3.org/2000/01/rdf-schema#Resource

Parameters:
graph - the INamedGraph
Returns:
a List of _Resource
Throws:
JastorException

getGraphThing

public static GraphThing getGraphThing(org.openrdf.model.Resource res,
                                       INamedGraph graph)
                                throws JastorException
Returns an instance of an interface for the given Resource. The return instance is guaranteed to implement the most specific interface in *some* hierarchy in which the Resource participates. The behavior is unspecified for resources with RDF types from different hierarchies.

Returns:
an instance of Thing
Throws:
JastorException

getGraphThing

public static GraphThing getGraphThing(java.lang.String uri,
                                       INamedGraph graph)
                                throws JastorException
Returns an instance of an interface for the given Resource URI. The return instance is guaranteed to implement the most specific interface in *some* hierarchy in which the Resource participates. The behavior is unspecified for resources with RDF types from different hierarchies.

Returns:
an instance of Thing
Throws:
JastorException

listCompatibleInterfaces

public static java.util.List<java.lang.Class<? extends GraphThing>> listCompatibleInterfaces(org.openrdf.model.Resource type)
Return a list of compatible interfaces for the given type. Searches through all ontology classes in the RDFS ontology.

Parameters:
type - the type for which to find compatible interfaces
Returns:
a List of type java.lang.Class


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.