java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_base.typetransformer.AbstractTypeTransformer<URL,Properties>
de.uni_mannheim.informatik.dws.melt.matching_base.typetransformer.basetransformers.URL2PropertiesTransformer
All Implemented Interfaces:
TypeTransformer<URL,Properties>

public class URL2PropertiesTransformer extends AbstractTypeTransformer<URL,Properties>
Transforms a URI to java.uril.Properties. Currently supported formats: YAML, JSON.
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • GSON

      private static final com.google.gson.Gson GSON
  • Constructor Details

    • URL2PropertiesTransformer

      public URL2PropertiesTransformer()
  • Method Details

    • transform

      public Properties transform(URL value, Properties parameters) throws TypeTransformationException
      Description copied from interface: TypeTransformer
      Transforms the given value to the new type. There is only one instance of this TypeTransformer. So any attribute of the class is used in multiple transformations.
      Parameters:
      value - the given value to convert
      parameters - the parameters can contain any further hints for the transformation e.g. create OntModel with or without reasoning / in memory or in file etc.
      Returns:
      the transformed value
      Throws:
      TypeTransformationException - in case the transformation did not work
    • parse

      public static Properties parse(URL value) throws IOException
      Throws:
      IOException