public class OWLAPIOwl2Obo extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OWLAPIOwl2Obo.UntranslatableAxiomException
untranslatable axiom exception
|
| Modifier and Type | Field and Description |
|---|---|
static Map<String,String> |
annotationPropertyMap
annotation map
|
| Constructor and Description |
|---|
OWLAPIOwl2Obo(OWLOntologyManager translationManager) |
public OWLAPIOwl2Obo(OWLOntologyManager translationManager)
translationManager - translationManagerpublic void setStrictConversion(boolean b)
b - strict conversionpublic boolean getStrictConversion()
public boolean isDiscardUntranslatable()
public void setDiscardUntranslatable(boolean discardUntranslatable)
discardUntranslatable - the discardUntranslatable to setpublic OWLOntologyManager getManager()
public void setManager(OWLOntologyManager manager)
manager - managerpublic OBODoc getObodoc()
public void setObodoc(OBODoc obodoc)
obodoc - obodocpublic OBODoc convert(OWLOntology ont)
ont - ontpublic Collection<OWLAxiom> getUntranslatableAxioms()
public static String getOntologyId(OWLOntology ontology)
ontology - ontologypublic static String getOntologyId(IRI iriObj)
iriObj - iriObjpublic static String getDataVersion(OWLOntology ontology)
ontology - ontologypublic static String getIdentifierFromObject(OWLObject obj, 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 idpublic static String getIdentifierFromObject(OWLObject obj, OWLOntology ont) throws OWLAPIOwl2Obo.UntranslatableAxiomException
OWLObject. This methods uses
also shorthand hints to resolve the identifier. Should the translation
process encounter an unexpected axiom an
OWLAPIOwl2Obo.UntranslatableAxiomException is thrown.obj - the OWLObject to resolveont - the target ontologyOWLAPIOwl2Obo.UntranslatableAxiomException - UntranslatableAxiomExceptionpublic static String getIdentifier(IRI iriId)
iriId - iriIdpublic static String getIdentifier(IRI iriId, OWLOntology baseOntology)
iriId - iriIdbaseOntology - baseOntologypublic static String owlObjectToTag(OWLObject obj)
obj - 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 - clausesClauseCopyright © 2010-2017 The University of Manchester. All Rights Reserved.