public class OWLImporter extends BaseImporter
BaseImporter.ImportEntry, BaseImporter.Module| Modifier and Type | Field and Description |
|---|---|
static String |
NOTHING_IRI |
static String |
THING_IRI |
| Constructor and Description |
|---|
OWLImporter(List<org.semanticweb.owlapi.model.OWLAxiom> axioms) |
OWLImporter(org.semanticweb.owlapi.model.OWLOntology ontology) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears all the state in the importer.
|
Iterator<Ontology> |
getOntologyVersions(IProgressMonitor monitor)
There are several models used to represent ontologies that have been adopted by different groups.
|
List<String> |
getProblems()
Returns a list of problems that happened during the import process.
|
boolean |
isUseSimpleFloats() |
boolean |
isUseSimpleInts() |
void |
setUseSimpleFloats(boolean useSimpleFloats) |
void |
setUseSimpleInts(boolean useSimpleInts) |
public static final String THING_IRI
public static final String NOTHING_IRI
public OWLImporter(org.semanticweb.owlapi.model.OWLOntology ontology)
public OWLImporter(List<org.semanticweb.owlapi.model.OWLAxiom> axioms)
public boolean isUseSimpleInts()
public void setUseSimpleInts(boolean useSimpleInts)
useSimpleInts - the useSimpleInts to setpublic boolean isUseSimpleFloats()
public void setUseSimpleFloats(boolean useSimpleFloats)
useSimpleFloats - the useSimpleFloats to setpublic void clear()
public List<String> getProblems()
IImporterImportException is thrown to get a detailed list of problems.public Iterator<Ontology> getOntologyVersions(IProgressMonitor monitor)
IImporterThere are several models used to represent ontologies that have been adopted by different groups. In this implementation a model based on SNOMED's RF2 format is used because it contains features that are not available in other formats.
An ontology in RF2 maps to a set of interdependent modules. This method returns all the ontologies found in a set of files. Implementations of importers for other file formats can simply return a single ontology.
If the files contain related modules then all of them are returned as a single ontology. This method returns an iterator that allows importing each ontology version.
monitor - A progress monitor.Copyright © 2019 Australian e-Health Research Centre. All Rights Reserved.