public class OWLAPIOwl2Obo extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OWLAPIOwl2Obo.UntranslatableAxiomException
The Class UntranslatableAxiomException.
|
| Modifier and Type | Field and Description |
|---|---|
static Map<String,String> |
ANNOTATIONPROPERTYMAP
The annotation property map.
|
| Constructor and Description |
|---|
OWLAPIOwl2Obo(org.semanticweb.owlapi.model.OWLOntologyManager translationManager)
Instantiates a new oWLAPI owl2 obo.
|
public OWLAPIOwl2Obo(org.semanticweb.owlapi.model.OWLOntologyManager translationManager)
translationManager - the translation managerpublic static String getOntologyId(org.semanticweb.owlapi.model.OWLOntology ontology)
ontology - the ontologypublic static String getOntologyId(org.semanticweb.owlapi.model.IRI iriObj)
iriObj - the iri obj@Nullable public static String getDataVersion(org.semanticweb.owlapi.model.OWLOntology ontology)
ontology - the ontologypublic static String getIdentifierFromObject(org.semanticweb.owlapi.model.OWLObject obj, org.semanticweb.owlapi.model.OWLOntology ont, String defaultValue)
OWLObject. This methods uses
also shorthand hints to resolve the identifier. Should the translation
process encounter a problem or not find an identifier the defaultValue is
returned.obj - the OWLObject to resolveont - the target ontologydefaultValue - the value to return in case of an error or no id@Nullable public static String getIdentifierFromObject(org.semanticweb.owlapi.model.OWLObject obj, org.semanticweb.owlapi.model.OWLOntology ont) throws OWLAPIOwl2Obo.UntranslatableAxiomException
OWLObject. This methods uses
also shorthand hints to resolve the identifier. Should the translation
process encounter an unexpected axiom anobj - the OWLObject to resolveont - the target ontologyOWLAPIOwl2Obo.UntranslatableAxiomException - the untranslatable axiom exception OWLAPIOwl2Obo.UntranslatableAxiomException is thrown.public static String getIdentifier(org.semanticweb.owlapi.model.IRI iriId)
iriId - the iri id@Nullable public static String owlObjectToTag(org.semanticweb.owlapi.model.OWLObject obj)
obj - the objpublic static List<Clause> normalizeRelationshipClauses(List<Clause> clauses)
QualifierValue which have the same
relationship type and target. Try to resolve conflicts for multiple
statements. E.g., min=2 and min=3 is resolved to min=2, or max=2 and
max=4 is resolved to max=4. It will not merge conflicting exact
cardinality statements. TODO How to merge "all_some", and "all_only"?clauses - the clausesClausepublic boolean getStrictConversion()
public void setStrictConversion(boolean b)
b - the new strict conversionpublic boolean isDiscardUntranslatable()
public void setDiscardUntranslatable(boolean discardUntranslatable)
discardUntranslatable - the discardUntranslatable to setpublic 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 OBODoc convert(org.semanticweb.owlapi.model.OWLOntology ont)
ont - the ontpublic Collection<org.semanticweb.owlapi.model.OWLAxiom> getUntranslatableAxioms()
@Nullable public String getIdentifier(org.semanticweb.owlapi.model.OWLObject obj)
obj - the objpublic boolean isMuteUntranslatableAxioms()
public void setMuteUntranslatableAxioms(boolean muteUntranslatableAxioms)
muteUntranslatableAxioms - true disables loggingCopyright © 2010–2017 The University of Manchester. All rights reserved.