es.ucm.fdi.gaia.ontobridge
Class OntologyDocument

java.lang.Object
  extended by es.ucm.fdi.gaia.ontobridge.OntologyDocument

public class OntologyDocument
extends java.lang.Object

Represents the file/document containing an ontology. As ontologies should be online but usually are placed locally this class allows to map the URI of the ontology with the local copy.

Author:
Juan A. Recio Garcia

Constructor Summary
OntologyDocument(java.lang.String URL)
          Creates an ontology document.
OntologyDocument(java.lang.String URL, java.lang.String localfile)
          Creates an ontology document
 
Method Summary
 java.lang.String getLocalfile()
           
 java.lang.String getURL()
           
 boolean hasAltLocalFile()
          Checks if user has configured the local copy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OntologyDocument

public OntologyDocument(java.lang.String URL,
                        java.lang.String localfile)
Creates an ontology document

Parameters:
URL - The correct URL of the ontology
localfile - the local copy of the ontology

OntologyDocument

public OntologyDocument(java.lang.String URL)
Creates an ontology document. There is no local copy.

Parameters:
URL - The correct URL of the ontology
Method Detail

getLocalfile

public java.lang.String getLocalfile()
                              throws NoLocalFileException
Returns:
the localfile
Throws:
NoLocalFileException

getURL

public java.lang.String getURL()
Returns:
the URL

hasAltLocalFile

public boolean hasAltLocalFile()
Checks if user has configured the local copy