java.lang.Object
de.uni_mannheim.informatik.dws.melt.yet_another_alignment_api.SSSOMPrefixMap

public class SSSOMPrefixMap extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • prefixMap

      private final Map<String,String> prefixMap
    • cache

      private final Map<String,String> cache
  • Constructor Details

    • SSSOMPrefixMap

      public SSSOMPrefixMap()
  • Method Details

    • add

      public void add(String shortForm, String longForm)
    • addAll

      public void addAll(Map<? extends String,? extends String> map)
    • expand

      public String expand(String shortForm)
    • expandObject

      public Object expandObject(Object shortFormObject)
      Expands the given parameter with the prefixes stored in this prefix map. The object can be a string or list of strings.
      Parameters:
      shortFormObject - the object which may contains short forms
      Returns:
      the modified value
    • shorten

      public String shorten(String iri)
    • shortenObject

      public Object shortenObject(Object longFormObject)
      Shortens the given parameter with the prefixes stored in this prefix map. The object can be a string or list of strings.
      Parameters:
      longFormObject - the object which may contains long forms
      Returns:
      the modified value
    • getPrefixMap

      public Map<String,String> getPrefixMap()