uk.ac.soton.ecs.grimoires.jena.sesame
Class ModelSesame

java.lang.Object
  extended bycom.hp.hpl.jena.enhanced.Polymorphic
      extended bycom.hp.hpl.jena.enhanced.EnhGraph
          extended bycom.hp.hpl.jena.rdf.model.impl.ModelCom
              extended byuk.ac.soton.ecs.grimoires.jena.sesame.ModelSesame
All Implemented Interfaces:
com.hp.hpl.jena.rdf.model.Model, com.hp.hpl.jena.rdf.model.ModelCon, com.hp.hpl.jena.rdf.model.ModelGraphInterface, com.hp.hpl.jena.rdf.model.ModelLock, com.hp.hpl.jena.shared.PrefixMapping, com.hp.hpl.jena.rdf.model.RDFReaderF, com.hp.hpl.jena.rdf.model.RDFWriterF

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 inherited from class com.hp.hpl.jena.shared.PrefixMapping
com.hp.hpl.jena.shared.PrefixMapping.Factory, com.hp.hpl.jena.shared.PrefixMapping.IllegalPrefixException, com.hp.hpl.jena.shared.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(com.hp.hpl.jena.graph.Graph base)
           
 
Method Summary
static com.hp.hpl.jena.rdf.model.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, int delay)
          Create a customized Jena-Sesame-Model, which uses a Sesame in-memory local repository,
static com.hp.hpl.jena.rdf.model.Model createNativeModel(boolean sync, String dir)
          Create a Jena-Sesame-Model, which uses a Sesame native local repository,
 
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, containsAny, containsAny, 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, 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, removeAll, removeAllReifications, removeNsPrefix, removeReification, 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, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.rdf.model.Model
equals
 

Constructor Detail

ModelSesame

public ModelSesame(com.hp.hpl.jena.graph.Graph base)
Parameters:
base -
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,
                                            int delay)
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).
delay - specifies the time (in milliseconds) to wait after a transaction was commited before writing the changed data to file.
Returns:
a Jena-Sesame-Model

createNativeModel

public static com.hp.hpl.jena.rdf.model.Model 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 com.hp.hpl.jena.rdf.model.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