|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.semanticweb.owl.util.OntologyProcessor
|
+--org.semanticweb.owl.util.OntologyReplicator
A utility class for copying one ontology into another.
| Nested Class Summary |
| Nested classes inherited from class org.semanticweb.owl.util.OntologyProcessor |
OntologyProcessor.NullProgressListener, OntologyProcessor.ObjectProcessor, OntologyProcessor.ProgressListener |
| Field Summary | |
protected List |
m_changeEvents
The list of events. |
protected Map |
m_logicalToPhysicalURIs
The map of logical to physical URI mappings. |
protected OWLOntology |
m_sourceOWLOntology
The source OWL Ontology. |
protected Map |
m_sourceToTarget
The map of source to target models. |
protected OWLConnection |
m_targetOWLConnection
The target KAON connection. |
protected OWLOntology |
m_targetOWLOntology
The target OWL Ontology. |
static int |
PHASE_COPY_CONCEPTS
Phase of copying concepts. |
static int |
PHASE_COPY_INSTANCES
Phase of copying instances. |
static int |
PHASE_COPY_PROPERTIES
Phase of copying properties. |
static int |
PHASE_LOAD_CONCEPTS
Phase of loading concepts. |
static int |
PHASE_LOAD_INSTANCES
Phase of loading instances. |
static int |
PHASE_LOAD_PROPERTIES
Phase of loading properties. |
| Fields inherited from class org.semanticweb.owl.util.OntologyProcessor |
CHUNK_SIZE, m_progressListener |
| Constructor Summary | |
OntologyReplicator(OWLOntology sourceOWLOntology,
Map logicalToPhysicalURIs,
OWLConnection targetKAONConnection)
Creates an instance of this class. |
|
| Method Summary | |
protected void |
applyChange(OntologyChange changeEvent)
Adds an event to be processed. |
protected void |
copyConcepts(Set concepts)
Copies the information about the concepts. |
protected void |
copyInstances(Set instances)
Copies the information about the instances. |
protected void |
copyProperties(Set properties)
Copies the information about the properties. |
protected OWLOntology |
createTargetOWLOntology(OWLOntology sourceOWLOntology)
Creates a target model for given source OWL Ontology. |
OWLOntology |
doReplication()
Starts the replication of the source model to the target model |
protected void |
flushChanges()
Flushes the changes to the OWL Ontology. |
protected Set |
loadConcepts()
Loads the concepts. |
protected Set |
loadInstances()
Loads the instances. |
protected Set |
loadProperties()
Loads the properties. |
protected void |
processConcepts()
Processes all concepts. |
protected void |
processInstances()
Processes all instances. |
protected void |
processProperties()
Processes all properties. |
protected void |
setUpModelMappings()
Establishes the map from source to target Ontologies. |
| Methods inherited from class org.semanticweb.owl.util.OntologyProcessor |
checkInterrupted, processElements, setProgressListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int PHASE_LOAD_CONCEPTS
public static final int PHASE_COPY_CONCEPTS
public static final int PHASE_LOAD_PROPERTIES
public static final int PHASE_COPY_PROPERTIES
public static final int PHASE_LOAD_INSTANCES
public static final int PHASE_COPY_INSTANCES
protected Map m_logicalToPhysicalURIs
protected OWLOntology m_sourceOWLOntology
protected OWLOntology m_targetOWLOntology
protected OWLConnection m_targetOWLConnection
protected List m_changeEvents
protected Map m_sourceToTarget
| Constructor Detail |
public OntologyReplicator(OWLOntology sourceOWLOntology,
Map logicalToPhysicalURIs,
OWLConnection targetKAONConnection)
sourceOWLOntology - the source OWL OntologylogicalToPhysicalURIs - the map of logical to physical URIstargetKAONConnection - the target KAON connection| Method Detail |
public OWLOntology doReplication()
throws OWLException,
InterruptedException
OWLException - thrown if there is an error
InterruptedException - thrown if the replicator has been interrupted
protected void setUpModelMappings()
throws OWLException,
InterruptedException
OWLException - thrown it there is an error
InterruptedException - thrown if the replicator has been interrupted
protected OWLOntology createTargetOWLOntology(OWLOntology sourceOWLOntology)
throws OWLException
sourceOWLOntology - the source OWL Ontology
OWLException - thrown it there is an error
protected void processConcepts()
throws OWLException,
InterruptedException
OWLException - thrown if there is an error
InterruptedException - thrown if the replicator has been interrupted
protected void processProperties()
throws OWLException,
InterruptedException
OWLException - thrown if there is an error
InterruptedException - thrown if the replicator has been interrupted
protected void processInstances()
throws OWLException,
InterruptedException
OWLException - thrown if there is an error
InterruptedException - thrown if the replicator has been interrupted
protected Set loadConcepts()
throws OWLException,
InterruptedException
OWLException - thrown if there is an error
InterruptedException - thrown if the replicator has been interrupted
protected Set loadProperties()
throws OWLException,
InterruptedException
OWLException - thrown if there is an error
InterruptedException - thrown if the replicator has been interrupted
protected Set loadInstances()
throws OWLException,
InterruptedException
OWLException - thrown if there is an error
InterruptedException - thrown if the replicator has been interrupted
protected void copyConcepts(Set concepts)
throws OWLException,
InterruptedException
concepts - the set of concepts
OWLException - thrown if there is an error
InterruptedException - thrown if the replicator has been interrupted
protected void copyProperties(Set properties)
throws OWLException,
InterruptedException
properties - the set of properties
OWLException - thrown if there is an error
InterruptedException - thrown if the replicator has been interrupted
protected void copyInstances(Set instances)
throws OWLException,
InterruptedException
instances - the set of instances
OWLException - thrown if there is an error
InterruptedException - thrown if the replicator has been interrupted
protected void applyChange(OntologyChange changeEvent)
throws OWLException
changeEvent - the event
OWLException - thrown if there is an error
protected void flushChanges()
throws OWLException
OWLException - thrown if there is an error
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||