public class Mapping extends Object
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?)Modifier and Type | Method and Description |
---|---|
void |
addClassMap(ClassMap classMap) |
void |
addDatabase(Database database) |
void |
addDownloadMap(DownloadMap downloadMap) |
void |
addTranslationTable(TranslationTable table) |
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
|
ClassMap |
classMap(Resource name) |
Collection<Resource> |
classMapResources() |
void |
close() |
Collection<TripleRelation> |
compiledPropertyBridges() |
Configuration |
configuration() |
void |
connect()
Connects all databases.
|
Database |
database(Resource name) |
Collection<Database> |
databases() |
DownloadMap |
downloadMap(Resource name) |
Collection<Resource> |
downloadMapResources() |
PrefixMapping |
getPrefixMapping() |
Model |
getVocabularyModel() |
Resource |
resource() |
void |
setConfiguration(Configuration configuration) |
TranslationTable |
translationTable(Resource name) |
void |
validate() |
public Mapping()
public Mapping(String mappingURI)
public Resource resource()
public Model getVocabularyModel()
public void validate() throws D2RQException
D2RQException
public void connect()
D2RQException
- on connection failurepublic void close()
public void addDatabase(Database database)
public Collection<Database> databases()
public Configuration configuration()
public void setConfiguration(Configuration configuration)
public void addClassMap(ClassMap classMap)
public Collection<Resource> classMapResources()
public void addTranslationTable(TranslationTable table)
public TranslationTable translationTable(Resource name)
public void addDownloadMap(DownloadMap downloadMap)
public Collection<Resource> downloadMapResources()
public DownloadMap downloadMap(Resource name)
public Collection<TripleRelation> compiledPropertyBridges()
TripleRelation
s corresponding to each
of the property bridgespublic PrefixMapping getPrefixMapping()
public void buildVocabularyModel()