|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.clarkparsia.modularity.OntologyDiff
public class OntologyDiff
Computes differences between two ontologies, sets of ontologies or collections of axioms.
Title:
Description:
Copyright: Copyright (c) 2009
Company: Clark & Parsia, LLC.
Method Summary | |
---|---|
boolean |
areSame()
Checks whether the two compared ontologies were the same (i.e., there are no differences). |
static OntologyDiff |
diffAxioms(java.util.Collection<org.semanticweb.owlapi.model.OWLAxiom> initialAxioms,
java.util.Collection<org.semanticweb.owlapi.model.OWLAxiom> finalAxioms)
Computes the difference between two sets of axioms. |
static OntologyDiff |
diffAxiomsWithOntologies(java.util.Collection<org.semanticweb.owlapi.model.OWLAxiom> initialAxioms,
java.util.Collection<org.semanticweb.owlapi.model.OWLOntology> finalOntologies)
Computes the difference between a set of axioms and an ontology. |
static OntologyDiff |
diffOntologies(org.semanticweb.owlapi.model.OWLOntology initialOnt,
org.semanticweb.owlapi.model.OWLOntology finalOnt)
Computes the difference between two ontologies. |
static OntologyDiff |
diffOntologiesWithAxioms(java.util.Collection<org.semanticweb.owlapi.model.OWLOntology> initialOntologies,
java.util.Collection<org.semanticweb.owlapi.model.OWLAxiom> finalAxioms)
Computes the difference between a collection of ontologies and a collection of axioms |
java.util.Collection<org.semanticweb.owlapi.model.OWLAxiom> |
getAdditions()
Gets the list of axioms that were added to the second ontology with respect to the first ontology. |
java.util.Collection<org.semanticweb.owlapi.model.OWLOntologyChange> |
getChanges(java.util.Collection<org.semanticweb.owlapi.model.OWLOntology> ontologies)
Produces a list of ontology change objects that if applied to the set of initial ontologies, would convert that set of ontologies into the final ontology. |
java.util.Collection<org.semanticweb.owlapi.model.OWLOntologyChange> |
getChanges(org.semanticweb.owlapi.model.OWLOntology initialOnt)
Produces a list of ontology change objects that if applied to the initial ontology, would convert that initial ontology into the final ontology. |
java.util.Collection<org.semanticweb.owlapi.model.OWLAxiom> |
getDeletions()
Gets the list of axioms that were deleted in the second ontology with respect to the first ontology. |
int |
getDiffCount()
Gets the number of differences (in terms of numbers of axioms) between the compared ontologies. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static OntologyDiff diffOntologies(org.semanticweb.owlapi.model.OWLOntology initialOnt, org.semanticweb.owlapi.model.OWLOntology finalOnt)
initialOnt
- the initial (first) ontologyfinalOnt
- the final (second or later) ontology
public static OntologyDiff diffOntologiesWithAxioms(java.util.Collection<org.semanticweb.owlapi.model.OWLOntology> initialOntologies, java.util.Collection<org.semanticweb.owlapi.model.OWLAxiom> finalAxioms)
initialOntologies
- the initial (first) ontologiesfinalAxioms
- the final set of axioms (the equivalent of second ontology)
public static OntologyDiff diffAxiomsWithOntologies(java.util.Collection<org.semanticweb.owlapi.model.OWLAxiom> initialAxioms, java.util.Collection<org.semanticweb.owlapi.model.OWLOntology> finalOntologies)
initialAxioms
- the initial set of axioms (the equivalent of the first ontology)finalOntologies
- the final set of ontologies
public static OntologyDiff diffAxioms(java.util.Collection<org.semanticweb.owlapi.model.OWLAxiom> initialAxioms, java.util.Collection<org.semanticweb.owlapi.model.OWLAxiom> finalAxioms)
initialAxioms
- the first (initial) set of axiomsfinalAxioms
- the second (final) set of axioms
public boolean areSame()
public int getDiffCount()
public java.util.Collection<org.semanticweb.owlapi.model.OWLAxiom> getAdditions()
public java.util.Collection<org.semanticweb.owlapi.model.OWLOntologyChange> getChanges(org.semanticweb.owlapi.model.OWLOntology initialOnt)
initialOnt
- the initial ontology (just for the purposes of creating OWLOntologyChange objects).
public java.util.Collection<org.semanticweb.owlapi.model.OWLOntologyChange> getChanges(java.util.Collection<org.semanticweb.owlapi.model.OWLOntology> ontologies)
ontologies
- the set of initial ontologies (just for the purposes of creating OWLOntologyChange objects)
public java.util.Collection<org.semanticweb.owlapi.model.OWLAxiom> getDeletions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |