public class OWLAPIObo2Owl extends Object
| Modifier and Type | Field and Description |
|---|---|
static Map<String,IRI> |
ANNOTATIONPROPERTYMAP
The annotation property map.
|
static String |
IRI_PROP_ISREVERSIBLEPROPERTYCHAIN
The Constant IRI_PROP_isReversiblePropertyChain.
|
| Constructor and Description |
|---|
OWLAPIObo2Owl(OWLOntologyManager manager)
Instantiates a new oWLAPI obo2 owl.
|
| Modifier and Type | Method and Description |
|---|---|
OWLOntology |
convert(OBODoc doc)
Convert.
|
OWLOntology |
convert(OBODoc doc,
OWLOntology in)
Convert.
|
OWLOntology |
convert(String oboFile)
Creates an OBOFormatParser object to parse a file and then converts it
using the convert method.
|
static void |
convertURL(String iri,
String outFile,
OWLOntologyManager manager)
Static convenience method which: (1) creates an Obo2Owl bridge object (2)
parses an obo file from a URL (3) converts that to an OWL ontology (4)
saves the OWL ontology as RDF/XML.
|
static void |
convertURL(String iri,
String outFile,
String defaultOnt,
OWLOntologyManager manager)
See.
|
OWLOntologyManager |
getManager()
Gets the manager.
|
OBODoc |
getObodoc()
Gets the obodoc.
|
IRI |
oboIdToIRI(String id)
Obo id to iri.
|
void |
setManager(OWLOntologyManager manager)
Sets the manager.
|
void |
setObodoc(OBODoc obodoc)
Sets the obodoc.
|
void |
trHeaderFrame(Frame headerFrame)
Tr header frame.
|
OWLClassExpression |
trRel(String relId,
String classId,
Collection<QualifierValue> quals)
Tr rel.
|
static IRI |
trTagToIRI(String tag)
Tr tag to iri.
|
OWLClassExpression |
trTermFrame(Frame termFrame)
Tr term frame.
|
Set<OWLAxiom> |
trTermFrameClauses(OWLClass cls,
Collection<Clause> clauses,
String t)
Tr term frame clauses.
|
OWLNamedObject |
trTypedefFrame(Frame typedefFrame)
Tr typedef frame.
|
public static final String IRI_PROP_ISREVERSIBLEPROPERTYCHAIN
public OWLAPIObo2Owl(OWLOntologyManager manager)
manager - the managerpublic static void convertURL(String iri, String outFile, OWLOntologyManager manager) throws IOException, OWLOntologyCreationException, OWLOntologyStorageException
iri - the irioutFile - the out filemanager - manager to useIOException - Signals that an I/O exception has occurred.OWLOntologyCreationException - the oWL ontology creation exceptionOWLOntologyStorageException - the oWL ontology storage exceptionOBOFormatParserException - the oBO format parser exceptionpublic static void convertURL(String iri, String outFile, String defaultOnt, OWLOntologyManager manager) throws IOException, OWLOntologyCreationException, OWLOntologyStorageException
iri - the irioutFile - the out filedefaultOnt - -- e.g. "go". If the obo file contains no "ontology:" header tag,
this is addedmanager - the manager to be usedIOException - Signals that an I/O exception has occurred.OWLOntologyCreationException - the oWL ontology creation exceptionOWLOntologyStorageException - the oWL ontology storage exceptionOBOFormatParserException - the oBO format parser exception
convertURL(String iri, String outFile, OWLOntologyManager manager)public OWLOntologyManager getManager()
public void setManager(OWLOntologyManager manager)
manager - the new managerpublic OBODoc getObodoc()
public void setObodoc(OBODoc obodoc)
obodoc - the new obodocpublic OWLOntology convert(String oboFile) throws OWLOntologyCreationException
oboFile - the obo fileOWLOntologyCreationException - the oWL ontology creation exceptionpublic OWLOntology convert(OBODoc doc) throws OWLOntologyCreationException
doc - the obodocOWLOntologyCreationException - the oWL ontology creation exceptionpublic OWLOntology convert(OBODoc doc, OWLOntology in) throws OWLOntologyCreationException
doc - the obodocin - the inOWLOntologyCreationException - the oWL ontology creation exceptionpublic void trHeaderFrame(Frame headerFrame)
headerFrame - the header framepublic OWLClassExpression trTermFrame(Frame termFrame)
termFrame - the term framepublic Set<OWLAxiom> trTermFrameClauses(OWLClass cls, Collection<Clause> clauses, String t)
cls - the clsclauses - the clausest - the tpublic OWLNamedObject trTypedefFrame(Frame typedefFrame)
typedefFrame - the typedef framepublic OWLClassExpression trRel(String relId, String classId, Collection<QualifierValue> quals)
relId - the rel idclassId - the class idquals - the qualspublic static IRI trTagToIRI(String tag)
tag - the tagCopyright © 2010-2016 The University of Manchester. All Rights Reserved.