org.openanzo.atom.jastor.queso
Class QuesoFactory

java.lang.Object
  extended by org.openanzo.jastor.GraphThingFactory
      extended by org.openanzo.atom.jastor.queso.QuesoFactory

public class QuesoFactory
extends GraphThingFactory

Factory for instantiating objects for ontology classes in the Queso 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://boca.adtech.ibm.com/schemas/queso#Queso)





Field Summary
 
Fields inherited from class org.openanzo.jastor.GraphThingFactory
valueFactory
 
Constructor Summary
QuesoFactory()
           
 
Method Summary
static BinaryContent createBinaryContent(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of BinaryContent.
static BinaryContent createBinaryContent(java.lang.String uri, INamedGraph graph)
          Create a new instance of BinaryContent.
static Collection createCollection(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Collection.
static Collection createCollection(java.lang.String uri, INamedGraph graph)
          Create a new instance of Collection.
static Content createContent(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Content.
static Content createContent(java.lang.String uri, INamedGraph graph)
          Create a new instance of Content.
static DeletedEntry createDeletedEntry(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of DeletedEntry.
static DeletedEntry createDeletedEntry(java.lang.String uri, INamedGraph graph)
          Create a new instance of DeletedEntry.
static Entry createEntry(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Entry.
static Entry createEntry(java.lang.String uri, INamedGraph graph)
          Create a new instance of Entry.
static IntrospectionGraph createIntrospectionGraph(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of IntrospectionGraph.
static IntrospectionGraph createIntrospectionGraph(java.lang.String uri, INamedGraph graph)
          Create a new instance of IntrospectionGraph.
static PurgedEntry createPurgedEntry(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of PurgedEntry.
static PurgedEntry createPurgedEntry(java.lang.String uri, INamedGraph graph)
          Create a new instance of PurgedEntry.
static RDFContent createRDFContent(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of RDFContent.
static RDFContent createRDFContent(java.lang.String uri, INamedGraph graph)
          Create a new instance of RDFContent.
static TextContent createTextContent(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of TextContent.
static TextContent createTextContent(java.lang.String uri, INamedGraph graph)
          Create a new instance of TextContent.
static TypedContent createTypedContent(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of TypedContent.
static TypedContent createTypedContent(java.lang.String uri, INamedGraph graph)
          Create a new instance of TypedContent.
static java.util.List<BinaryContent> getAllBinaryContent(INamedGraph graph)
          Return an instance of BinaryContent for every resource in the model with rdf:Type http://boca.adtech.ibm.com/schemas/queso#BinaryContent
static java.util.List<Collection> getAllCollection(INamedGraph graph)
          Return an instance of Collection for every resource in the model with rdf:Type http://boca.adtech.ibm.com/schemas/queso#Collection
static java.util.List<Content> getAllContent(INamedGraph graph)
          Return an instance of Content for every resource in the model with rdf:Type http://boca.adtech.ibm.com/schemas/queso#Content
static java.util.List<DeletedEntry> getAllDeletedEntry(INamedGraph graph)
          Return an instance of DeletedEntry for every resource in the model with rdf:Type http://boca.adtech.ibm.com/schemas/queso#DeletedEntry
static java.util.List<Entry> getAllEntry(INamedGraph graph)
          Return an instance of Entry for every resource in the model with rdf:Type http://boca.adtech.ibm.com/schemas/queso#Entry
static java.util.List<IntrospectionGraph> getAllIntrospectionGraph(INamedGraph graph)
          Return an instance of IntrospectionGraph for every resource in the model with rdf:Type http://boca.adtech.ibm.com/schemas/queso#IntrospectionGraph
static java.util.List<PurgedEntry> getAllPurgedEntry(INamedGraph graph)
          Return an instance of PurgedEntry for every resource in the model with rdf:Type http://boca.adtech.ibm.com/schemas/queso#PurgedEntry
static java.util.List<RDFContent> getAllRDFContent(INamedGraph graph)
          Return an instance of RDFContent for every resource in the model with rdf:Type http://boca.adtech.ibm.com/schemas/queso#RDFContent
static java.util.List<TextContent> getAllTextContent(INamedGraph graph)
          Return an instance of TextContent for every resource in the model with rdf:Type http://boca.adtech.ibm.com/schemas/queso#TextContent
static java.util.List<TypedContent> getAllTypedContent(INamedGraph graph)
          Return an instance of TypedContent for every resource in the model with rdf:Type http://boca.adtech.ibm.com/schemas/queso#TypedContent
static BinaryContent getBinaryContent(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of BinaryContent.
static BinaryContent getBinaryContent(java.lang.String uri, INamedGraph graph)
          Create a new instance of BinaryContent.
static Collection getCollection(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Collection.
static Collection getCollection(java.lang.String uri, INamedGraph graph)
          Create a new instance of Collection.
static Content getContent(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Content.
static Content getContent(java.lang.String uri, INamedGraph graph)
          Create a new instance of Content.
static DeletedEntry getDeletedEntry(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of DeletedEntry.
static DeletedEntry getDeletedEntry(java.lang.String uri, INamedGraph graph)
          Create a new instance of DeletedEntry.
static Entry getEntry(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Entry.
static Entry getEntry(java.lang.String uri, INamedGraph graph)
          Create a new instance of Entry.
static IntrospectionGraph getIntrospectionGraph(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of IntrospectionGraph.
static IntrospectionGraph getIntrospectionGraph(java.lang.String uri, INamedGraph graph)
          Create a new instance of IntrospectionGraph.
static PurgedEntry getPurgedEntry(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of PurgedEntry.
static PurgedEntry getPurgedEntry(java.lang.String uri, INamedGraph graph)
          Create a new instance of PurgedEntry.
static RDFContent getRDFContent(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of RDFContent.
static RDFContent getRDFContent(java.lang.String uri, INamedGraph graph)
          Create a new instance of RDFContent.
static TextContent getTextContent(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of TextContent.
static TextContent getTextContent(java.lang.String uri, INamedGraph graph)
          Create a new instance of TextContent.
static TypedContent getTypedContent(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of TypedContent.
static TypedContent getTypedContent(java.lang.String uri, INamedGraph graph)
          Create a new instance of TypedContent.
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

QuesoFactory

public QuesoFactory()
Method Detail

createIntrospectionGraph

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

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

createIntrospectionGraph

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

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

getIntrospectionGraph

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

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

getIntrospectionGraph

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

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

getAllIntrospectionGraph

public static java.util.List<IntrospectionGraph> getAllIntrospectionGraph(INamedGraph graph)
                                                                   throws JastorException
Return an instance of IntrospectionGraph for every resource in the model with rdf:Type http://boca.adtech.ibm.com/schemas/queso#IntrospectionGraph

Parameters:
model - the Jena Model
Returns:
a List of IntrospectionGraph
Throws:
JastorException

createContent

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

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

createContent

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

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

getContent

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

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

getContent

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

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

getAllContent

public static java.util.List<Content> getAllContent(INamedGraph graph)
                                             throws JastorException
Return an instance of Content for every resource in the model with rdf:Type http://boca.adtech.ibm.com/schemas/queso#Content

Parameters:
model - the Jena Model
Returns:
a List of Content
Throws:
JastorException

createRDFContent

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

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

createRDFContent

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

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

getRDFContent

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

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

getRDFContent

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

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

getAllRDFContent

public static java.util.List<RDFContent> getAllRDFContent(INamedGraph graph)
                                                   throws JastorException
Return an instance of RDFContent for every resource in the model with rdf:Type http://boca.adtech.ibm.com/schemas/queso#RDFContent

Parameters:
model - the Jena Model
Returns:
a List of RDFContent
Throws:
JastorException

createBinaryContent

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

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

createBinaryContent

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

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

getBinaryContent

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

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

getBinaryContent

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

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

getAllBinaryContent

public static java.util.List<BinaryContent> getAllBinaryContent(INamedGraph graph)
                                                         throws JastorException
Return an instance of BinaryContent for every resource in the model with rdf:Type http://boca.adtech.ibm.com/schemas/queso#BinaryContent

Parameters:
model - the Jena Model
Returns:
a List of BinaryContent
Throws:
JastorException

createTextContent

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

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

createTextContent

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

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

getTextContent

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

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

getTextContent

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

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

getAllTextContent

public static java.util.List<TextContent> getAllTextContent(INamedGraph graph)
                                                     throws JastorException
Return an instance of TextContent for every resource in the model with rdf:Type http://boca.adtech.ibm.com/schemas/queso#TextContent

Parameters:
model - the Jena Model
Returns:
a List of TextContent
Throws:
JastorException

createPurgedEntry

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

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

createPurgedEntry

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

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

getPurgedEntry

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

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

getPurgedEntry

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

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

getAllPurgedEntry

public static java.util.List<PurgedEntry> getAllPurgedEntry(INamedGraph graph)
                                                     throws JastorException
Return an instance of PurgedEntry for every resource in the model with rdf:Type http://boca.adtech.ibm.com/schemas/queso#PurgedEntry

Parameters:
model - the Jena Model
Returns:
a List of PurgedEntry
Throws:
JastorException

createDeletedEntry

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

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

createDeletedEntry

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

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

getDeletedEntry

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

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

getDeletedEntry

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

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

getAllDeletedEntry

public static java.util.List<DeletedEntry> getAllDeletedEntry(INamedGraph graph)
                                                       throws JastorException
Return an instance of DeletedEntry for every resource in the model with rdf:Type http://boca.adtech.ibm.com/schemas/queso#DeletedEntry

Parameters:
model - the Jena Model
Returns:
a List of DeletedEntry
Throws:
JastorException

createCollection

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

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

createCollection

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

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

getCollection

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

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

getCollection

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

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

getAllCollection

public static java.util.List<Collection> getAllCollection(INamedGraph graph)
                                                   throws JastorException
Return an instance of Collection for every resource in the model with rdf:Type http://boca.adtech.ibm.com/schemas/queso#Collection

Parameters:
model - the Jena Model
Returns:
a List of Collection
Throws:
JastorException

createEntry

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

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

createEntry

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

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

getEntry

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

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

getEntry

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

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

getAllEntry

public static java.util.List<Entry> getAllEntry(INamedGraph graph)
                                         throws JastorException
Return an instance of Entry for every resource in the model with rdf:Type http://boca.adtech.ibm.com/schemas/queso#Entry

Parameters:
model - the Jena Model
Returns:
a List of Entry
Throws:
JastorException

createTypedContent

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

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

createTypedContent

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

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

getTypedContent

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

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

getTypedContent

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

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

getAllTypedContent

public static java.util.List<TypedContent> getAllTypedContent(INamedGraph graph)
                                                       throws JastorException
Return an instance of TypedContent for every resource in the model with rdf:Type http://boca.adtech.ibm.com/schemas/queso#TypedContent

Parameters:
model - the Jena Model
Returns:
a List of TypedContent
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 Queso ontology.

Returns:
a List of type java.lang.Class


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