loadOntology can be retrieved through the getOntology function of OBOES. When loading an ontology, you must specify the path to the OBO file representing the ontology, as well as a user-specified name or handle to the ontology. Ontology names are arbitrary, but it is suggested that they bear some semblance to the actual name of the ontology. You cannot specify the same ontology name to be loaded twice for the same OBOES object. An ontology cannot be unloaded from an existing OBOES object after it is loaded; instead, simply create a new OBOES object. The OBO file path can be a local file, or it can be an online file. If the file is online, the full URL must be used, including the "http://" or "ftp://" prefix.
@param OBOFile the path to the OBO file to read in
@param ontology_name the user-specified name/handle to give to this ontology
@return true if the specified OBO file was read in without problems. falseif a problem was encountered; an error message is also displayed.
@see Ontology
ontologyURI parameter. Note that this is NOT the physical URI that points to a concrete representation (e.g. an RDF/XML OWL file) of an ontology. The mapping to a physical URI will be determined by using one of the loaded OWLOntologyURIMappers.
@param ontologyURI The ontology URI (sometimes called logical URI of the ontology to be loaded)
@return The OWLOntology representation of the ontology that was loaded. If an ontology with thespecified URI is already loaded then that ontology will be returned.
@throws OWLOntologyCreationException If there was a problem in creating and loading the ontology.
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |