Class SSSOMTHelper


  • public class SSSOMTHelper
    extends Object
    A helper class intended to host some methods used throughout the SSSOM/T-OWL code.
    • Field Detail

      • ANNOTS_KEYWORD

        public static final String ANNOTS_KEYWORD
        The name of the parameter used to specify the annotations to generate on a mapping-derived axiom.
        See Also:
        Constant Field Values
      • ANNOTS_URIS_KEYWORD

        public static final String ANNOTS_URIS_KEYWORD
        The name of the parameter used to specify how SSSOM fields are translated to OWL annotation property IRIs.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SSSOMTHelper

        public SSSOMTHelper()
    • Method Detail

      • maybeCreateAnnotatedTransformer

        public static IMappingTransformer<org.semanticweb.owlapi.model.OWLAxiom> maybeCreateAnnotatedTransformer​(SSSOMTOwlApplication application,
                                                                                                                 IMappingTransformer<org.semanticweb.owlapi.model.OWLAxiom> innerTransformer,
                                                                                                                 Map<String,​String> keyedArguments)
        Given an axiom generator, maybe wraps it into another generator that would produce the same axiom but annotated with metadata from the mapping from which the axiom is derived.
        Parameters:
        application - The SSSOM/T-OWL application.
        innerTransformer - The original axiom generator.
        keyedArguments - The named parameters given to a SSSOM/T-OWL function. This method will look for the annots and annots_uris keys to determine whether generated axioms should be annotated and how.
        Returns:
        The wrapped axiom generator, or the original generator if axiom annotations were not requested in the given parameters.