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
TODO: Move TripleRelation/NodeMaker building and ConnectedDB to a separate class (MappingRunner?)
- 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 Resource resource()
getVocabularyModel
public Model getVocabularyModel()
validate
public void validate()
throws D2RQException
- Throws:
D2RQException
connect
public void connect()
- Connects all databases. This is done automatically if
needed. The method can be used to test the connections
earlier.
- Throws:
D2RQException
- on connection failure
close
public void close()
addDatabase
public void addDatabase(Database database)
databases
public Collection<Database> databases()
database
public Database database(Resource name)
configuration
public Configuration configuration()
setConfiguration
public void setConfiguration(Configuration configuration)
addClassMap
public void addClassMap(ClassMap classMap)
classMapResources
public Collection<Resource> classMapResources()
classMap
public ClassMap classMap(Resource name)
addTranslationTable
public void addTranslationTable(TranslationTable table)
translationTable
public TranslationTable translationTable(Resource name)
addDownloadMap
public void addDownloadMap(DownloadMap downloadMap)
downloadMapResources
public Collection<Resource> downloadMapResources()
downloadMap
public DownloadMap downloadMap(Resource name)
compiledPropertyBridges
public Collection<TripleRelation> compiledPropertyBridges()
- Returns:
- A collection of
TripleRelation
s corresponding to each
of the property bridges
getPrefixMapping
public PrefixMapping getPrefixMapping()
buildVocabularyModel
public void buildVocabularyModel()
- Loads labels, comments and additional properties for referenced
classes and properties and infers types
Must be called after all classes and property bridges are loaded