Class PrefixMap

java.lang.Object
cz.cvut.kbss.jopa.owl2java.prefix.PrefixMap

public class PrefixMap extends Object
Keeps a map of prefixes resolved from provided ontologies.

Prefixes are resolved using the following strategy:

  • If an ontology has an explicitly specified prefix (using the configured prefix property), it is used
  • Constructor Details

  • Method Details

    • getPrefix

      public Optional<String> getPrefix(org.semanticweb.owlapi.model.IRI ontologyIri)
      Gets prefix for an ontology with the specified IRI.
      Parameters:
      ontologyIri - Ontology IRI
      Returns:
      Resolved prefix, if available
    • hasPrefix

      public boolean hasPrefix(org.semanticweb.owlapi.model.IRI ontologyIri)
      Checks whether a prefix has been resolved for the specified ontology IRI.
      Parameters:
      ontologyIri - Ontology IRI
      Returns:
      true if a prefix is registered for the ontology IRI, false otherwise