public class OWLAPIObo2Owl extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
IRI_PROP_ISREVERSIBLEPROPERTYCHAIN
The Constant IRI_PROP_isReversiblePropertyChain.
|
| Constructor and Description |
|---|
OWLAPIObo2Owl(org.semanticweb.owlapi.model.OWLOntologyManager manager)
Instantiates a new oWLAPI obo2 owl.
|
| Modifier and Type | Method and Description |
|---|---|
org.semanticweb.owlapi.model.OWLOntology |
convert(OBODoc doc)
Convert.
|
org.semanticweb.owlapi.model.OWLOntology |
convert(OBODoc doc,
org.semanticweb.owlapi.model.OWLOntology in)
Convert.
|
org.semanticweb.owlapi.model.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,
org.semanticweb.owlapi.model.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,
org.semanticweb.owlapi.model.OWLOntologyManager manager)
See.
|
org.semanticweb.owlapi.model.OWLOntologyManager |
getManager()
Gets the manager.
|
OBODoc |
getObodoc()
Gets the obodoc.
|
org.semanticweb.owlapi.model.IRI |
loadOboToIRI(String id)
Obo id to iri.
|
org.semanticweb.owlapi.model.IRI |
oboIdToIRI(String id)
Obo id to iri.
|
void |
setManager(org.semanticweb.owlapi.model.OWLOntologyManager manager)
Sets the manager.
|
void |
setObodoc(OBODoc obodoc)
Sets the obodoc.
|
void |
trHeaderFrame(Frame headerFrame)
Tr header frame.
|
org.semanticweb.owlapi.model.OWLClassExpression |
trRel(String relId,
String classId,
Collection<QualifierValue> quals)
Tr rel.
|
static org.semanticweb.owlapi.model.IRI |
trTagToIRI(String tag)
Tr tag to iri.
|
org.semanticweb.owlapi.model.OWLClassExpression |
trTermFrame(Frame termFrame)
Tr term frame.
|
Set<org.semanticweb.owlapi.model.OWLAxiom> |
trTermFrameClauses(org.semanticweb.owlapi.model.OWLClass cls,
Collection<Clause> clauses,
String t)
Tr term frame clauses.
|
org.semanticweb.owlapi.model.OWLNamedObject |
trTypedefFrame(Frame typedefFrame)
Tr typedef frame.
|
public static final String IRI_PROP_ISREVERSIBLEPROPERTYCHAIN
public OWLAPIObo2Owl(org.semanticweb.owlapi.model.OWLOntologyManager manager)
manager - the managerpublic static void convertURL(String iri, String outFile, org.semanticweb.owlapi.model.OWLOntologyManager manager) throws IOException, org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.OWLOntologyStorageException
iri - the irioutFile - the out filemanager - manager to useIOException - Signals that an I/O exception has occurred.org.semanticweb.owlapi.model.OWLOntologyCreationException - the oWL ontology creation exceptionorg.semanticweb.owlapi.model.OWLOntologyStorageException - the oWL ontology storage exceptionOBOFormatParserException - the oBO format parser exceptionpublic static void convertURL(String iri, String outFile, String defaultOnt, org.semanticweb.owlapi.model.OWLOntologyManager manager) throws IOException, org.semanticweb.owlapi.model.OWLOntologyCreationException, org.semanticweb.owlapi.model.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.org.semanticweb.owlapi.model.OWLOntologyCreationException - the oWL ontology creation exceptionorg.semanticweb.owlapi.model.OWLOntologyStorageException - the oWL ontology storage exceptionOBOFormatParserException - the oBO format parser exception convertURL(String
iri, String outFile, OWLOntologyManager manager)public static org.semanticweb.owlapi.model.IRI trTagToIRI(String tag)
tag - the tagpublic org.semanticweb.owlapi.model.OWLOntologyManager getManager()
public void setManager(org.semanticweb.owlapi.model.OWLOntologyManager manager)
manager - the new managerpublic OBODoc getObodoc()
public void setObodoc(OBODoc obodoc)
obodoc - the new obodocpublic org.semanticweb.owlapi.model.OWLOntology convert(String oboFile) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
oboFile - the obo fileorg.semanticweb.owlapi.model.OWLOntologyCreationException - the oWL ontology creation exceptionpublic org.semanticweb.owlapi.model.OWLOntology convert(OBODoc doc) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
doc - the obodocorg.semanticweb.owlapi.model.OWLOntologyCreationException - the oWL ontology creation exceptionpublic org.semanticweb.owlapi.model.OWLOntology convert(OBODoc doc, org.semanticweb.owlapi.model.OWLOntology in)
doc - the obodocin - the inpublic void trHeaderFrame(Frame headerFrame)
headerFrame - the header framepublic org.semanticweb.owlapi.model.OWLClassExpression trTermFrame(Frame termFrame)
termFrame - the term framepublic Set<org.semanticweb.owlapi.model.OWLAxiom> trTermFrameClauses(org.semanticweb.owlapi.model.OWLClass cls, Collection<Clause> clauses, String t)
cls - the clsclauses - the clausest - the t@Nullable public org.semanticweb.owlapi.model.OWLNamedObject trTypedefFrame(Frame typedefFrame)
typedefFrame - the typedef framepublic org.semanticweb.owlapi.model.OWLClassExpression trRel(String relId, String classId, Collection<QualifierValue> quals)
relId - the rel idclassId - the class idquals - the qualspublic org.semanticweb.owlapi.model.IRI oboIdToIRI(String id)
id - the idpublic org.semanticweb.owlapi.model.IRI loadOboToIRI(String id)
id - the idCopyright © 2010–2018 The University of Manchester. All rights reserved.