org.openanzo.jastor
Class GraphThingFactory

java.lang.Object
  extended by org.openanzo.jastor.GraphThingFactory
Direct Known Subclasses:
AnzoFactory, Factory, Factory, Factory, Factory, FOAFFactory, OWL11Factory, QuesoFactory, RDFSFactory

public class GraphThingFactory
extends java.lang.Object

A basic factory that provides create methods for building block OWL types.

Author:
Joe Betz, Ben Szekely (bhszekel@us.ibm.com)

Field Summary
static AnzoValueFactory valueFactory
          Reference to static Anzo valueFactory
 
Constructor Summary
GraphThingFactory()
           
 
Method Summary
static void clearCache()
          Remove all objects from static cache of this factory.
static void clearCaches(java.lang.Class<GraphThing> type)
          Clear the property caches of the individual objects cached in this factory.
static GraphThing createGraphThing(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new DatasetThing if one doesn't already exist
static GraphThing createGraphThing(java.lang.String uri, INamedGraph graph)
          Create a new DatasetThing if one doesn't already exist
static GraphThing getGraphThing(org.openrdf.model.Resource resource, INamedGraph graph)
          Create a new DatasetThing if one doesn't already exist
static GraphThing getGraphThing(java.lang.String uri, INamedGraph graph)
          Create a new DatasetThing if one doesn't already exist
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

valueFactory

public static AnzoValueFactory valueFactory
Reference to static Anzo valueFactory

Constructor Detail

GraphThingFactory

public GraphThingFactory()
Method Detail

createGraphThing

public static GraphThing createGraphThing(org.openrdf.model.Resource resource,
                                          INamedGraph graph)
                                   throws JastorException
Create a new DatasetThing if one doesn't already exist

Parameters:
resource - Resource for object
graph - NamedGraph where resource resides
Returns:
new GraphThing
Throws:
JastorException - if resource or graph parameter is null

createGraphThing

public static GraphThing createGraphThing(java.lang.String uri,
                                          INamedGraph graph)
                                   throws JastorException
Create a new DatasetThing if one doesn't already exist

Parameters:
uri - String representation of Resource for object
graph - NamedGraph where resource resides
Returns:
new GraphThing
Throws:
JastorException - if uri or graph parameter is null

getGraphThing

public static GraphThing getGraphThing(org.openrdf.model.Resource resource,
                                       INamedGraph graph)
                                throws JastorException
Create a new DatasetThing if one doesn't already exist

Parameters:
resource - Resource for object
graph - NamedGraph where resource resides
Returns:
new GraphThing
Throws:
JastorException - if resource or graph parameter is null

getGraphThing

public static GraphThing getGraphThing(java.lang.String uri,
                                       INamedGraph graph)
                                throws JastorException
Create a new DatasetThing if one doesn't already exist

Parameters:
uri - String representation of Resource for object
graph - NamedGraph where resource resides
Returns:
new GraphThing
Throws:
JastorException - if uri or graph parameter is null

clearCache

public static void clearCache()
Remove all objects from static cache of this factory.


clearCaches

public static void clearCaches(java.lang.Class<GraphThing> type)
Clear the property caches of the individual objects cached in this factory.

Parameters:
type - if not null, clear caches of objects of this type only


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