public class CommonBaseIRIMapper extends Object implements OWLOntologyIRIMapper
Constructor and Description |
---|
CommonBaseIRIMapper(IRI base)
Creates a mapper, which maps ontology URIs to URIs which share the
specified base.
|
Modifier and Type | Method and Description |
---|---|
void |
addMapping(IRI ontologyIRI,
String localName)
Adds a mapping from an ontology IRI to an ontology document IRI which has
a base of this mapper and a specified local name - in other words the
document IRI will be determined by resolving the local name against the
URI base of this mapper.
|
IRI |
getDocumentIRI(IRI ontologyIRI)
Given an ontology IRI, this method maps the ontology IRI to a document
IRI.
|
public void addMapping(@Nonnull IRI ontologyIRI, @Nonnull String localName)
ontologyIRI
- the ontology IRIlocalName
- the document IRIpublic IRI getDocumentIRI(IRI ontologyIRI)
OWLOntologyIRIMapper
getDocumentIRI
in interface OWLOntologyIRIMapper
ontologyIRI
- The ontology IRI to be mapped.null
if the mapper
doesn't have mapping for the specified ontology IRI.Copyright © 2020 The University of Manchester. All rights reserved.