Class PrefixMap
java.lang.Object
cz.cvut.kbss.jopa.owl2java.prefix.PrefixMap
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 Summary
ConstructorsConstructorDescriptionPrefixMap
(org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager, TransformationConfiguration config) -
Method Summary
-
Constructor Details
-
PrefixMap
public PrefixMap(org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager, TransformationConfiguration config)
-
-
Method Details
-
getPrefix
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
-