org.openrdf.jena
Class ModelSesame

java.lang.Object
  extended by com.hp.hpl.jena.enhanced.Polymorphic
      extended by com.hp.hpl.jena.enhanced.EnhGraph
          extended by com.hp.hpl.jena.rdf.model.impl.ModelCom
              extended by org.openrdf.jena.ModelSesame
All Implemented Interfaces:
Model, ModelCon, ModelGraphInterface, ModelLock, RDFReaderF, RDFWriterF, Lock, PrefixMapping

public class ModelSesame
extends com.hp.hpl.jena.rdf.model.impl.ModelCom

Jena-Sesame-Model: A Jena model using Sesame as a backend.

Author:
wf

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.hp.hpl.jena.shared.PrefixMapping
PrefixMapping.Factory, PrefixMapping.IllegalPrefixException, PrefixMapping.JenaLockedException
 
Field Summary
 
Fields inherited from class com.hp.hpl.jena.rdf.model.impl.ModelCom
mapAsStatement, modelReifier
 
Fields inherited from class com.hp.hpl.jena.enhanced.EnhGraph
enhNodes, graph
 
Fields inherited from interface com.hp.hpl.jena.shared.PrefixMapping
Extended, Standard
 
Fields inherited from interface com.hp.hpl.jena.rdf.model.ModelLock
READ, WRITE
 
Constructor Summary
ModelSesame(Graph base)
           
ModelSesame(Repository rep)
          Create a default Jena-Sesame-Model, which uses the given Sesame repository.
 
Method Summary
static Model createDatabaseModel(boolean sync, String driver, String url, String user, String password)
          Create a Jena-Sesame-Model, which uses a Sesame rdbms local repository,
static ModelSesame createDefaultModel()
          Create a default Jena-Sesame-Model, which uses a Sesame in-memory local repository, and does not have persistent support, synchroinzation support and inference capability.
static ModelSesame createMemoryModel(boolean inferencing, boolean sync, String fileName, String format)
          Create a customized Jena-Sesame-Model, which uses a Sesame in-memory local repository,
static ModelSesame createNativeModel(boolean sync, String dir)
          Create a Jena-Sesame-Model, which uses a Sesame native local repository,
 Repository getRepository()
           
 Model removeAll()
           
 
Methods inherited from class com.hp.hpl.jena.rdf.model.impl.ModelCom
abort, adapt, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, addCommon, addNamespaces, asFilter, asModel, asNode, asRDFNode, asStatement, asStatements, asStatements, asStatements, begin, close, commit, contains, contains, contains, contains, contains, contains, contains, contains, contains, contains, contains, containsAll, containsAll, containsAllThenClose, containsAny, containsAny, containsAnyThenClose, containsResource, createAlt, createAlt, createBag, createBag, createList, createList, createList, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createProperty, createProperty, createReifiedStatement, createReifiedStatement, createResource, createResource, createResource, createResource, createResource, createResource, createResource, createSeq, createSeq, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createWorkModel, difference, enterCriticalSection, executeInTransaction, expandPrefix, findTriplesFrom, getAlt, getAlt, getAnyReifiedStatement, getBag, getBag, getBulkUpdateHandler, getDefaultModelPrefixes, getGraph, getHiddenStatements, getModelLock, getNsPrefixMap, getNsPrefixURI, getNsURIPrefix, getProperty, getProperty, getProperty, getRDFNode, getReader, getReader, getReificationStyle, getRequiredProperty, getResource, getResource, getSeq, getSeq, getWriter, getWriter, independent, intersect, intersection, isEmpty, isIsomorphicWith, isReified, leaveCriticalSection, listBySubject, listNameSpaces, listObjects, listObjectsOfProperty, listObjectsOfProperty, listReifiedStatements, listReifiedStatements, listStatements, listStatements, listStatements, listStatements, listStatements, listStatements, listStatements, listStatements, listStatements, listStatements, listStatements, listSubjects, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, lock, notifyEvent, qnameFor, query, queryHandler, read, read, read, read, read, read, read, register, reifiedToString, remove, remove, remove, remove, remove, remove, removeAll, removeAllReifications, removeNsPrefix, removeReification, samePrefixMappingAs, setDefaultModelPrefixes, setNsPrefix, setNsPrefixes, setNsPrefixes, setReaderClassName, setWriterClassName, shortForm, size, statementsToString, supportsSetOperations, supportsTransactions, toString, union, unregister, usePrefix, withDefaultMappings, write, write, write, write, write, write
 
Methods inherited from class com.hp.hpl.jena.enhanced.EnhGraph
asGraph, canSupport, convertTo, equals, getNodeAs, getNodeCacheControl, getPersonality, hashCode, isIsomorphicWith, isValid, setNodeCache
 
Methods inherited from class com.hp.hpl.jena.enhanced.Polymorphic
addView, already, asInternal, supports
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.rdf.model.Model
equals
 

Constructor Detail

ModelSesame

public ModelSesame(Graph base)
Parameters:
base -

ModelSesame

public ModelSesame(Repository rep)
Create a default Jena-Sesame-Model, which uses the given Sesame repository.

Parameters:
rep -
Method Detail

createDefaultModel

public static ModelSesame createDefaultModel()
Create a default Jena-Sesame-Model, which uses a Sesame in-memory local repository, and does not have persistent support, synchroinzation support and inference capability.


createMemoryModel

public static ModelSesame createMemoryModel(boolean inferencing,
                                            boolean sync,
                                            String fileName,
                                            String format)
Create a customized Jena-Sesame-Model, which uses a Sesame in-memory local repository,

Parameters:
inferencing - true: the model has inference capability; false: not.
sync - true: the model is synchronized; false: not.
fileName - the name of the file that acts as the persistent storage. Null means no persistent support required.
format - the RDF data format in the persistent storage. It can be rdfxml, ntriples, turtle, null (use the default which is ntriples).
Returns:
a Jena-Sesame-Model

createNativeModel

public static ModelSesame createNativeModel(boolean sync,
                                            String dir)
Create a Jena-Sesame-Model, which uses a Sesame native local repository,

Parameters:
sync - true: the model is synchronized; false: not.
dir - specifies the directory that can be used by the native sail to store its files.
Returns:
a Jena-Sesame-Model

createDatabaseModel

public static Model createDatabaseModel(boolean sync,
                                        String driver,
                                        String url,
                                        String user,
                                        String password)
Create a Jena-Sesame-Model, which uses a Sesame rdbms local repository,

Parameters:
sync - true: the model is synchronized; false: not.
driver - identifies the JDBC (Java Data Base Connectivity) driver that is to be used to access the database.
url - identifies the location of the database through a URL.
user - identifies a username with which Sesame can access the database.
password - identifies a password with which Sesame can access the database.
Returns:
a Jena-Sesame-Model

removeAll

public Model removeAll()
Specified by:
removeAll in interface Model
Overrides:
removeAll in class com.hp.hpl.jena.rdf.model.impl.ModelCom

getRepository

public Repository getRepository()