de.fuberlin.wiwiss.d2rq
Class ModelD2RQ

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 byde.fuberlin.wiwiss.d2rq.ModelD2RQ
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 ModelD2RQ
extends com.hp.hpl.jena.rdf.model.impl.ModelCom
implements com.hp.hpl.jena.rdf.model.Model

A D2RQ read-only Jena model backed by a non-RDF database. D2RQ is a declarative mapping language for describing mappings between ontologies and relational data models. More information about D2RQ is found at: http://www.wiwiss.fu-berlin.de/suhl/bizer/d2rq/

History:
06-14-2004: Initial version of this class.
08-03-2004: enableDebug(), new constructors

Version:
V0.2
Author:
Chris Bizer chris@bizer.de, Richard Cyganiak
See Also:
GraphD2RQ

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 class com.hp.hpl.jena.enhanced.Polymorphic
 
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
ModelD2RQ(com.hp.hpl.jena.rdf.model.Model mapModel)
          Create a non-RDF database-based model.
ModelD2RQ(java.lang.String mapURL)
          Create a non-RDF database-based model.
ModelD2RQ(java.lang.String mapURL, java.lang.String serializationFormat)
          Create a non-RDF database-based model.
 
Method Summary
 void enableDebug()
          Enables D2RQ debug messages.
 
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
abort, add, add, add, add, add, add, begin, close, commit, contains, contains, contains, containsAll, containsAll, containsAny, containsAny, containsResource, createList, createList, createList, createLiteral, createLiteral, createLiteral, createProperty, createReifiedStatement, createReifiedStatement, createResource, createResource, createResource, createStatement, createTypedLiteral, createTypedLiteral, createTypedLiteral, difference, equals, executeInTransaction, getAnyReifiedStatement, getModelLock, getProperty, getProperty, getReificationStyle, getRequiredProperty, getResource, independent, intersection, isEmpty, isIsomorphicWith, isReified, listNameSpaces, listObjects, listObjectsOfProperty, listObjectsOfProperty, listReifiedStatements, listReifiedStatements, listStatements, listStatements, listStatements, listSubjects, listSubjectsWithProperty, listSubjectsWithProperty, notifyEvent, query, read, read, read, read, read, read, read, register, remove, remove, remove, removeAll, removeAll, removeAllReifications, removeReification, size, supportsSetOperations, supportsTransactions, union, unregister, write, write, write, write, write, write
 
Methods inherited from interface com.hp.hpl.jena.rdf.model.ModelCon
add, add, add, add, add, add, add, add, add, add, add, contains, contains, contains, contains, contains, contains, contains, contains, createAlt, createAlt, createBag, createBag, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createProperty, createResource, createResource, createResource, createResource, createSeq, createSeq, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, getAlt, getAlt, getBag, getBag, getProperty, getRDFNode, getResource, getSeq, getSeq, listStatements, listStatements, listStatements, listStatements, listStatements, listStatements, listStatements, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, remove, remove, remove
 
Methods inherited from interface com.hp.hpl.jena.rdf.model.ModelGraphInterface
asRDFNode, asStatement, getGraph, queryHandler
 
Methods inherited from interface com.hp.hpl.jena.rdf.model.RDFReaderF
getReader, getReader, setReaderClassName
 
Methods inherited from interface com.hp.hpl.jena.rdf.model.RDFWriterF
getWriter, getWriter, setWriterClassName
 
Methods inherited from interface com.hp.hpl.jena.shared.PrefixMapping
expandPrefix, getNsPrefixMap, getNsPrefixURI, getNsURIPrefix, lock, qnameFor, removeNsPrefix, setNsPrefix, setNsPrefixes, setNsPrefixes, shortForm, usePrefix, withDefaultMappings
 
Methods inherited from interface com.hp.hpl.jena.rdf.model.ModelLock
enterCriticalSection, leaveCriticalSection
 

Constructor Detail

ModelD2RQ

public ModelD2RQ(java.lang.String mapURL)
Create a non-RDF database-based model. The model is created from a D2RQ map that must be provided in N3 notation.

Parameters:
mapURL - URL of the D2RQ map to be used for this model

ModelD2RQ

public ModelD2RQ(java.lang.String mapURL,
                 java.lang.String serializationFormat)
Create a non-RDF database-based model. The model is created from a D2RQ map that may be in "RDF/XML", "N-TRIPLES" or "N3" format.

Parameters:
mapURL - URL of the D2RQ map to be used for this model
serializationFormat - the format of the map

ModelD2RQ

public ModelD2RQ(com.hp.hpl.jena.rdf.model.Model mapModel)
Create a non-RDF database-based model. The model is created from a D2RQ map that is provided as a Jena model.

Parameters:
mapModel - a Jena model containing the D2RQ map
Method Detail

enableDebug

public void enableDebug()
Enables D2RQ debug messages.