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(@Nonnull org.semanticweb.owlapi.model.OWLOntologyManager translationManager)
translationManager - the translation managerpublic void setStrictConversion(boolean b)
b - the new strict conversionpublic boolean getStrictConversion()
public boolean isDiscardUntranslatable()
public void setDiscardUntranslatable(boolean discardUntranslatable)
discardUntranslatable - the discardUntranslatable to setpublic org.semanticweb.owlapi.model.OWLOntologyManager getManager()
public void setManager(@Nonnull org.semanticweb.owlapi.model.OWLOntologyManager manager)
manager - the new managerpublic void setObodoc(@Nonnull OBODoc obodoc)
obodoc - the new obodoc@Nonnull public OBODoc convert(@Nonnull org.semanticweb.owlapi.model.OWLOntology ont)
ont - the ontpublic Collection<org.semanticweb.owlapi.model.OWLAxiom> getUntranslatableAxioms()
public static String getOntologyId(@Nonnull org.semanticweb.owlapi.model.OWLOntology ontology)
ontology - the ontologypublic static String getOntologyId(@Nonnull org.semanticweb.owlapi.model.IRI iriObj)
iriObj - the iri obj@Nullable public static String getDataVersion(@Nonnull org.semanticweb.owlapi.model.OWLOntology ontology)
ontology - the ontology@Nullable public String getIdentifier(org.semanticweb.owlapi.model.OWLObject obj)
obj - the objpublic boolean isMuteUntranslatableAxioms()
public void setMuteUntranslatableAxioms(boolean muteUntranslatableAxioms)
muteUntranslatableAxioms - true disables logging@Nonnull public static String getIdentifierFromObject(@Nonnull org.semanticweb.owlapi.model.OWLObject obj, @Nonnull org.semanticweb.owlapi.model.OWLOntology ont, @Nonnull 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, @Nonnull 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.@Nullable public static String getIdentifier(@Nullable org.semanticweb.owlapi.model.IRI iriId)
iriId - the iri id@Nullable public static String owlObjectToTag(org.semanticweb.owlapi.model.OWLObject obj)
obj - the obj@Nonnull public static List<Clause> normalizeRelationshipClauses(@Nonnull 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 clausesClauseCopyright © 2010–2018 The University of Manchester. All rights reserved.