org.obolibrary.obo2owl
Class OboInOwlCardinalityTools

java.lang.Object
  extended by org.obolibrary.obo2owl.OboInOwlCardinalityTools

public class OboInOwlCardinalityTools
extends Object

Tools for checking and fixing cardinality constrains for OBO ontologies in OWL.


Nested Class Summary
static interface OboInOwlCardinalityTools.AnnotationCardinalityConfictHandler
          Functor for resolving conflicts for an annotation property and its cardinality constraint.
static class OboInOwlCardinalityTools.AnnotationCardinalityException
          Exception indication a non-resolvable conflict for an annotation property and its cardinality constraint.
static interface OboInOwlCardinalityTools.AnnotationCardinalityReporter
          Functor for reporting conflicts for an annotation property and its cardinality constraint.
 
Field Summary
static OboInOwlCardinalityTools.AnnotationCardinalityConfictHandler DEFAULT_HANDLER
           
 
Constructor Summary
OboInOwlCardinalityTools()
           
 
Method Summary
static void checkAnnotationCardinality(org.semanticweb.owlapi.model.OWLOntology ontology)
          Check the annotations for cardinality violations.
static void checkAnnotationCardinality(org.semanticweb.owlapi.model.OWLOntology ontology, OboInOwlCardinalityTools.AnnotationCardinalityReporter reporter)
          Check the annotations for cardinality violations.
static void checkAnnotationCardinality(org.semanticweb.owlapi.model.OWLOntology ontology, OboInOwlCardinalityTools.AnnotationCardinalityReporter reporter, OboInOwlCardinalityTools.AnnotationCardinalityConfictHandler handler)
          Check the annotations for cardinality violations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_HANDLER

public static final OboInOwlCardinalityTools.AnnotationCardinalityConfictHandler DEFAULT_HANDLER
Constructor Detail

OboInOwlCardinalityTools

public OboInOwlCardinalityTools()
Method Detail

checkAnnotationCardinality

public static void checkAnnotationCardinality(org.semanticweb.owlapi.model.OWLOntology ontology,
                                              OboInOwlCardinalityTools.AnnotationCardinalityReporter reporter,
                                              OboInOwlCardinalityTools.AnnotationCardinalityConfictHandler handler)
                                       throws OboInOwlCardinalityTools.AnnotationCardinalityException
Check the annotations for cardinality violations. Try to resolve conflicts with the given handler.

Parameters:
ontology - the target ontology
reporter -
handler - the conflict handler
Throws:
OboInOwlCardinalityTools.AnnotationCardinalityException - throws exception in case a conflict cannot be resolved by the handler
See Also:
for implementation in OBO

checkAnnotationCardinality

public static void checkAnnotationCardinality(org.semanticweb.owlapi.model.OWLOntology ontology)
                                       throws OboInOwlCardinalityTools.AnnotationCardinalityException
Check the annotations for cardinality violations. Try to resolve conflicts with the default handler.

Parameters:
ontology - the target ontology
Throws:
OboInOwlCardinalityTools.AnnotationCardinalityException - throws exception in case a conflict cannot be resolved by the handler
See Also:
DEFAULT_HANDLER

checkAnnotationCardinality

public static void checkAnnotationCardinality(org.semanticweb.owlapi.model.OWLOntology ontology,
                                              OboInOwlCardinalityTools.AnnotationCardinalityReporter reporter)
Check the annotations for cardinality violations. Only report violations via the given reporter

Parameters:
ontology - the target ontology
reporter - used to report violations


Copyright © 2010-2013. All Rights Reserved.