|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.jastor.GraphThingFactory
org.openanzo.atom.jastor.webarch.Factory
public class Factory
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://sw.nokia.com/WebArch-1/)
| Field Summary |
|---|
| Fields inherited from class org.openanzo.jastor.GraphThingFactory |
|---|
valueFactory |
| Constructor Summary | |
|---|---|
Factory()
|
|
| Method Summary | |
|---|---|
static InformationResource |
createInformationResource(org.openrdf.model.Resource resource,
INamedGraph graph)
Create a new instance of InformationResource. |
static InformationResource |
createInformationResource(java.lang.String uri,
INamedGraph graph)
Create a new instance of InformationResource. |
static Representation |
createRepresentation(org.openrdf.model.Resource resource,
INamedGraph graph)
Create a new instance of Representation. |
static Representation |
createRepresentation(java.lang.String uri,
INamedGraph graph)
Create a new instance of Representation. |
static java.util.List<InformationResource> |
getAllInformationResource(INamedGraph graph)
Return an instance of InformationResource for every resource in the model with rdf:Type http://sw.nokia.com/WebArch-1/InformationResource |
static java.util.List<Representation> |
getAllRepresentation(INamedGraph graph)
Return an instance of Representation for every resource in the model with rdf:Type http://sw.nokia.com/WebArch-1/Representation |
static InformationResource |
getInformationResource(org.openrdf.model.Resource resource,
INamedGraph graph)
Create a new instance of InformationResource. |
static InformationResource |
getInformationResource(java.lang.String uri,
INamedGraph graph)
Create a new instance of InformationResource. |
static Representation |
getRepresentation(org.openrdf.model.Resource resource,
INamedGraph graph)
Create a new instance of Representation. |
static Representation |
getRepresentation(java.lang.String uri,
INamedGraph graph)
Create a new instance of Representation. |
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 |
|---|
public Factory()
| Method Detail |
|---|
public static InformationResource createInformationResource(org.openrdf.model.Resource resource,
INamedGraph graph)
throws JastorException
resource - The resource of the InformationResourcegraph - the Jena graph.
JastorException
public static InformationResource createInformationResource(java.lang.String uri,
INamedGraph graph)
throws JastorException
uri - The uri of the InformationResourcegraph - the Jena graph.
JastorException
public static InformationResource getInformationResource(java.lang.String uri,
INamedGraph graph)
throws JastorException
uri - The uri of the InformationResourcegraph - the Jena graph.
JastorException
public static InformationResource getInformationResource(org.openrdf.model.Resource resource,
INamedGraph graph)
throws JastorException
resource - The resource of the InformationResourcegraph - the Jena graph.
JastorException
public static java.util.List<InformationResource> getAllInformationResource(INamedGraph graph)
throws JastorException
model - the Jena Model
JastorException
public static Representation createRepresentation(org.openrdf.model.Resource resource,
INamedGraph graph)
throws JastorException
resource - The resource of the Representationgraph - the Jena graph.
JastorException
public static Representation createRepresentation(java.lang.String uri,
INamedGraph graph)
throws JastorException
uri - The uri of the Representationgraph - the Jena graph.
JastorException
public static Representation getRepresentation(java.lang.String uri,
INamedGraph graph)
throws JastorException
uri - The uri of the Representationgraph - the Jena graph.
JastorException
public static Representation getRepresentation(org.openrdf.model.Resource resource,
INamedGraph graph)
throws JastorException
resource - The resource of the Representationgraph - the Jena graph.
JastorException
public static java.util.List<Representation> getAllRepresentation(INamedGraph graph)
throws JastorException
model - the Jena Model
JastorExceptionpublic static java.util.List listCompatibleInterfaces(org.openrdf.model.Resource type)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||