|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.jena.graph.impl.GraphBase
de.fuberlin.wiwiss.d2rq.GraphD2RQ
A D2RQ virtual read-only graph 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-06-2004: Initial version of this class.
08-03-2004: New query algorithm, moved map building to MapParser
D2RQCapabilities
Field Summary | |
private com.hp.hpl.jena.graph.Capabilities |
capabilities
|
(package private) static PropertyBridge[] |
emptyPropertyBridgeArray
|
protected java.util.Map |
processingInstructions
|
private java.util.List |
propertyBridges
Collection of all PropertyBridges definded in the mapping file |
private static boolean |
usingD2RQQueryHandler
|
Fields inherited from class com.hp.hpl.jena.graph.impl.GraphBase |
bulkHandler, closed, gem, pm, queryHandler, reifier, style |
Fields inherited from interface com.hp.hpl.jena.graph.Graph |
emptyGraph |
Constructor Summary | |
GraphD2RQ(com.hp.hpl.jena.rdf.model.Model mapModel)
Creates a new D2RQ graph from a Jena model containing a D2RQ mapping. |
|
GraphD2RQ(java.lang.String mapURL)
Creates a new D2RQ graph from a D2RQ mapping file in Notation 3 syntax. |
|
GraphD2RQ(java.lang.String mapURL,
java.lang.String serializationFormat)
Creates a new D2RQ graph from a D2RQ mapping file. |
Method Summary | |
void |
close()
|
void |
enableDebug()
Enables D2RQ debug messages. |
com.hp.hpl.jena.graph.Capabilities |
getCapabilities()
|
private com.hp.hpl.jena.rdf.model.Model |
getModelFromURL(java.lang.String mapURL,
java.lang.String serializationFormat)
|
java.util.List |
getPropertyBridges()
|
com.hp.hpl.jena.util.iterator.ExtendedIterator |
graphBaseFind(com.hp.hpl.jena.graph.TripleMatch m)
|
private void |
initMap(com.hp.hpl.jena.rdf.model.Model mapModel)
|
static boolean |
isUsingD2RQQueryHandler()
|
java.util.ArrayList |
propertyBridgesForTriple(com.hp.hpl.jena.graph.Triple t)
|
com.hp.hpl.jena.graph.query.QueryHandler |
queryHandler()
Returns a QueryHandler for this graph. |
static void |
setUsingD2RQQueryHandler(boolean usingD2RQQueryHandler)
|
private java.util.List |
sortPropertyBridges(java.util.Collection unsortedBridges)
|
Methods inherited from class com.hp.hpl.jena.graph.impl.GraphBase |
add, checkOpen, contains, contains, containsByFind, delete, dependsOn, find, find, getBulkUpdateHandler, getEventManager, getPrefixMapping, getReifier, getTransactionHandler, graphBaseContains, graphBaseFind, graphBaseSize, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, performAdd, performDelete, reifierContains, reifierSize, reifierTriples, size, toString, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.hp.hpl.jena.graph.Graph |
contains, contains, delete, dependsOn, find, find, getBulkUpdateHandler, getEventManager, getPrefixMapping, getReifier, getTransactionHandler, isEmpty, isIsomorphicWith, size |
Methods inherited from interface com.hp.hpl.jena.graph.GraphAdd |
add |
Field Detail |
private static boolean usingD2RQQueryHandler
protected java.util.Map processingInstructions
private com.hp.hpl.jena.graph.Capabilities capabilities
private java.util.List propertyBridges
static PropertyBridge[] emptyPropertyBridgeArray
Constructor Detail |
public GraphD2RQ(java.lang.String mapURL) throws D2RQException
mapURL
- the URL where the mapping file is located
D2RQException
- on error in the mapping filepublic GraphD2RQ(java.lang.String mapURL, java.lang.String serializationFormat) throws D2RQException
mapURL
- the URL where the mapping file is locatedserializationFormat
- the serialization syntax format
D2RQException
- on error in the mapping filepublic GraphD2RQ(com.hp.hpl.jena.rdf.model.Model mapModel) throws D2RQException
mapModel
- the model containing a D2RQ mapping file
D2RQException
- on error in the mapping modelMethod Detail |
public static boolean isUsingD2RQQueryHandler()
public static void setUsingD2RQQueryHandler(boolean usingD2RQQueryHandler)
public java.util.List getPropertyBridges()
public void enableDebug()
private com.hp.hpl.jena.rdf.model.Model getModelFromURL(java.lang.String mapURL, java.lang.String serializationFormat)
private void initMap(com.hp.hpl.jena.rdf.model.Model mapModel) throws D2RQException
D2RQException
private java.util.List sortPropertyBridges(java.util.Collection unsortedBridges)
public com.hp.hpl.jena.graph.query.QueryHandler queryHandler()
queryHandler
in interface com.hp.hpl.jena.graph.Graph
Graph.queryHandler()
public void close()
close
in interface com.hp.hpl.jena.graph.Graph
Graph.close()
public com.hp.hpl.jena.graph.Capabilities getCapabilities()
getCapabilities
in interface com.hp.hpl.jena.graph.Graph
public com.hp.hpl.jena.util.iterator.ExtendedIterator graphBaseFind(com.hp.hpl.jena.graph.TripleMatch m)
public java.util.ArrayList propertyBridgesForTriple(com.hp.hpl.jena.graph.Triple t)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |