org.openanzo.atom.jastor.atomowl
Class Factory

java.lang.Object
  extended by org.openanzo.jastor.GraphThingFactory
      extended by org.openanzo.atom.jastor.atomowl.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://bblfish.net/work/atom-owl/2006-06-06/#)





Field Summary
 
Fields inherited from class org.openanzo.jastor.GraphThingFactory
valueFactory
 
Constructor Summary
Factory()
           
 
Method Summary
static Category createCategory(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Category.
static Category createCategory(java.lang.String uri, INamedGraph graph)
          Create a new instance of Category.
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 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 Feed createFeed(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Feed.
static Feed createFeed(java.lang.String uri, INamedGraph graph)
          Create a new instance of Feed.
static FeedOrEntry createFeedOrEntry(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of FeedOrEntry.
static FeedOrEntry createFeedOrEntry(java.lang.String uri, INamedGraph graph)
          Create a new instance of FeedOrEntry.
static Generator createGenerator(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Generator.
static Generator createGenerator(java.lang.String uri, INamedGraph graph)
          Create a new instance of Generator.
static HTML createHTML(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of HTML.
static HTML createHTML(java.lang.String uri, INamedGraph graph)
          Create a new instance of HTML.
static Link createLink(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Link.
static Link createLink(java.lang.String uri, INamedGraph graph)
          Create a new instance of Link.
static Person createPerson(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Person.
static Person createPerson(java.lang.String uri, INamedGraph graph)
          Create a new instance of Person.
static PlainText createPlainText(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of PlainText.
static PlainText createPlainText(java.lang.String uri, INamedGraph graph)
          Create a new instance of PlainText.
static RelationType createRelationType(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of RelationType.
static RelationType createRelationType(java.lang.String uri, INamedGraph graph)
          Create a new instance of RelationType.
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 Version createVersion(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Version.
static Version createVersion(java.lang.String uri, INamedGraph graph)
          Create a new instance of Version.
static XHTML createXHTML(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of XHTML.
static XHTML createXHTML(java.lang.String uri, INamedGraph graph)
          Create a new instance of XHTML.
static XML createXML(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of XML.
static XML createXML(java.lang.String uri, INamedGraph graph)
          Create a new instance of XML.
static java.util.List<Category> getAllCategory(INamedGraph graph)
          Return an instance of Category for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#Category
static java.util.List<Content> getAllContent(INamedGraph graph)
          Return an instance of Content for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#Content
static java.util.List<Entry> getAllEntry(INamedGraph graph)
          Return an instance of Entry for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#Entry
static java.util.List<Feed> getAllFeed(INamedGraph graph)
          Return an instance of Feed for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#Feed
static java.util.List<FeedOrEntry> getAllFeedOrEntry(INamedGraph graph)
          Return an instance of FeedOrEntry for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#FeedOrEntry
static java.util.List<Generator> getAllGenerator(INamedGraph graph)
          Return an instance of Generator for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#Generator
static java.util.List<HTML> getAllHTML(INamedGraph graph)
          Return an instance of HTML for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#HTML
static java.util.List<Link> getAllLink(INamedGraph graph)
          Return an instance of Link for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#Link
static java.util.List<Person> getAllPerson(INamedGraph graph)
          Return an instance of Person for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#Person
static java.util.List<PlainText> getAllPlainText(INamedGraph graph)
          Return an instance of PlainText for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#PlainText
static java.util.List<RelationType> getAllRelationType(INamedGraph graph)
          Return an instance of RelationType for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#RelationType
static java.util.List<TextContent> getAllTextContent(INamedGraph graph)
          Return an instance of TextContent for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#TextContent
static java.util.List<Version> getAllVersion(INamedGraph graph)
          Return an instance of Version for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#Version
static java.util.List<XHTML> getAllXHTML(INamedGraph graph)
          Return an instance of XHTML for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#XHTML
static java.util.List<XML> getAllXML(INamedGraph graph)
          Return an instance of XML for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#XML
static Category getCategory(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Category.
static Category getCategory(java.lang.String uri, INamedGraph graph)
          Create a new instance of Category.
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 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 Feed getFeed(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Feed.
static Feed getFeed(java.lang.String uri, INamedGraph graph)
          Create a new instance of Feed.
static FeedOrEntry getFeedOrEntry(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of FeedOrEntry.
static FeedOrEntry getFeedOrEntry(java.lang.String uri, INamedGraph graph)
          Create a new instance of FeedOrEntry.
static Generator getGenerator(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Generator.
static Generator getGenerator(java.lang.String uri, INamedGraph graph)
          Create a new instance of Generator.
static HTML getHTML(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of HTML.
static HTML getHTML(java.lang.String uri, INamedGraph graph)
          Create a new instance of HTML.
static Link getLink(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Link.
static Link getLink(java.lang.String uri, INamedGraph graph)
          Create a new instance of Link.
static Person getPerson(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Person.
static Person getPerson(java.lang.String uri, INamedGraph graph)
          Create a new instance of Person.
static PlainText getPlainText(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of PlainText.
static PlainText getPlainText(java.lang.String uri, INamedGraph graph)
          Create a new instance of PlainText.
static RelationType getRelationType(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of RelationType.
static RelationType getRelationType(java.lang.String uri, INamedGraph graph)
          Create a new instance of RelationType.
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 Version getVersion(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Version.
static Version getVersion(java.lang.String uri, INamedGraph graph)
          Create a new instance of Version.
static XHTML getXHTML(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of XHTML.
static XHTML getXHTML(java.lang.String uri, INamedGraph graph)
          Create a new instance of XHTML.
static XML getXML(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of XML.
static XML getXML(java.lang.String uri, INamedGraph graph)
          Create a new instance of XML.
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

createFeed

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

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

createFeed

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

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

getFeed

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

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

getFeed

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

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

getAllFeed

public static java.util.List<Feed> getAllFeed(INamedGraph graph)
                                       throws JastorException
Return an instance of Feed for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#Feed

Parameters:
model - the Jena Model
Returns:
a List of Feed
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://bblfish.net/work/atom-owl/2006-06-06/#Content

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

createXHTML

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

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

createXHTML

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

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

getXHTML

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

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

getXHTML

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

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

getAllXHTML

public static java.util.List<XHTML> getAllXHTML(INamedGraph graph)
                                         throws JastorException
Return an instance of XHTML for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#XHTML

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

createRelationType

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

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

createRelationType

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

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

getRelationType

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

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

getRelationType

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

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

getAllRelationType

public static java.util.List<RelationType> getAllRelationType(INamedGraph graph)
                                                       throws JastorException
Return an instance of RelationType for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#RelationType

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

createCategory

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

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

createCategory

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

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

getCategory

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

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

getCategory

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

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

getAllCategory

public static java.util.List<Category> getAllCategory(INamedGraph graph)
                                               throws JastorException
Return an instance of Category for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#Category

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

createPlainText

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

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

createPlainText

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

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

getPlainText

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

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

getPlainText

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

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

getAllPlainText

public static java.util.List<PlainText> getAllPlainText(INamedGraph graph)
                                                 throws JastorException
Return an instance of PlainText for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#PlainText

Parameters:
model - the Jena Model
Returns:
a List of PlainText
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://bblfish.net/work/atom-owl/2006-06-06/#Entry

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

createFeedOrEntry

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

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

createFeedOrEntry

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

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

getFeedOrEntry

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

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

getFeedOrEntry

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

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

getAllFeedOrEntry

public static java.util.List<FeedOrEntry> getAllFeedOrEntry(INamedGraph graph)
                                                     throws JastorException
Return an instance of FeedOrEntry for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#FeedOrEntry

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

createVersion

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

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

createVersion

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

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

getVersion

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

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

getVersion

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

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

getAllVersion

public static java.util.List<Version> getAllVersion(INamedGraph graph)
                                             throws JastorException
Return an instance of Version for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#Version

Parameters:
model - the Jena Model
Returns:
a List of Version
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://bblfish.net/work/atom-owl/2006-06-06/#TextContent

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

createXML

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

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

createXML

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

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

getXML

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

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

getXML

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

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

getAllXML

public static java.util.List<XML> getAllXML(INamedGraph graph)
                                     throws JastorException
Return an instance of XML for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#XML

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

createGenerator

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

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

createGenerator

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

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

getGenerator

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

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

getGenerator

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

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

getAllGenerator

public static java.util.List<Generator> getAllGenerator(INamedGraph graph)
                                                 throws JastorException
Return an instance of Generator for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#Generator

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

createHTML

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

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

createHTML

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

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

getHTML

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

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

getHTML

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

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

getAllHTML

public static java.util.List<HTML> getAllHTML(INamedGraph graph)
                                       throws JastorException
Return an instance of HTML for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#HTML

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

createLink

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

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

createLink

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

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

getLink

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

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

getLink

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

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

getAllLink

public static java.util.List<Link> getAllLink(INamedGraph graph)
                                       throws JastorException
Return an instance of Link for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#Link

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

createPerson

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

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

createPerson

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

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

getPerson

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

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

getPerson

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

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

getAllPerson

public static java.util.List<Person> getAllPerson(INamedGraph graph)
                                           throws JastorException
Return an instance of Person for every resource in the model with rdf:Type http://bblfish.net/work/atom-owl/2006-06-06/#Person

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