org.semanticweb.owl.util
Class OWLEntityTinyURIConversionStrategy
java.lang.Object
org.semanticweb.owl.util.OWLEntityTinyURIConversionStrategy
- All Implemented Interfaces:
- OWLEntityURIConverterStrategy
public class OWLEntityTinyURIConversionStrategy
- extends java.lang.Object
- implements OWLEntityURIConverterStrategy
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 25-Nov-2007
Provides an entity URI conversion strategy which converts
entity URIs to a common base and alpha-numeric fragment.
The fragment is of the form An, where n is an integer (starting
at 1), and A is a string which depends on the type of entity:
- For classes: A = "C"
- For object properties: A = "op"
- For data properties: A = "dp"
- For individuals: A = "i"
Constructor Summary |
OWLEntityTinyURIConversionStrategy()
Constructs an entity URI converter strategy, where the base
of the generated URIs corresponds to the value specified
by the DEFAULT_BASE constant. |
OWLEntityTinyURIConversionStrategy(java.lang.String base)
Constructs an entity URI converter strategy, where the specified
base is used for the base of the URIs generated by the generator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_BASE
public static final java.lang.String DEFAULT_BASE
- See Also:
- Constant Field Values
OWLEntityTinyURIConversionStrategy
public OWLEntityTinyURIConversionStrategy()
- Constructs an entity URI converter strategy, where the base
of the generated URIs corresponds to the value specified
by the DEFAULT_BASE constant.
OWLEntityTinyURIConversionStrategy
public OWLEntityTinyURIConversionStrategy(java.lang.String base)
- Constructs an entity URI converter strategy, where the specified
base is used for the base of the URIs generated by the generator.
- Parameters:
base
- The base to be used.
getConvertedURI
public java.net.URI getConvertedURI(OWLEntity entity)
- Specified by:
getConvertedURI
in interface OWLEntityURIConverterStrategy