owltools.mooncat
Class OntologyMetaDataTools

java.lang.Object
  extended by owltools.mooncat.OntologyMetaDataTools

public class OntologyMetaDataTools
extends Object

Tools for checking and managing ontology data.


Nested Class Summary
static interface OntologyMetaDataTools.AnnotationCardinalityConfictHandler
          Functor for resolving conflicts for an annotation property and its cardinality constraint.
static class OntologyMetaDataTools.AnnotationCardinalityException
          Exception indication a non-resolvable conflict for an annotation property and its cardinality constraint.
 
Field Summary
static OntologyMetaDataTools.AnnotationCardinalityConfictHandler DEFAULT_HANDLER
           
 
Constructor Summary
OntologyMetaDataTools()
           
 
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, OntologyMetaDataTools.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 OntologyMetaDataTools.AnnotationCardinalityConfictHandler DEFAULT_HANDLER
Constructor Detail

OntologyMetaDataTools

public OntologyMetaDataTools()
Method Detail

checkAnnotationCardinality

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

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

checkAnnotationCardinality

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

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


Copyright © 2010-2011. All Rights Reserved.