Class StandardMapMetadataTransformer<T>

java.lang.Object
org.incenp.obofoundry.sssom.owl.StandardMapMetadataTransformer<T>
All Implemented Interfaces:
IMetadataTransformer<T,org.semanticweb.owlapi.model.IRI>

public class StandardMapMetadataTransformer<T> extends Object implements IMetadataTransformer<T,org.semanticweb.owlapi.model.IRI>
A class to transform mapping metadata slots into into their mapped IRIs according to the SSSOM specification.

This class differs from the DirectMetadataTransformer class in that it takes into account the value of the slot_uri field for the slot in the SSSOM schema, if the slot has such a field. For example, when applied to the creator_id slot, this class will return the IRI for dcterms:creator, instead of sssom:creator_id.

  • Constructor Details

    • StandardMapMetadataTransformer

      public StandardMapMetadataTransformer()
  • Method Details

    • transform

      public org.semanticweb.owlapi.model.IRI transform(Slot<T> slot)
      Description copied from interface: IMetadataTransformer
      Transforms a metadata slot into something else.
      Specified by:
      transform in interface IMetadataTransformer<T,org.semanticweb.owlapi.model.IRI>
      Parameters:
      slot - The slot to transform.
      Returns:
      The object generated from the slot.