public class ManchesterOWLSyntaxPrefixNameShortFormProvider extends Object implements org.semanticweb.owlapi.util.ShortFormProvider
| Constructor and Description |
|---|
ManchesterOWLSyntaxPrefixNameShortFormProvider(org.semanticweb.owlapi.util.DefaultPrefixManager prefixManager)
Constructs a short form provider that uses the specified prefix mappings.
|
ManchesterOWLSyntaxPrefixNameShortFormProvider(org.semanticweb.owlapi.model.OWLDocumentFormat format)
Constructs a short form provider that reuses any prefix name mappings
from the specified ontology format.
|
ManchesterOWLSyntaxPrefixNameShortFormProvider(org.semanticweb.owlapi.model.OWLOntology ont)
Constructs a short form provider that reuses any prefix name mappings
obtainable from the format of the specified ontology (the manager will be
asked for the ontology format of the specified ontology).
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
Map<String,String> |
getPrefixName2PrefixMap() |
static String |
getShortForm(org.semanticweb.owlapi.model.IRI iri)
Gets the short form for an IRI.
|
String |
getShortForm(org.semanticweb.owlapi.model.OWLEntity entity) |
public ManchesterOWLSyntaxPrefixNameShortFormProvider(@Nonnull org.semanticweb.owlapi.model.OWLOntology ont)
ont - The ontologypublic ManchesterOWLSyntaxPrefixNameShortFormProvider(org.semanticweb.owlapi.model.OWLDocumentFormat format)
format - The format from which prefix name mappings will be reusedpublic ManchesterOWLSyntaxPrefixNameShortFormProvider(org.semanticweb.owlapi.util.DefaultPrefixManager prefixManager)
prefixManager - A prefix manager which will be used to obtain prefix mappingspublic Map<String,String> getPrefixName2PrefixMap()
public String getShortForm(org.semanticweb.owlapi.model.OWLEntity entity)
getShortForm in interface org.semanticweb.owlapi.util.ShortFormProviderpublic static String getShortForm(@Nonnull org.semanticweb.owlapi.model.IRI iri)
iri - The IRIpublic void dispose()
dispose in interface org.semanticweb.owlapi.util.ShortFormProviderCopyright © 2014 The University of Manchester. All Rights Reserved.