public class OWLAPIObo2Owl extends Object
| Modifier and Type | Field and Description |
|---|---|
static Map<String,org.semanticweb.owlapi.model.IRI> |
annotationPropertyMap |
protected Set<org.semanticweb.owlapi.model.OWLAnnotationProperty> |
apToDeclare |
protected Map<String,org.semanticweb.owlapi.model.OWLClass> |
clsToDeclar |
protected String |
defaultIDSpace |
protected org.semanticweb.owlapi.model.OWLDataFactory |
fac |
protected Map<String,String> |
idSpaceMap |
static String |
IRI_PROP_isReversiblePropertyChain
reversible property chain iri
|
protected org.semanticweb.owlapi.model.OWLOntologyManager |
manager |
protected OBODoc |
obodoc |
protected org.semanticweb.owlapi.model.OWLOntology |
owlOntology |
protected Map<String,org.semanticweb.owlapi.model.OWLAnnotationProperty> |
typedefToAnnotationProperty |
| Constructor and Description |
|---|
OWLAPIObo2Owl(org.semanticweb.owlapi.model.OWLOntologyManager manager) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
add(org.semanticweb.owlapi.model.OWLAxiom axiom) |
protected void |
add(Set<org.semanticweb.owlapi.model.OWLAxiom> axioms) |
protected void |
addDeclaredAnnotationProperties(Collection<org.semanticweb.owlapi.model.OWLAnnotationProperty> declaredProperties) |
protected void |
addOntologyAnnotation(org.semanticweb.owlapi.model.OWLAnnotationProperty ap,
org.semanticweb.owlapi.model.OWLAnnotationValue v,
Set<org.semanticweb.owlapi.model.OWLAnnotation> annotations) |
protected void |
addPropertyValueHeaders(Collection<Clause> clauses) |
protected void |
apply(List<org.semanticweb.owlapi.model.OWLOntologyChange> changes) |
protected void |
apply(org.semanticweb.owlapi.model.OWLOntologyChange change) |
org.semanticweb.owlapi.model.OWLOntology |
convert(OBODoc doc) |
org.semanticweb.owlapi.model.OWLOntology |
convert(OBODoc doc,
org.semanticweb.owlapi.model.OWLOntology in) |
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)
|
protected String |
getDefaultIDSpace() |
protected String |
getIdPrefix(String x) |
org.semanticweb.owlapi.model.OWLOntologyManager |
getManager() |
OBODoc |
getObodoc() |
protected org.semanticweb.owlapi.model.OWLOntology |
getOwlOntology() |
protected Boolean |
getQVBoolean(String q,
Collection<QualifierValue> quals) |
protected Integer |
getQVInt(String q,
Collection<QualifierValue> quals) |
protected String |
getQVString(String q,
Collection<QualifierValue> quals) |
protected String |
getURI(String path) |
protected void |
init(org.semanticweb.owlapi.model.OWLOntologyManager m) |
protected static HashMap<String,org.semanticweb.owlapi.model.IRI> |
initAnnotationPropertyMap()
Table 5.8 Translation of Annotation Vocabulary.
|
protected String |
mapPropId(String id)
See section "header macros" and treat-xrefs-as-equivalent
|
org.semanticweb.owlapi.model.IRI |
oboIdToIRI(String id) |
protected void |
postProcess(org.semanticweb.owlapi.model.OWLOntology ontology)
perform any necessary post-processing.
|
void |
setManager(org.semanticweb.owlapi.model.OWLOntologyManager manager) |
void |
setObodoc(OBODoc obodoc) |
protected void |
setOwlOntology(org.semanticweb.owlapi.model.OWLOntology owlOntology) |
protected org.semanticweb.owlapi.model.OWLOntology |
tr(org.semanticweb.owlapi.model.OWLOntology in) |
protected org.semanticweb.owlapi.model.OWLAnnotationProperty |
trAnnotationProp(String relId) |
protected Set<org.semanticweb.owlapi.model.OWLAnnotation> |
trAnnotations(Clause clause) |
protected void |
trAnnotations(Clause clause,
Set<org.semanticweb.owlapi.model.OWLAnnotation> anns) |
protected Set<? extends org.semanticweb.owlapi.model.OWLAnnotation> |
trAnnotations(Collection<Clause> clauses) |
protected String |
translateShorthandIdToExpandedId(String id) |
protected org.semanticweb.owlapi.model.OWLClassExpression |
trClass(Object v) |
protected org.semanticweb.owlapi.model.OWLClass |
trClass(String classId) |
protected org.semanticweb.owlapi.model.OWLAxiom |
trGenericClause(org.semanticweb.owlapi.model.OWLAnnotationSubject sub,
String tag,
Clause clause) |
protected org.semanticweb.owlapi.model.OWLAxiom |
trGenericClause(org.semanticweb.owlapi.model.OWLNamedObject e,
String tag,
Clause clause) |
void |
trHeaderFrame(Frame headerFrame) |
protected org.semanticweb.owlapi.model.OWLIndividual |
trIndividual(String instId) |
protected org.semanticweb.owlapi.model.OWLAxiom |
trIntersectionOf(org.semanticweb.owlapi.model.OWLClass cls,
Collection<Clause> clauses) |
protected org.semanticweb.owlapi.model.OWLAnnotationValue |
trLiteral(Object value) |
protected org.semanticweb.owlapi.model.OWLObjectPropertyExpression |
trObjectProp(Object v) |
protected org.semanticweb.owlapi.model.OWLObjectProperty |
trObjectProp(String relId) |
org.semanticweb.owlapi.model.OWLClassExpression |
trRel(String relId,
String classId,
Collection<QualifierValue> quals) |
protected org.semanticweb.owlapi.model.OWLAxiom |
trRelationIntersectionOf(String id,
org.semanticweb.owlapi.model.OWLProperty<?,?> p,
Collection<Clause> clauses) |
protected org.semanticweb.owlapi.model.OWLAxiom |
trRelationUnionOf(String id,
org.semanticweb.owlapi.model.OWLProperty<?,?> p,
Collection<Clause> clauses) |
protected org.semanticweb.owlapi.model.OWLAnnotationProperty |
trSynonymType(String type) |
protected org.semanticweb.owlapi.model.OWLAnnotationProperty |
trTagToAnnotationProp(String tag) |
static org.semanticweb.owlapi.model.IRI |
trTagToIRI(String tag) |
protected org.semanticweb.owlapi.model.OWLAxiom |
trTermClause(org.semanticweb.owlapi.model.OWLClass cls,
String tag,
Clause clause)
#5.2
|
org.semanticweb.owlapi.model.OWLClassExpression |
trTermFrame(Frame termFrame) |
Set<org.semanticweb.owlapi.model.OWLAxiom> |
trTermFrameClauses(org.semanticweb.owlapi.model.OWLClass cls,
Collection<Clause> clauses,
String t) |
protected org.semanticweb.owlapi.model.OWLAxiom |
trTypedefClause(org.semanticweb.owlapi.model.OWLObjectProperty p,
String tag,
Clause clause) |
org.semanticweb.owlapi.model.OWLNamedObject |
trTypedefFrame(Frame typedefFrame) |
protected org.semanticweb.owlapi.model.OWLNamedObject |
trTypedefToAnnotationProperty(Frame typedefFrame) |
protected org.semanticweb.owlapi.model.OWLAxiom |
trUnionOf(org.semanticweb.owlapi.model.OWLClass cls,
Collection<Clause> clauses) |
public static final String IRI_PROP_isReversiblePropertyChain
protected String defaultIDSpace
protected org.semanticweb.owlapi.model.OWLOntologyManager manager
protected org.semanticweb.owlapi.model.OWLOntology owlOntology
protected org.semanticweb.owlapi.model.OWLDataFactory fac
protected OBODoc obodoc
public static Map<String,org.semanticweb.owlapi.model.IRI> annotationPropertyMap
protected final Set<org.semanticweb.owlapi.model.OWLAnnotationProperty> apToDeclare
public OWLAPIObo2Owl(org.semanticweb.owlapi.model.OWLOntologyManager manager)
manager - managerprotected void init(org.semanticweb.owlapi.model.OWLOntologyManager m)
public 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, OBOFormatParserException
iri - irioutFile - outFilemanager - manager to useIOException - IOExceptionorg.semanticweb.owlapi.model.OWLOntologyCreationException - OWLOntologyCreationExceptionorg.semanticweb.owlapi.model.OWLOntologyStorageException - OWLOntologyStorageExceptionOBOFormatParserException - OBOFormatParserExceptionpublic 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, OBOFormatParserException
iri - irioutFile - outFiledefaultOnt - -- e.g. "go". If the obo file contains no "ontology:" header tag,
this is addedmanager - the manager to be usedIOException - IOExceptionorg.semanticweb.owlapi.model.OWLOntologyCreationException - OWLOntologyCreationExceptionorg.semanticweb.owlapi.model.OWLOntologyStorageException - OWLOntologyStorageExceptionOBOFormatParserException - OBOFormatParserExceptionprotected static HashMap<String,org.semanticweb.owlapi.model.IRI> initAnnotationPropertyMap()
public org.semanticweb.owlapi.model.OWLOntologyManager getManager()
public void setManager(org.semanticweb.owlapi.model.OWLOntologyManager manager)
manager - managerpublic OBODoc getObodoc()
public void setObodoc(OBODoc obodoc)
obodoc - obodocprotected org.semanticweb.owlapi.model.OWLOntology getOwlOntology()
protected void setOwlOntology(org.semanticweb.owlapi.model.OWLOntology owlOntology)
owlOntology - the owlOntology to setpublic org.semanticweb.owlapi.model.OWLOntology convert(String oboFile) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
oboFile - oboFileorg.semanticweb.owlapi.model.OWLOntologyCreationException - OWLOntologyCreationExceptionpublic org.semanticweb.owlapi.model.OWLOntology convert(OBODoc doc) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
doc - obodocorg.semanticweb.owlapi.model.OWLOntologyCreationException - OWLOntologyCreationExceptionpublic org.semanticweb.owlapi.model.OWLOntology convert(OBODoc doc, org.semanticweb.owlapi.model.OWLOntology in) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
doc - obodocin - inorg.semanticweb.owlapi.model.OWLOntologyCreationException - OWLOntologyCreationExceptionprotected org.semanticweb.owlapi.model.OWLOntology tr(org.semanticweb.owlapi.model.OWLOntology in)
throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationExceptionprotected void postProcess(org.semanticweb.owlapi.model.OWLOntology ontology)
ontology - ontologypublic void trHeaderFrame(Frame headerFrame)
headerFrame - headerFrameprotected void addPropertyValueHeaders(Collection<Clause> clauses)
protected void addOntologyAnnotation(org.semanticweb.owlapi.model.OWLAnnotationProperty ap,
org.semanticweb.owlapi.model.OWLAnnotationValue v,
Set<org.semanticweb.owlapi.model.OWLAnnotation> annotations)
public org.semanticweb.owlapi.model.OWLClassExpression trTermFrame(Frame termFrame)
termFrame - termFramepublic Set<org.semanticweb.owlapi.model.OWLAxiom> trTermFrameClauses(org.semanticweb.owlapi.model.OWLClass cls, Collection<Clause> clauses, String t)
cls - clsclauses - clausest - tprotected org.semanticweb.owlapi.model.OWLNamedObject trTypedefToAnnotationProperty(Frame typedefFrame)
public org.semanticweb.owlapi.model.OWLNamedObject trTypedefFrame(Frame typedefFrame)
typedefFrame - typedefFrameprotected org.semanticweb.owlapi.model.OWLAxiom trRelationUnionOf(String id, org.semanticweb.owlapi.model.OWLProperty<?,?> p, Collection<Clause> clauses)
protected org.semanticweb.owlapi.model.OWLAxiom trRelationIntersectionOf(String id, org.semanticweb.owlapi.model.OWLProperty<?,?> p, Collection<Clause> clauses)
protected org.semanticweb.owlapi.model.OWLAxiom trUnionOf(org.semanticweb.owlapi.model.OWLClass cls,
Collection<Clause> clauses)
protected org.semanticweb.owlapi.model.OWLAxiom trIntersectionOf(org.semanticweb.owlapi.model.OWLClass cls,
Collection<Clause> clauses)
protected void add(org.semanticweb.owlapi.model.OWLAxiom axiom)
protected void add(Set<org.semanticweb.owlapi.model.OWLAxiom> axioms)
protected void apply(org.semanticweb.owlapi.model.OWLOntologyChange change)
protected void apply(List<org.semanticweb.owlapi.model.OWLOntologyChange> changes)
protected org.semanticweb.owlapi.model.OWLAxiom trTermClause(org.semanticweb.owlapi.model.OWLClass cls,
String tag,
Clause clause)
cls - clstag - tagclause - clauseprotected org.semanticweb.owlapi.model.OWLAxiom trTypedefClause(org.semanticweb.owlapi.model.OWLObjectProperty p,
String tag,
Clause clause)
protected org.semanticweb.owlapi.model.OWLAxiom trGenericClause(org.semanticweb.owlapi.model.OWLNamedObject e,
String tag,
Clause clause)
protected org.semanticweb.owlapi.model.OWLAxiom trGenericClause(org.semanticweb.owlapi.model.OWLAnnotationSubject sub,
String tag,
Clause clause)
protected org.semanticweb.owlapi.model.OWLAnnotationProperty trSynonymType(String type)
protected Set<org.semanticweb.owlapi.model.OWLAnnotation> trAnnotations(Clause clause)
protected void trAnnotations(Clause clause, Set<org.semanticweb.owlapi.model.OWLAnnotation> anns)
protected Set<? extends org.semanticweb.owlapi.model.OWLAnnotation> trAnnotations(Collection<Clause> clauses)
public org.semanticweb.owlapi.model.OWLClassExpression trRel(String relId, String classId, Collection<QualifierValue> quals)
relId - relIdclassId - classIdquals - qualsprotected String getQVString(String q, Collection<QualifierValue> quals)
protected Boolean getQVBoolean(String q, Collection<QualifierValue> quals)
protected Integer getQVInt(String q, Collection<QualifierValue> quals)
protected org.semanticweb.owlapi.model.OWLClass trClass(String classId)
protected org.semanticweb.owlapi.model.OWLClassExpression trClass(Object v)
protected String mapPropId(String id)
id - idprotected org.semanticweb.owlapi.model.OWLIndividual trIndividual(String instId)
public static org.semanticweb.owlapi.model.IRI trTagToIRI(String tag)
tag - tagprotected org.semanticweb.owlapi.model.OWLAnnotationProperty trTagToAnnotationProp(String tag)
protected void addDeclaredAnnotationProperties(Collection<org.semanticweb.owlapi.model.OWLAnnotationProperty> declaredProperties)
protected org.semanticweb.owlapi.model.OWLAnnotationProperty trAnnotationProp(String relId)
protected org.semanticweb.owlapi.model.OWLObjectProperty trObjectProp(String relId)
protected org.semanticweb.owlapi.model.OWLObjectPropertyExpression trObjectProp(Object v)
protected org.semanticweb.owlapi.model.OWLAnnotationValue trLiteral(Object value)
public org.semanticweb.owlapi.model.IRI oboIdToIRI(String id)
id - idprotected String getDefaultIDSpace()
Copyright © 2010-2014 The University of Manchester. All Rights Reserved.