Package org.semanticweb.owlapi.vocab
Enum Class Extensions
- All Implemented Interfaces:
Serializable
,Comparable<Extensions>
,java.lang.constant.Constable
A mapping between some known ontology formats and the common file extensions used for them. This
mapping is not necessarily complete and file extensions are not mandatory, so do not rely on this
as a filter to determine what is the format of an input file.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFunctional syntax, common extensions: fss, owlManchester OWL syntax, common extensions: omn, owlOBO, common extensions: oboOWL/XML, common extensions: xml, owl, rdfRDF/XML, common extensions: owl, rdf, rdfsTurtle, common extensions: ttl, owl -
Method Summary
Modifier and TypeMethodDescriptiongetCommonExtensions
(Class<? extends OWLDocumentFormat> format) static Extensions
Returns the enum constant of this class with the specified name.static Extensions[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
RDFXML
RDF/XML, common extensions: owl, rdf, rdfs -
OWLXML
OWL/XML, common extensions: xml, owl, rdf -
TURTLE
Turtle, common extensions: ttl, owl -
OBO
OBO, common extensions: obo -
MANCHESTERSYNTAX
Manchester OWL syntax, common extensions: omn, owl -
FUNCTIONALSYNTAX
Functional syntax, common extensions: fss, owl
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getCommonExtensions
- Parameters:
format
- the format for which extensions are desired- Returns:
- common extensions list. Empty list if no matching type is found.
-
getCommonExtensions
- Returns:
- common extensions for this type
-