ShortFormProvider
public class ManchesterOWLSyntaxPrefixNameShortFormProvider extends Object implements ShortFormProvider
Constructor | Description |
---|---|
ManchesterOWLSyntaxPrefixNameShortFormProvider(OWLDocumentFormat format) |
Constructs a short form provider that reuses any prefix name mappings
from the specified ontology format.
|
ManchesterOWLSyntaxPrefixNameShortFormProvider(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).
|
ManchesterOWLSyntaxPrefixNameShortFormProvider(DefaultPrefixManager prefixManager) |
Constructs a short form provider that uses the specified prefix mappings.
|
Modifier and Type | Method | Description |
---|---|---|
void |
dispose() |
Disposes of the short form proivider.
|
Map<String,String> |
getPrefixName2PrefixMap() |
|
static String |
getShortForm(IRI iri) |
Gets the short form for an IRI.
|
String |
getShortForm(OWLEntity entity) |
Gets the short form for the specified entity.
|
public ManchesterOWLSyntaxPrefixNameShortFormProvider(@Nonnull OWLOntology ont)
ont
- The ontologypublic ManchesterOWLSyntaxPrefixNameShortFormProvider(OWLDocumentFormat format)
format
- The format from which prefix name mappings will be reusedpublic ManchesterOWLSyntaxPrefixNameShortFormProvider(DefaultPrefixManager prefixManager)
prefixManager
- A prefix manager which will be used to obtain prefix mappingspublic Map<String,String> getPrefixName2PrefixMap()
public String getShortForm(OWLEntity entity)
ShortFormProvider
getShortForm
in interface ShortFormProvider
entity
- The entity.public static String getShortForm(@Nonnull IRI iri)
iri
- The IRIpublic void dispose()
ShortFormProvider
dispose
in interface ShortFormProvider
Copyright © 2018 The University of Manchester. All rights reserved.