public class AxiomAnnotationTools extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AxiomAnnotationTools.AxiomAnnotationsChanger
Visitor which returns a new axiom of the same type with the new annotations.
|
Modifier and Type | Field and Description |
---|---|
static org.semanticweb.owlapi.model.IRI |
ANNOTATION_IRI_IS_INFERRED
IRI for the default annotation marking an axiom as inferred.
|
Constructor and Description |
---|
AxiomAnnotationTools() |
Modifier and Type | Method and Description |
---|---|
static org.semanticweb.owlapi.model.OWLAxiom |
changeAxiomAnnotations(org.semanticweb.owlapi.model.OWLAxiom axiom,
Set<org.semanticweb.owlapi.model.OWLAnnotation> annotations,
org.semanticweb.owlapi.model.OWLDataFactory factory)
Update the given axiom to the new set of axiom annotation.
|
static org.semanticweb.owlapi.model.OWLAxiom |
changeAxiomAnnotations(org.semanticweb.owlapi.model.OWLAxiom axiom,
Set<org.semanticweb.owlapi.model.OWLAnnotation> annotations,
org.semanticweb.owlapi.model.OWLOntology ontology)
Update the given axiom to a new set of axiom annotation.
Side effect: This removes the old axiom and adds the new axiom to the given ontology. |
static List<String> |
getAxiomAnnotationValues(org.semanticweb.owlapi.model.IRI iri,
org.semanticweb.owlapi.model.OWLAxiom axiom)
Retrieve the literal values for the axiom annotations with the given
annotation property IRI.
|
static boolean |
isMarkedAsInferredAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom)
Check if there as an annotation with is_inferred="true" for the given axiom.
|
static org.semanticweb.owlapi.model.OWLAxiom |
markAsInferredAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom,
org.semanticweb.owlapi.model.OWLDataFactory factory)
Mark the given axiom as inferred.
|
static org.semanticweb.owlapi.model.OWLAxiom |
markAsInferredAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom,
org.semanticweb.owlapi.model.OWLOntology ontology)
Mark the given axiom as inferred.
Side effect: Removes the axiom in the given ontology and creates a new axiom with the changed annotations. |
static Set<org.semanticweb.owlapi.model.OWLAxiom> |
markAsInferredAxiom(Set<org.semanticweb.owlapi.model.OWLAxiom> axioms,
org.semanticweb.owlapi.model.OWLDataFactory factory)
Mark the given axioms as inferred.
|
static Set<org.semanticweb.owlapi.model.OWLAxiom> |
markAsInferredAxiom(Set<org.semanticweb.owlapi.model.OWLAxiom> axioms,
org.semanticweb.owlapi.model.OWLOntology ontology)
Mark the given axioms as inferred.
Side effect: Removes the axiom in the given ontology and creates a new axiom with the changed annotations. |
static org.semanticweb.owlapi.model.OWLAxiom |
reduceAxiomAnnotationsToOboBasic(org.semanticweb.owlapi.model.OWLAxiom axiom,
org.semanticweb.owlapi.model.OWLOntology ontology)
Remove axiom annotations, which do not comply with the OBO-Basic level,
i.e.
|
static void |
reduceAxiomAnnotationsToOboBasic(org.semanticweb.owlapi.model.OWLOntology ontology)
Remove axiom annotations, which do not comply with the OBO-Basic level,
i.e.
|
static org.semanticweb.owlapi.model.OWLAxiom |
removeMarkAsInferredAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom,
org.semanticweb.owlapi.model.OWLOntology ontology)
Remove the inferred mark from the axiom.
Side effect: Removes the axiom in the given ontology and creates a new axiom with the changed annotations. |
public static final org.semanticweb.owlapi.model.IRI ANNOTATION_IRI_IS_INFERRED
public static boolean isMarkedAsInferredAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom)
axiom
- public static org.semanticweb.owlapi.model.OWLAxiom markAsInferredAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom, org.semanticweb.owlapi.model.OWLOntology ontology)
axiom
- ontology
- public static org.semanticweb.owlapi.model.OWLAxiom markAsInferredAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom, org.semanticweb.owlapi.model.OWLDataFactory factory)
axiom
- factory
- public static Set<org.semanticweb.owlapi.model.OWLAxiom> markAsInferredAxiom(Set<org.semanticweb.owlapi.model.OWLAxiom> axioms, org.semanticweb.owlapi.model.OWLOntology ontology)
axioms
- ontology
- public static Set<org.semanticweb.owlapi.model.OWLAxiom> markAsInferredAxiom(Set<org.semanticweb.owlapi.model.OWLAxiom> axioms, org.semanticweb.owlapi.model.OWLDataFactory factory)
axioms
- factory
- public static org.semanticweb.owlapi.model.OWLAxiom removeMarkAsInferredAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom, org.semanticweb.owlapi.model.OWLOntology ontology)
axiom
- ontology
- public static List<String> getAxiomAnnotationValues(org.semanticweb.owlapi.model.IRI iri, org.semanticweb.owlapi.model.OWLAxiom axiom)
iri
- axiom
- public static org.semanticweb.owlapi.model.OWLAxiom changeAxiomAnnotations(org.semanticweb.owlapi.model.OWLAxiom axiom, Set<org.semanticweb.owlapi.model.OWLAnnotation> annotations, org.semanticweb.owlapi.model.OWLOntology ontology)
axiom
- annotations
- ontology
- public static org.semanticweb.owlapi.model.OWLAxiom changeAxiomAnnotations(org.semanticweb.owlapi.model.OWLAxiom axiom, Set<org.semanticweb.owlapi.model.OWLAnnotation> annotations, org.semanticweb.owlapi.model.OWLDataFactory factory)
axiom
- annotations
- factory
- public static void reduceAxiomAnnotationsToOboBasic(org.semanticweb.owlapi.model.OWLOntology ontology)
ontology
- public static org.semanticweb.owlapi.model.OWLAxiom reduceAxiomAnnotationsToOboBasic(org.semanticweb.owlapi.model.OWLAxiom axiom, org.semanticweb.owlapi.model.OWLOntology ontology)
axiom
- ontology
- Copyright © 2010–2015. All rights reserved.