org.semanticweb.owlapi
Class ConvertPropertyAssertionsToAnnotations

java.lang.Object
  extended by org.semanticweb.owlapi.AbstractCompositeOntologyChange
      extended by org.semanticweb.owlapi.ConvertPropertyAssertionsToAnnotations
All Implemented Interfaces:
OWLCompositeOntologyChange

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.owlapi.AbstractCompositeOntologyChange
getDataFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvertPropertyAssertionsToAnnotations

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

getChanges

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.

Returns:
A list of ontology changes.