org.openanzo.atom.jastor.rdfs
Class Factory

java.lang.Object
  extended by org.openanzo.jastor.GraphThingFactory
      extended by org.openanzo.atom.jastor.rdfs.Factory

public class Factory
extends GraphThingFactory

Factory for instantiating objects for ontology classes in the 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#)


RDF Schema Standard Properties
seeAlso : http://www.w3.org/2000/01/rdf-schema-more



Field Summary
 
Fields inherited from class org.openanzo.jastor.GraphThingFactory
valueFactory
 
Constructor Summary
Factory()
           
 
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 _Statement create_Statement(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of _Statement.
static _Statement create_Statement(java.lang.String uri, INamedGraph graph)
          Create a new instance of _Statement.
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 XMLLiteral createXMLLiteral(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of XMLLiteral.
static XMLLiteral createXMLLiteral(java.lang.String uri, INamedGraph graph)
          Create a new instance of XMLLiteral.
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 _Statement get_Statement(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of _Statement.
static _Statement get_Statement(java.lang.String uri, INamedGraph graph)
          Create a new instance of _Statement.
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<_Statement> getAll_Statement(INamedGraph graph)
          Return an instance of _Statement for every resource in the model with rdf:Type http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement
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 java.util.List<XMLLiteral> getAllXMLLiteral(INamedGraph graph)
          Return an instance of XMLLiteral for every resource in the model with rdf:Type http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral
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 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 XMLLiteral getXMLLiteral(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of XMLLiteral.
static XMLLiteral getXMLLiteral(java.lang.String uri, INamedGraph graph)
          Create a new instance of XMLLiteral.
static java.util.List 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, getGraphThing, getGraphThing
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Factory

public Factory()
Method Detail

create_Statement

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

Parameters:
resource - The resource of the _Statement
graph - the Jena graph.
Throws:
JastorException

create_Statement

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

Parameters:
uri - The uri of the _Statement
graph - the Jena graph.
Throws:
JastorException

get_Statement

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

Parameters:
uri - The uri of the _Statement
graph - the Jena graph.
Throws:
JastorException

get_Statement

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

Parameters:
resource - The resource of the _Statement
graph - the Jena graph.
Throws:
JastorException

getAll_Statement

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

Parameters:
model - the Jena Model
Returns:
a List of _Statement
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 Jena graph.
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 Jena graph.
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 Jena graph.
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 Jena graph.
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:
model - the Jena Model
Returns:
a List of Class
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 Jena graph.
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 Jena graph.
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 Jena graph.
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 Jena graph.
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:
model - the Jena Model
Returns:
a List of Alt
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 Jena graph.
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 Jena graph.
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 Jena graph.
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 Jena graph.
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:
model - the Jena Model
Returns:
a List of Bag
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 Jena graph.
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 Jena graph.
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 Jena graph.
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 Jena graph.
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:
model - the Jena Model
Returns:
a List of List
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 Jena graph.
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 Jena graph.
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 Jena graph.
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 Jena graph.
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:
model - the Jena Model
Returns:
a List of _Property
Throws:
JastorException

createXMLLiteral

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

Parameters:
resource - The resource of the XMLLiteral
graph - the Jena graph.
Throws:
JastorException

createXMLLiteral

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

Parameters:
uri - The uri of the XMLLiteral
graph - the Jena graph.
Throws:
JastorException

getXMLLiteral

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

Parameters:
uri - The uri of the XMLLiteral
graph - the Jena graph.
Throws:
JastorException

getXMLLiteral

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

Parameters:
resource - The resource of the XMLLiteral
graph - the Jena graph.
Throws:
JastorException

getAllXMLLiteral

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

Parameters:
model - the Jena Model
Returns:
a List of XMLLiteral
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 Jena graph.
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 Jena graph.
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 Jena graph.
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 Jena graph.
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:
model - the Jena Model
Returns:
a List of _Resource
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 Jena graph.
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 Jena graph.
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 Jena graph.
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 Jena graph.
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:
model - the Jena Model
Returns:
a List of ContainerMembershipProperty
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 Jena graph.
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 Jena graph.
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 Jena graph.
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 Jena graph.
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:
model - the Jena Model
Returns:
a List of Seq
Throws:
JastorException

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 Jena graph.
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 Jena graph.
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 Jena graph.
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 Jena graph.
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:
model - the Jena Model
Returns:
a List of Container
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 Jena graph.
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 Jena graph.
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 Jena graph.
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 Jena graph.
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:
model - the Jena Model
Returns:
a List of Datatype
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 Jena graph.
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 Jena graph.
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 Jena graph.
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 Jena graph.
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:
model - the Jena Model
Returns:
a List of Literal
Throws:
JastorException

listCompatibleInterfaces

public static java.util.List listCompatibleInterfaces(org.openrdf.model.Resource type)
Return a list of compatible interfaces for the given type. Searches through all ontology classes in the ontology.

Returns:
a List of type java.lang.Class


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