de.fuberlin.wiwiss.d2rq.map
Class Mapping
java.lang.Object
de.fuberlin.wiwiss.d2rq.map.Mapping
public class Mapping
- extends Object
A D2RQ mapping. Consists of ClassMap
s,
PropertyBridge
s, and several other classes.
TODO: Add getters to everything and move Relation/NodeMaker building to a separate class
- Version:
- $Id: Mapping.java,v 1.7 2006/09/18 19:06:54 cyganiak Exp $
- Author:
- Richard Cyganiak (richard@cyganiak.de)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Mapping
public Mapping()
Mapping
public Mapping(String mappingURI)
resource
public com.hp.hpl.jena.rdf.model.Resource resource()
validate
public void validate()
throws D2RQException
- Throws:
D2RQException
addDatabase
public void addDatabase(Database database)
databases
public Collection databases()
database
public Database database(com.hp.hpl.jena.rdf.model.Resource name)
addClassMap
public void addClassMap(ClassMap classMap)
classMapResources
public Collection classMapResources()
classMap
public ClassMap classMap(com.hp.hpl.jena.rdf.model.Resource name)
addTranslationTable
public void addTranslationTable(TranslationTable table)
translationTable
public TranslationTable translationTable(com.hp.hpl.jena.rdf.model.Resource name)
setProcessingInstruction
public void setProcessingInstruction(com.hp.hpl.jena.rdf.model.Property key,
String value)
processingInstruction
public String processingInstruction(com.hp.hpl.jena.rdf.model.Property property)
compiledPropertyBridges
public Collection compiledPropertyBridges()
- Returns:
- A collection of
RDFRelation
s corresponding to each
of the property bridges