Class MappingFileParser

java.lang.Object
cz.cvut.kbss.jopa.util.MappingFileParser

public final class MappingFileParser extends Object
  • Field Details

    • DEFAULT_DELIMITER

      public static final String 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

      public static Map<URI,URI> getMappings(File mappingFile)
      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

      public static Map<URI,URI> getMappings(File mappingFile, String delimiter)
      Retrieves IRI mappings from the specified file using the specified mapping delimiter.
      Parameters:
      mappingFile - Mapping file to use
      delimiter - Delimiter of the mapped IRI
      Returns:
      Map of IRI mappings