org.openanzo.atom.jastor.foaf
Class FOAFFactory

java.lang.Object
  extended by org.openanzo.jastor.GraphThingFactory
      extended by org.openanzo.atom.jastor.foaf.FOAFFactory

public class FOAFFactory
extends GraphThingFactory

Factory for instantiating objects for ontology classes in the FOAF 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://xmlns.com/foaf/0.1/#FOAF)


RDF Schema Standard Properties
seeAlso : http://www.w3.org/2001/08/rdfweb/foaf

Dublin Core Standard Properties
title : Friend of a Friend (FOAF) vocabulary
description : The Friend of a Friend (FOAF) RDF vocabulary, described using W3C RDF Schema and the Web Ontology Language.
date : $Date: 2007-07-31 10:00:51 -0400 (Tue, 31 Jul 2007) $


Field Summary
 
Fields inherited from class org.openanzo.jastor.GraphThingFactory
valueFactory
 
Constructor Summary
FOAFFactory()
           
 
Method Summary
static Agent createAgent(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Agent.
static Agent createAgent(java.lang.String uri, INamedGraph graph)
          Create a new instance of Agent.
static Document createDocument(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Document.
static Document createDocument(java.lang.String uri, INamedGraph graph)
          Create a new instance of Document.
static Group createGroup(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Group.
static Group createGroup(java.lang.String uri, INamedGraph graph)
          Create a new instance of Group.
static Image createImage(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Image.
static Image createImage(java.lang.String uri, INamedGraph graph)
          Create a new instance of Image.
static OnlineAccount createOnlineAccount(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of OnlineAccount.
static OnlineAccount createOnlineAccount(java.lang.String uri, INamedGraph graph)
          Create a new instance of OnlineAccount.
static OnlineChatAccount createOnlineChatAccount(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of OnlineChatAccount.
static OnlineChatAccount createOnlineChatAccount(java.lang.String uri, INamedGraph graph)
          Create a new instance of OnlineChatAccount.
static OnlineEcommerceAccount createOnlineEcommerceAccount(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of OnlineEcommerceAccount.
static OnlineEcommerceAccount createOnlineEcommerceAccount(java.lang.String uri, INamedGraph graph)
          Create a new instance of OnlineEcommerceAccount.
static OnlineGamingAccount createOnlineGamingAccount(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of OnlineGamingAccount.
static OnlineGamingAccount createOnlineGamingAccount(java.lang.String uri, INamedGraph graph)
          Create a new instance of OnlineGamingAccount.
static Organization createOrganization(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Organization.
static Organization createOrganization(java.lang.String uri, INamedGraph graph)
          Create a new instance of Organization.
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 PersonalProfileDocument createPersonalProfileDocument(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of PersonalProfileDocument.
static PersonalProfileDocument createPersonalProfileDocument(java.lang.String uri, INamedGraph graph)
          Create a new instance of PersonalProfileDocument.
static Project createProject(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Project.
static Project createProject(java.lang.String uri, INamedGraph graph)
          Create a new instance of Project.
static Agent getAgent(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Agent.
static Agent getAgent(java.lang.String uri, INamedGraph graph)
          Create a new instance of Agent.
static java.util.List<Agent> getAllAgent(INamedGraph graph)
          Return an instance of Agent for every resource in the model with rdf:Type http://xmlns.com/foaf/0.1/Agent
static java.util.List<Document> getAllDocument(INamedGraph graph)
          Return an instance of Document for every resource in the model with rdf:Type http://xmlns.com/foaf/0.1/Document
static java.util.List<Group> getAllGroup(INamedGraph graph)
          Return an instance of Group for every resource in the model with rdf:Type http://xmlns.com/foaf/0.1/Group
static java.util.List<Image> getAllImage(INamedGraph graph)
          Return an instance of Image for every resource in the model with rdf:Type http://xmlns.com/foaf/0.1/Image
static java.util.List<OnlineAccount> getAllOnlineAccount(INamedGraph graph)
          Return an instance of OnlineAccount for every resource in the model with rdf:Type http://xmlns.com/foaf/0.1/OnlineAccount
static java.util.List<OnlineChatAccount> getAllOnlineChatAccount(INamedGraph graph)
          Return an instance of OnlineChatAccount for every resource in the model with rdf:Type http://xmlns.com/foaf/0.1/OnlineChatAccount
static java.util.List<OnlineEcommerceAccount> getAllOnlineEcommerceAccount(INamedGraph graph)
          Return an instance of OnlineEcommerceAccount for every resource in the model with rdf:Type http://xmlns.com/foaf/0.1/OnlineEcommerceAccount
static java.util.List<OnlineGamingAccount> getAllOnlineGamingAccount(INamedGraph graph)
          Return an instance of OnlineGamingAccount for every resource in the model with rdf:Type http://xmlns.com/foaf/0.1/OnlineGamingAccount
static java.util.List<Organization> getAllOrganization(INamedGraph graph)
          Return an instance of Organization for every resource in the model with rdf:Type http://xmlns.com/foaf/0.1/Organization
static java.util.List<Person> getAllPerson(INamedGraph graph)
          Return an instance of Person for every resource in the model with rdf:Type http://xmlns.com/foaf/0.1/Person
static java.util.List<PersonalProfileDocument> getAllPersonalProfileDocument(INamedGraph graph)
          Return an instance of PersonalProfileDocument for every resource in the model with rdf:Type http://xmlns.com/foaf/0.1/PersonalProfileDocument
static java.util.List<Project> getAllProject(INamedGraph graph)
          Return an instance of Project for every resource in the model with rdf:Type http://xmlns.com/foaf/0.1/Project
static Document getDocument(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Document.
static Document getDocument(java.lang.String uri, INamedGraph graph)
          Create a new instance of Document.
static Group getGroup(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Group.
static Group getGroup(java.lang.String uri, INamedGraph graph)
          Create a new instance of Group.
static Image getImage(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Image.
static Image getImage(java.lang.String uri, INamedGraph graph)
          Create a new instance of Image.
static OnlineAccount getOnlineAccount(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of OnlineAccount.
static OnlineAccount getOnlineAccount(java.lang.String uri, INamedGraph graph)
          Create a new instance of OnlineAccount.
static OnlineChatAccount getOnlineChatAccount(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of OnlineChatAccount.
static OnlineChatAccount getOnlineChatAccount(java.lang.String uri, INamedGraph graph)
          Create a new instance of OnlineChatAccount.
static OnlineEcommerceAccount getOnlineEcommerceAccount(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of OnlineEcommerceAccount.
static OnlineEcommerceAccount getOnlineEcommerceAccount(java.lang.String uri, INamedGraph graph)
          Create a new instance of OnlineEcommerceAccount.
static OnlineGamingAccount getOnlineGamingAccount(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of OnlineGamingAccount.
static OnlineGamingAccount getOnlineGamingAccount(java.lang.String uri, INamedGraph graph)
          Create a new instance of OnlineGamingAccount.
static Organization getOrganization(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Organization.
static Organization getOrganization(java.lang.String uri, INamedGraph graph)
          Create a new instance of Organization.
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 PersonalProfileDocument getPersonalProfileDocument(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of PersonalProfileDocument.
static PersonalProfileDocument getPersonalProfileDocument(java.lang.String uri, INamedGraph graph)
          Create a new instance of PersonalProfileDocument.
static Project getProject(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new instance of Project.
static Project getProject(java.lang.String uri, INamedGraph graph)
          Create a new instance of Project.
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

FOAFFactory

public FOAFFactory()
Method Detail

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://xmlns.com/foaf/0.1/Person

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

createPersonalProfileDocument

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

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

createPersonalProfileDocument

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

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

getPersonalProfileDocument

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

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

getPersonalProfileDocument

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

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

getAllPersonalProfileDocument

public static java.util.List<PersonalProfileDocument> getAllPersonalProfileDocument(INamedGraph graph)
                                                                             throws JastorException
Return an instance of PersonalProfileDocument for every resource in the model with rdf:Type http://xmlns.com/foaf/0.1/PersonalProfileDocument

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

createProject

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

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

createProject

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

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

getProject

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

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

getProject

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

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

getAllProject

public static java.util.List<Project> getAllProject(INamedGraph graph)
                                             throws JastorException
Return an instance of Project for every resource in the model with rdf:Type http://xmlns.com/foaf/0.1/Project

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

createOnlineChatAccount

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

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

createOnlineChatAccount

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

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

getOnlineChatAccount

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

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

getOnlineChatAccount

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

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

getAllOnlineChatAccount

public static java.util.List<OnlineChatAccount> getAllOnlineChatAccount(INamedGraph graph)
                                                                 throws JastorException
Return an instance of OnlineChatAccount for every resource in the model with rdf:Type http://xmlns.com/foaf/0.1/OnlineChatAccount

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

createOnlineAccount

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

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

createOnlineAccount

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

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

getOnlineAccount

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

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

getOnlineAccount

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

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

getAllOnlineAccount

public static java.util.List<OnlineAccount> getAllOnlineAccount(INamedGraph graph)
                                                         throws JastorException
Return an instance of OnlineAccount for every resource in the model with rdf:Type http://xmlns.com/foaf/0.1/OnlineAccount

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

createAgent

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

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

createAgent

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

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

getAgent

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

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

getAgent

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

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

getAllAgent

public static java.util.List<Agent> getAllAgent(INamedGraph graph)
                                         throws JastorException
Return an instance of Agent for every resource in the model with rdf:Type http://xmlns.com/foaf/0.1/Agent

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

createGroup

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

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

createGroup

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

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

getGroup

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

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

getGroup

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

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

getAllGroup

public static java.util.List<Group> getAllGroup(INamedGraph graph)
                                         throws JastorException
Return an instance of Group for every resource in the model with rdf:Type http://xmlns.com/foaf/0.1/Group

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

createOnlineGamingAccount

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

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

createOnlineGamingAccount

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

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

getOnlineGamingAccount

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

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

getOnlineGamingAccount

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

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

getAllOnlineGamingAccount

public static java.util.List<OnlineGamingAccount> getAllOnlineGamingAccount(INamedGraph graph)
                                                                     throws JastorException
Return an instance of OnlineGamingAccount for every resource in the model with rdf:Type http://xmlns.com/foaf/0.1/OnlineGamingAccount

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

createOnlineEcommerceAccount

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

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

createOnlineEcommerceAccount

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

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

getOnlineEcommerceAccount

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

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

getOnlineEcommerceAccount

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

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

getAllOnlineEcommerceAccount

public static java.util.List<OnlineEcommerceAccount> getAllOnlineEcommerceAccount(INamedGraph graph)
                                                                           throws JastorException
Return an instance of OnlineEcommerceAccount for every resource in the model with rdf:Type http://xmlns.com/foaf/0.1/OnlineEcommerceAccount

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

createDocument

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

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

createDocument

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

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

getDocument

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

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

getDocument

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

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

getAllDocument

public static java.util.List<Document> getAllDocument(INamedGraph graph)
                                               throws JastorException
Return an instance of Document for every resource in the model with rdf:Type http://xmlns.com/foaf/0.1/Document

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

createOrganization

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

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

createOrganization

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

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

getOrganization

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

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

getOrganization

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

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

getAllOrganization

public static java.util.List<Organization> getAllOrganization(INamedGraph graph)
                                                       throws JastorException
Return an instance of Organization for every resource in the model with rdf:Type http://xmlns.com/foaf/0.1/Organization

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

createImage

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

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

createImage

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

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

getImage

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

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

getImage

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

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

getAllImage

public static java.util.List<Image> getAllImage(INamedGraph graph)
                                         throws JastorException
Return an instance of Image for every resource in the model with rdf:Type http://xmlns.com/foaf/0.1/Image

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

Returns:
a List of type java.lang.Class


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