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 CommonBaseIRIMapper(IRI base)
base - the base IRIpublic void addMapping(IRI ontologyIRI, String localName)
ontologyIRI - the ontology IRIlocalName - the document IRI@Nullable public IRI getDocumentIRI(IRI ontologyIRI)
OWLOntologyIRIMappergetDocumentIRI in interface OWLOntologyIRIMapperontologyIRI - The ontology IRI to be mapped.null if the mapper
doesn't have mapping for the specified ontology IRI.Copyright © 2017 The University of Manchester. All Rights Reserved.