Package cz.cvut.kbss.jopa.util
Class MappingFileParser
java.lang.Object
cz.cvut.kbss.jopa.util.MappingFileParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Default delimiter of mappings in the mapping file. -
Method Summary
Modifier and TypeMethodDescriptiongetMappings
(File mappingFile) Retrieves IRI mappings from the specified file using the default mapping delimiter -DEFAULT_DELIMITER
.getMappings
(File mappingFile, String delimiter) Retrieves IRI mappings from the specified file using the specified mapping delimiter.
-
Field Details
-
DEFAULT_DELIMITER
Default delimiter of mappings in the mapping file.That is, on the left-hand side of the delimiter would the original IRI and on the right-hand side is the mapped value.
- See Also:
-
-
Method Details
-
getMappings
Retrieves IRI mappings from the specified file using the default mapping delimiter -DEFAULT_DELIMITER
.- Parameters:
mappingFile
- Mapping file to use- Returns:
- Map of IRI mappings
-
getMappings
Retrieves IRI mappings from the specified file using the specified mapping delimiter.- Parameters:
mappingFile
- Mapping file to usedelimiter
- Delimiter of the mapped IRI- Returns:
- Map of IRI mappings
-