org.topbraid.change.convert
Class AbstractConvertChange

java.lang.Object
  extended by org.topbraid.core.change.AbstractChange
      extended by org.topbraid.change.convert.AbstractConvertChange
All Implemented Interfaces:
IChange
Direct Known Subclasses:
ConvertToOWLChange, ConvertToRDFSChange

public abstract class AbstractConvertChange
extends AbstractChange


Field Summary
protected  com.hp.hpl.jena.ontology.OntModel ontModel
           
 
Constructor Summary
AbstractConvertChange(com.hp.hpl.jena.ontology.OntModel ontModel, java.util.Set ignore, java.lang.String targetSpecies)
           
 
Method Summary
protected  void addReport(com.hp.hpl.jena.rdf.model.RDFNode node, java.lang.String message)
           
protected abstract  void convert(com.hp.hpl.jena.ontology.OntClass ontClass)
           
protected abstract  void convert(com.hp.hpl.jena.ontology.OntProperty ontProperty)
           
protected  void convertRest(com.hp.hpl.jena.ontology.OntModel ontModel)
           
protected  void deleteStatements(com.hp.hpl.jena.rdf.model.Model model, com.hp.hpl.jena.rdf.model.Property predicate)
           
 void execute(ISession session, org.eclipse.core.runtime.IProgressMonitor monitor)
          Executes the change.
 java.lang.String getReport()
           
protected  void replaceAll(com.hp.hpl.jena.rdf.model.Resource subject, com.hp.hpl.jena.rdf.model.Property predicate, com.hp.hpl.jena.rdf.model.RDFNode newObject)
           
 
Methods inherited from class org.topbraid.core.change.AbstractChange
check, getImageMetadata, getLabel, isNoop, setImage, setImage, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ontModel

protected com.hp.hpl.jena.ontology.OntModel ontModel
Constructor Detail

AbstractConvertChange

public AbstractConvertChange(com.hp.hpl.jena.ontology.OntModel ontModel,
                             java.util.Set ignore,
                             java.lang.String targetSpecies)
Method Detail

addReport

protected void addReport(com.hp.hpl.jena.rdf.model.RDFNode node,
                         java.lang.String message)

convert

protected abstract void convert(com.hp.hpl.jena.ontology.OntClass ontClass)

convert

protected abstract void convert(com.hp.hpl.jena.ontology.OntProperty ontProperty)

convertRest

protected void convertRest(com.hp.hpl.jena.ontology.OntModel ontModel)

deleteStatements

protected void deleteStatements(com.hp.hpl.jena.rdf.model.Model model,
                                com.hp.hpl.jena.rdf.model.Property predicate)

execute

public void execute(ISession session,
                    org.eclipse.core.runtime.IProgressMonitor monitor)
Description copied from interface: IChange
Executes the change. This should perform the changes to a Jena model. In case of an unexpected state, the method may throw an IllegalStateException.

Parameters:
session - the session to execute the change on
monitor - a progress monitor for longish operations (may be null)

getReport

public java.lang.String getReport()

replaceAll

protected void replaceAll(com.hp.hpl.jena.rdf.model.Resource subject,
                          com.hp.hpl.jena.rdf.model.Property predicate,
                          com.hp.hpl.jena.rdf.model.RDFNode newObject)