org.mindswap.owl
Interface OWLReader


public interface OWLReader

OWLReader provides various functions to read OWL ontologies.

Author:
Evren Sirin

Method Summary
 void addIgnoredOntology(java.net.URI uri)
           
 OWLCache getCache()
           
 java.util.Set getIgnoredOntologies()
           
 boolean getIgnoreFailedImport()
           
 OWLOntology read(java.io.InputStream in, java.net.URI baseURI)
           
 OWLOntology read(OWLKnowledgeBase kb, java.io.InputStream in, java.net.URI baseURI)
           
 OWLOntology read(OWLKnowledgeBase kb, java.io.Reader in, java.net.URI uri)
           
 OWLOntology read(OWLKnowledgeBase kb, java.net.URI uri)
           
 OWLOntology read(java.io.Reader in, java.net.URI baseURI)
           
 OWLOntology read(java.net.URI uri)
          Reads the the ontology from the given URI into a model.
 void setCache(OWLCache cache)
           
 void setErrorHandler(OWLErrorHandler errHandler)
           
 void setIgnoreFailedImport(boolean ignore)
           
 

Method Detail

read

OWLOntology read(java.net.URI uri)
                 throws java.io.FileNotFoundException
Reads the the ontology from the given URI into a model.

Parameters:
uri - URI of the ontology
withImports - if true load the imports closure of the ontology. otherwise only the given onotlogy is loaded, imported ones are discarded
Returns:
Jena model
Throws:
java.io.FileNotFoundException
java.lang.Exception

read

OWLOntology read(java.io.Reader in,
                 java.net.URI baseURI)

read

OWLOntology read(java.io.InputStream in,
                 java.net.URI baseURI)

read

OWLOntology read(OWLKnowledgeBase kb,
                 java.net.URI uri)
                 throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

read

OWLOntology read(OWLKnowledgeBase kb,
                 java.io.Reader in,
                 java.net.URI uri)

read

OWLOntology read(OWLKnowledgeBase kb,
                 java.io.InputStream in,
                 java.net.URI baseURI)

getIgnoredOntologies

java.util.Set getIgnoredOntologies()

addIgnoredOntology

void addIgnoredOntology(java.net.URI uri)

setErrorHandler

void setErrorHandler(OWLErrorHandler errHandler)

getCache

OWLCache getCache()

setCache

void setCache(OWLCache cache)

setIgnoreFailedImport

void setIgnoreFailedImport(boolean ignore)

getIgnoreFailedImport

boolean getIgnoreFailedImport()


Copyright © 2004 Evren Sirin. All Rights Reserved.