Class ConvertPropertyAssertionsToAnnotations

  extended by org.semanticweb.owl.AbstractCompositeOntologyChange
      extended by org.semanticweb.owl.ConvertPropertyAssertionsToAnnotations
All Implemented Interfaces:

public class ConvertPropertyAssertionsToAnnotations
extends AbstractCompositeOntologyChange

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 23-Jul-2007

Given a set of ontologies, this composite change will convert all property assertion axioms whose subject is a 'punned' individual (i.e. an individual that shares a name with a class), removes these axioms and replaces them with annotations on the class that shares the same name as the individual. For example for a class A and an individual A, the data property assertion hasX(A, "Val") would be converted to an entity annotation on the class A with an annotation URI of "hasX" and a value of "Val". This composite change supports refactoring an ontology where punning was used to simulate annotations on a class rather than using actual annotations on a class.

Constructor Summary
ConvertPropertyAssertionsToAnnotations(OWLDataFactory dataFactory, java.util.Set<OWLOntology> ontologies)
Method Summary
 java.util.List<OWLOntologyChange> getChanges()
          Gets the changes which compose this composite change.
Methods inherited from class org.semanticweb.owl.AbstractCompositeOntologyChange
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public ConvertPropertyAssertionsToAnnotations(OWLDataFactory dataFactory,
                                              java.util.Set<OWLOntology> ontologies)
Method Detail


public java.util.List<OWLOntologyChange> getChanges()
Description copied from interface: OWLCompositeOntologyChange
Gets the changes which compose this composite change. Once this method has been invoked, it will always return the same list of changes.

A list of ontology changes.