Class ManchesterOWLSyntaxPrefixNameShortFormProvider
java.lang.Object
org.semanticweb.owlapi.manchestersyntax.renderer.ManchesterOWLSyntaxPrefixNameShortFormProvider
- All Implemented Interfaces:
ShortFormProvider
public class ManchesterOWLSyntaxPrefixNameShortFormProvider
extends Object
implements ShortFormProvider
A special short form provider that delegates to a prefix manager to obtain
short forms. The only difference between this short form provider and a
prefix manager is that names with the default prefix do not have a colon with
this short form provider.
- Since:
- 3.0.0
- Author:
- Matthew Horridge, The University of Manchester, Information Management Group
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a short form provider that reuses any prefix name mappings from the specified ontology format.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).Constructs a short form provider that uses the specified prefix mappings. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getShortForm
(IRI iri) Gets the short form for an IRI.getShortForm
(OWLEntity entity) Gets the short form for the specified entity.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.semanticweb.owlapi.util.ShortFormProvider
dispose
-
Constructor Details
-
ManchesterOWLSyntaxPrefixNameShortFormProvider
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).- Parameters:
ont
- The ontology
-
ManchesterOWLSyntaxPrefixNameShortFormProvider
Constructs a short form provider that reuses any prefix name mappings from the specified ontology format.- Parameters:
format
- The format from which prefix name mappings will be reused
-
ManchesterOWLSyntaxPrefixNameShortFormProvider
Constructs a short form provider that uses the specified prefix mappings.- Parameters:
prefixManager
- A prefix manager which will be used to obtain prefix mappings
-
-
Method Details
-
getShortForm
Gets the short form for an IRI.- Parameters:
iri
- The IRI- Returns:
- The short form for the specified IRI
-
getPrefixName2PrefixMap
- Returns:
- prefix manager map. The map is a copy.
-
getShortForm
Description copied from interface:ShortFormProvider
Gets the short form for the specified entity.- Specified by:
getShortForm
in interfaceShortFormProvider
- Parameters:
entity
- The entity.- Returns:
- A string which represents a short rendering of the specified entity. The returned value will not be null but might be an empty string.
-