org.openanzo.common.ontology
Class AnzoFactory

java.lang.Object
  extended by org.openanzo.jastor.GraphThingFactory
      extended by org.openanzo.common.ontology.AnzoFactory

public class AnzoFactory
extends GraphThingFactory

Factory for instantiating objects for ontology classes in the Anzo 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://openanzo.org/ontologies/Anzo)


RDF Schema Standard Properties
label : Role Based Access Control Ontology
comment : Access Control model with a basic role hiarchy.

Dublin Core Standard Properties
creator : Joe Betz
contributor : Lee FeigenbaumRob GonzalezMatthew Roy

Version:
0.10.2

Field Summary
 
Fields inherited from class org.openanzo.jastor.GraphThingFactory
valueFactory
 
Constructor Summary
AnzoFactory()
           
 
Method Summary
static ACL createACL(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of ACL.
static ACL createACL(java.lang.String uri, INamedGraph graph)
          Create a new instance of ACL.
static AnzoServer createAnzoServer(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of AnzoServer.
static AnzoServer createAnzoServer(java.lang.String uri, INamedGraph graph)
          Create a new instance of AnzoServer.
static AskResult createAskResult(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of AskResult.
static AskResult createAskResult(java.lang.String uri, INamedGraph graph)
          Create a new instance of AskResult.
static Command createCommand(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Command.
static Command createCommand(java.lang.String uri, INamedGraph graph)
          Create a new instance of Command.
static Dataset createDataset(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Dataset.
static Dataset createDataset(java.lang.String uri, INamedGraph graph)
          Create a new instance of Dataset.
static NamedGraph createNamedGraph(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of NamedGraph.
static NamedGraph createNamedGraph(java.lang.String uri, INamedGraph graph)
          Create a new instance of NamedGraph.
static Precondition createPrecondition(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Precondition.
static Precondition createPrecondition(java.lang.String uri, INamedGraph graph)
          Create a new instance of Precondition.
static Query createQuery(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Query.
static Query createQuery(java.lang.String uri, INamedGraph graph)
          Create a new instance of Query.
static Result createResult(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Result.
static Result createResult(java.lang.String uri, INamedGraph graph)
          Create a new instance of Result.
static Role createRole(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Role.
static Role createRole(java.lang.String uri, INamedGraph graph)
          Create a new instance of Role.
static SelectorTracker createSelectorTracker(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of SelectorTracker.
static SelectorTracker createSelectorTracker(java.lang.String uri, INamedGraph graph)
          Create a new instance of SelectorTracker.
static Tracker createTracker(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Tracker.
static Tracker createTracker(java.lang.String uri, INamedGraph graph)
          Create a new instance of Tracker.
static User createUser(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of User.
static User createUser(java.lang.String uri, INamedGraph graph)
          Create a new instance of User.
static ACL getACL(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of ACL.
static ACL getACL(java.lang.String uri, INamedGraph graph)
          Create a new instance of ACL.
static java.util.List<ACL> getAllACL(INamedGraph graph)
          Return an instance of ACL for every resource in the model with rdf:Type http://openanzo.org/RBAC#ACL
static java.util.List<AnzoServer> getAllAnzoServer(INamedGraph graph)
          Return an instance of AnzoServer for every resource in the model with rdf:Type http://openanzo.org/types/AnzoServer
static java.util.List<AskResult> getAllAskResult(INamedGraph graph)
          Return an instance of AskResult for every resource in the model with rdf:Type http://openanzo.org/types/AskResult
static java.util.List<Command> getAllCommand(INamedGraph graph)
          Return an instance of Command for every resource in the model with rdf:Type http://openanzo.org/types/Command
static java.util.List<Dataset> getAllDataset(INamedGraph graph)
          Return an instance of Dataset for every resource in the model with rdf:Type http://openanzo.org/types/Dataset
static java.util.List<NamedGraph> getAllNamedGraph(INamedGraph graph)
          Return an instance of NamedGraph for every resource in the model with rdf:Type http://openanzo.org/types/NamedGraph
static java.util.List<Precondition> getAllPrecondition(INamedGraph graph)
          Return an instance of Precondition for every resource in the model with rdf:Type http://openanzo.org/types/Precondition
static java.util.List<Query> getAllQuery(INamedGraph graph)
          Return an instance of Query for every resource in the model with rdf:Type http://openanzo.org/types/Query
static java.util.List<Result> getAllResult(INamedGraph graph)
          Return an instance of Result for every resource in the model with rdf:Type http://openanzo.org/types/Result
static java.util.List<Role> getAllRole(INamedGraph graph)
          Return an instance of Role for every resource in the model with rdf:Type http://openanzo.org/RBAC#Role
static java.util.List<SelectorTracker> getAllSelectorTracker(INamedGraph graph)
          Return an instance of SelectorTracker for every resource in the model with rdf:Type http://openanzo.org/types/SelectorTracker
static java.util.List<Tracker> getAllTracker(INamedGraph graph)
          Return an instance of Tracker for every resource in the model with rdf:Type http://openanzo.org/types/Tracker
static java.util.List<User> getAllUser(INamedGraph graph)
          Return an instance of User for every resource in the model with rdf:Type http://openanzo.org/RBAC#User
static AnzoServer getAnzoServer(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of AnzoServer.
static AnzoServer getAnzoServer(java.lang.String uri, INamedGraph graph)
          Create a new instance of AnzoServer.
static AskResult getAskResult(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of AskResult.
static AskResult getAskResult(java.lang.String uri, INamedGraph graph)
          Create a new instance of AskResult.
static Command getCommand(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Command.
static Command getCommand(java.lang.String uri, INamedGraph graph)
          Create a new instance of Command.
static Dataset getDataset(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Dataset.
static Dataset getDataset(java.lang.String uri, INamedGraph graph)
          Create a new instance of Dataset.
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 NamedGraph getNamedGraph(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of NamedGraph.
static NamedGraph getNamedGraph(java.lang.String uri, INamedGraph graph)
          Create a new instance of NamedGraph.
static Precondition getPrecondition(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Precondition.
static Precondition getPrecondition(java.lang.String uri, INamedGraph graph)
          Create a new instance of Precondition.
static Query getQuery(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Query.
static Query getQuery(java.lang.String uri, INamedGraph graph)
          Create a new instance of Query.
static Result getResult(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Result.
static Result getResult(java.lang.String uri, INamedGraph graph)
          Create a new instance of Result.
static Role getRole(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Role.
static Role getRole(java.lang.String uri, INamedGraph graph)
          Create a new instance of Role.
static SelectorTracker getSelectorTracker(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of SelectorTracker.
static SelectorTracker getSelectorTracker(java.lang.String uri, INamedGraph graph)
          Create a new instance of SelectorTracker.
static Tracker getTracker(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Tracker.
static Tracker getTracker(java.lang.String uri, INamedGraph graph)
          Create a new instance of Tracker.
static User getUser(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of User.
static User getUser(java.lang.String uri, INamedGraph graph)
          Create a new instance of User.
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

AnzoFactory

public AnzoFactory()
Method Detail

createSelectorTracker

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

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

createSelectorTracker

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

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

getSelectorTracker

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

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

getSelectorTracker

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

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

getAllSelectorTracker

public static java.util.List<SelectorTracker> getAllSelectorTracker(INamedGraph graph)
                                                             throws JastorException
Return an instance of SelectorTracker for every resource in the model with rdf:Type http://openanzo.org/types/SelectorTracker

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

createPrecondition

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

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

createPrecondition

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

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

getPrecondition

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

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

getPrecondition

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

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

getAllPrecondition

public static java.util.List<Precondition> getAllPrecondition(INamedGraph graph)
                                                       throws JastorException
Return an instance of Precondition for every resource in the model with rdf:Type http://openanzo.org/types/Precondition

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

createAskResult

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

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

createAskResult

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

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

getAskResult

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

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

getAskResult

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

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

getAllAskResult

public static java.util.List<AskResult> getAllAskResult(INamedGraph graph)
                                                 throws JastorException
Return an instance of AskResult for every resource in the model with rdf:Type http://openanzo.org/types/AskResult

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

createQuery

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

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

createQuery

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

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

getQuery

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

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

getQuery

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

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

getAllQuery

public static java.util.List<Query> getAllQuery(INamedGraph graph)
                                         throws JastorException
Return an instance of Query for every resource in the model with rdf:Type http://openanzo.org/types/Query

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

createAnzoServer

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

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

createAnzoServer

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

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

getAnzoServer

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

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

getAnzoServer

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

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

getAllAnzoServer

public static java.util.List<AnzoServer> getAllAnzoServer(INamedGraph graph)
                                                   throws JastorException
Return an instance of AnzoServer for every resource in the model with rdf:Type http://openanzo.org/types/AnzoServer

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

createNamedGraph

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

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

createNamedGraph

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

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

getNamedGraph

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

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

getNamedGraph

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

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

getAllNamedGraph

public static java.util.List<NamedGraph> getAllNamedGraph(INamedGraph graph)
                                                   throws JastorException
Return an instance of NamedGraph for every resource in the model with rdf:Type http://openanzo.org/types/NamedGraph

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

createACL

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

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

createACL

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

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

getACL

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

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

getACL

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

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

getAllACL

public static java.util.List<ACL> getAllACL(INamedGraph graph)
                                     throws JastorException
Return an instance of ACL for every resource in the model with rdf:Type http://openanzo.org/RBAC#ACL

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

createDataset

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

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

createDataset

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

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

getDataset

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

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

getDataset

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

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

getAllDataset

public static java.util.List<Dataset> getAllDataset(INamedGraph graph)
                                             throws JastorException
Return an instance of Dataset for every resource in the model with rdf:Type http://openanzo.org/types/Dataset

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

createResult

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

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

createResult

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

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

getResult

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

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

getResult

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

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

getAllResult

public static java.util.List<Result> getAllResult(INamedGraph graph)
                                           throws JastorException
Return an instance of Result for every resource in the model with rdf:Type http://openanzo.org/types/Result

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

createRole

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

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

createRole

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

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

getRole

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

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

getRole

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

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

getAllRole

public static java.util.List<Role> getAllRole(INamedGraph graph)
                                       throws JastorException
Return an instance of Role for every resource in the model with rdf:Type http://openanzo.org/RBAC#Role

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

createTracker

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

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

createTracker

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

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

getTracker

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

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

getTracker

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

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

getAllTracker

public static java.util.List<Tracker> getAllTracker(INamedGraph graph)
                                             throws JastorException
Return an instance of Tracker for every resource in the model with rdf:Type http://openanzo.org/types/Tracker

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

createUser

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

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

createUser

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

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

getUser

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

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

getUser

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

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

getAllUser

public static java.util.List<User> getAllUser(INamedGraph graph)
                                       throws JastorException
Return an instance of User for every resource in the model with rdf:Type http://openanzo.org/RBAC#User

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

createCommand

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

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

createCommand

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

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

getCommand

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

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

getCommand

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

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

getAllCommand

public static java.util.List<Command> getAllCommand(INamedGraph graph)
                                             throws JastorException
Return an instance of Command for every resource in the model with rdf:Type http://openanzo.org/types/Command

Parameters:
graph - the INamedGraph
Returns:
a List of Command
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