|
Protégé-OWL 3.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser
public class ProtegeOWLParser
An OWL parser that reads an OWL stream triple-by-triple and writes the corresponding Protege-OWL Triples into one or more TripleStores. The current implementation uses the Jena ARP parser for triple loading.
Nested Class Summary | |
---|---|
static interface |
ProtegeOWLParser.ARPInvokation
An interface needed as an abstraction of the various methods to invoke the Jena ARP (the various load methods with different parameters). |
Field Summary | |
---|---|
static String |
CREATE_UNTYPED_RESOURCES
|
static String |
JENA_ERROR_LEVEL_PROPERTY
|
static String |
PRINT_LOAD_TRIPLES_LOG
|
static String |
PRINT_LOAD_TRIPLES_LOG_INCREMENT
|
Constructor Summary | |
---|---|
ProtegeOWLParser(OWLModel owlModel)
|
Method Summary | |
---|---|
protected com.hp.hpl.jena.rdf.arp.ARP |
createARP(TripleStore tripleStore)
|
static void |
doFinalPostProcessing(OWLModel owlModel)
|
static Collection |
getErrors()
|
static InputStream |
getInputStream(URL url)
|
boolean |
isMergingImportMode()
|
void |
loadTriples(String ontologyLocation,
URI xmlBase,
InputStream is)
Loading triples |
void |
run(InputStream is,
String xmlBase)
This method loads an ontology from the specified input stream using the specified base uri. |
void |
run(Reader reader,
String xmlBase)
This method loads an ontology using the specified Reader and using the specified base uri. |
void |
run(URI uri)
This method loads an ontology pointed to by the specified URI. |
void |
setErrorLevel(com.hp.hpl.jena.rdf.arp.ARP arp)
|
void |
setImporting(boolean importing)
Imports |
void |
setMergingImportMode(boolean isMergingImport)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String JENA_ERROR_LEVEL_PROPERTY
public static final String CREATE_UNTYPED_RESOURCES
public static final String PRINT_LOAD_TRIPLES_LOG
public static final String PRINT_LOAD_TRIPLES_LOG_INCREMENT
Constructor Detail |
---|
public ProtegeOWLParser(OWLModel owlModel)
Method Detail |
---|
protected com.hp.hpl.jena.rdf.arp.ARP createARP(TripleStore tripleStore)
public void setErrorLevel(com.hp.hpl.jena.rdf.arp.ARP arp)
public void run(URI uri) throws edu.stanford.smi.protege.exception.OntologyLoadException
uri
- The URI
that points to the ontology.
edu.stanford.smi.protege.exception.OntologyLoadException
public void run(InputStream is, String xmlBase) throws edu.stanford.smi.protege.exception.OntologyLoadException
is
- xmlBase
- The XML base to use when loading the ontology. This is typically
the URI from where the ontology was loaded.
Exception
edu.stanford.smi.protege.exception.OntologyLoadException
public void run(Reader reader, String xmlBase) throws edu.stanford.smi.protege.exception.OntologyLoadException
InputStream
as a parameter rather than a Reader
.
reader
- The reader used to read the ontologyxmlBase
- The XML base to use when loading the ontology. This is typically
the URI from where the ontology was loaded.
Exception
edu.stanford.smi.protege.exception.OntologyLoadException
public void loadTriples(String ontologyLocation, URI xmlBase, InputStream is) throws edu.stanford.smi.protege.exception.OntologyLoadException
edu.stanford.smi.protege.exception.OntologyLoadException
public static void doFinalPostProcessing(OWLModel owlModel) throws edu.stanford.smi.protege.exception.OntologyLoadException
edu.stanford.smi.protege.exception.OntologyLoadException
public void setImporting(boolean importing)
public static Collection getErrors()
public static InputStream getInputStream(URL url) throws edu.stanford.smi.protege.exception.OntologyLoadException
edu.stanford.smi.protege.exception.OntologyLoadException
public boolean isMergingImportMode()
public void setMergingImportMode(boolean isMergingImport)
|
Protégé-OWL 3.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |