| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.semanticweb.owlapi.model.OWLOntologyID
public final class OWLOntologyID
Author: Matthew Horridge
 The University of Manchester
 Information Management Group
 Date: 18-Jan-2009
 
| Constructor Summary | |
|---|---|
OWLOntologyID()
Constructs an ontology identifier specifying that the ontology IRI (and hence the version IRI) is not present.  | 
|
OWLOntologyID(IRI ontologyIRI)
Constructs an ontology identifier specifying the ontology IRI  | 
|
OWLOntologyID(IRI ontologyIRI,
              IRI versionIRI)
Constructs an ontology identifier specifiying the ontology IRI and version IRI  | 
|
| Method Summary | |
|---|---|
 int | 
compareTo(OWLOntologyID o)
 | 
 boolean | 
equals(java.lang.Object obj)
 | 
 IRI | 
getDefaultDocumentIRI()
Gets the IRI which is used as a default for the document that contain a representation of an ontology with this ID.  | 
 IRI | 
getOntologyIRI()
 | 
 IRI | 
getVersionIRI()
 | 
 int | 
hashCode()
 | 
 boolean | 
isAnonymous()
Determines if this ID names an ontology or whether it is an ID for an ontology without an IRI.  | 
 boolean | 
isOWL2DLOntologyID()
Determines if this is a valid OWL 2 DL ontology ID.  | 
 java.lang.String | 
toString()
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public OWLOntologyID(IRI ontologyIRI)
ontologyIRI - The ontology IRI used to indentify the ontology
public OWLOntologyID(IRI ontologyIRI,
                     IRI versionIRI)
ontologyIRI - The ontology IRI (may be null)versionIRI - The version IRI (must be null if the ontologyIRI is null)public OWLOntologyID()
| Method Detail | 
|---|
public boolean isOWL2DLOntologyID()
true if this is a valid OWL 2 DL ontology ID, otherwise falseIRI.isReservedVocabulary()public int compareTo(OWLOntologyID o)
compareTo in interface java.lang.Comparable<OWLOntologyID>public IRI getOntologyIRI()
public IRI getVersionIRI()
public IRI getDefaultDocumentIRI()
null if there is no ontology IRI.
 See Ontology Documents in
 the OWL 2 Structural Specification.
null.public boolean isAnonymous()
true if this ID is an ID for an ontology without an IRI, or false
         if this ID is an ID for an ontology with an IRI.public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||