Enum Class Extensions

java.lang.Object
java.lang.Enum<Extensions>
org.semanticweb.owlapi.vocab.Extensions
All Implemented Interfaces:
Serializable, Comparable<Extensions>, java.lang.constant.Constable

public enum Extensions extends Enum<Extensions>
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.
  • Enum Constant Details

    • RDFXML

      public static final Extensions RDFXML
      RDF/XML, common extensions: owl, rdf, rdfs
    • OWLXML

      public static final Extensions OWLXML
      OWL/XML, common extensions: xml, owl, rdf
    • TURTLE

      public static final Extensions TURTLE
      Turtle, common extensions: ttl, owl
    • OBO

      public static final Extensions OBO
      OBO, common extensions: obo
    • MANCHESTERSYNTAX

      public static final Extensions MANCHESTERSYNTAX
      Manchester OWL syntax, common extensions: omn, owl
    • FUNCTIONALSYNTAX

      public static final Extensions FUNCTIONALSYNTAX
      Functional syntax, common extensions: fss, owl
  • Method Details

    • values

      public static Extensions[] 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

      public static Extensions valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getCommonExtensions

      public static Iterable<String> getCommonExtensions(Class<? extends OWLDocumentFormat> format)
      Parameters:
      format - the format for which extensions are desired
      Returns:
      common extensions list. Empty list if no matching type is found.
    • getCommonExtensions

      public Iterable<String> getCommonExtensions()
      Returns:
      common extensions for this type