|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<OntologyFileFormat>
org.semanticweb.kaon2.api.OntologyFileFormat
public enum OntologyFileFormat
Enumerates all supported ontology formats for ontology files.
| Enum Constant Summary | |
|---|---|
OWL_RDF
|
|
OWL_XML
|
|
| Method Summary | |
|---|---|
static OntologyFileFormat |
getOntologyFormat(java.io.File file)
Attempts to decode the appropriate format of an ontology source. |
static OntologyFileFormat |
getOntologyFormat(java.io.InputStream inputStream)
Attempts to decode the appropriate format of an ontology source. |
static OntologyFileFormat |
getOntologyFormat(java.io.Reader reader)
Attempts to decode the appropriate format of an ontology source. |
static OntologyFileFormat |
getOntologyFormat(java.lang.String physicalURI,
java.net.Proxy proxy)
Attempts to decode the appropriate format of an ontology source. |
static java.lang.String |
getOntologyURI(java.io.File file)
Returns the ontology URI from a given OWLX ontology. |
static java.lang.String |
getOntologyURI(java.io.InputStream inputStream,
java.lang.String physicalURI)
Returns the ontology URI from a given OWLX ontology. |
static java.lang.String |
getOntologyURI(java.io.Reader reader,
java.lang.String physicalURI)
Returns the ontology URI from a given ontology. |
static java.lang.String |
getOntologyURI(java.lang.String physicalURI,
java.net.Proxy proxy)
Returns the ontology URI from a given ontology. |
static OntologyFileFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static OntologyFileFormat[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final OntologyFileFormat OWL_XML
public static final OntologyFileFormat OWL_RDF
| Method Detail |
|---|
public static final OntologyFileFormat[] values()
for(OntologyFileFormat c : OntologyFileFormat.values())
System.out.println(c);
public static OntologyFileFormat valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
public static OntologyFileFormat getOntologyFormat(java.io.Reader reader)
throws KAON2Exception
reader - the source containing the ontology text
KAON2Exception - thrown if the ontology text cannot be read or if the format is not supported
public static OntologyFileFormat getOntologyFormat(java.io.InputStream inputStream)
throws KAON2Exception
inputStream - the source containing the ontology text
KAON2Exception - thrown if the ontology text cannot be read or if the format is not supported
public static OntologyFileFormat getOntologyFormat(java.io.File file)
throws KAON2Exception
file - the source containing the ontology text
KAON2Exception - thrown if the ontology text cannot be read or if the format is not supported
public static OntologyFileFormat getOntologyFormat(java.lang.String physicalURI,
java.net.Proxy proxy)
throws KAON2Exception
physicalURI - the source containing the ontology textproxy - the proxy to use
KAON2Exception - thrown if the ontology text cannot be read or if the format is not supported
public static java.lang.String getOntologyURI(java.io.Reader reader,
java.lang.String physicalURI)
throws KAON2Exception
reader - the source with the ontology textphysicalURI - the physical URI of the ontology text
KAON2Exception - thrown if there is an error
public static java.lang.String getOntologyURI(java.io.InputStream inputStream,
java.lang.String physicalURI)
throws KAON2Exception
inputStream - the source with the ontology textphysicalURI - the physical URI of the ontology text
KAON2Exception - thrown if there is an error
public static java.lang.String getOntologyURI(java.io.File file)
throws KAON2Exception
file - the source with the ontology text
KAON2Exception - thrown if there is an error
public static java.lang.String getOntologyURI(java.lang.String physicalURI,
java.net.Proxy proxy)
throws KAON2Exception
physicalURI - the source with the ontology textproxy - the proxy to use
KAON2Exception - thrown if there is an error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||