public class OntologyDiff extends Object
Title:
Description:
Copyright: Copyright (c) 2009
Company: Clark & Parsia, LLC.
| Modifier and Type | Method and Description |
|---|---|
boolean |
areSame()
Checks whether the two compared ontologies were the same (i.e., there are no differences).
|
static OntologyDiff |
diffAxioms(Collection<org.semanticweb.owlapi.model.OWLAxiom> initialAxioms,
Collection<org.semanticweb.owlapi.model.OWLAxiom> finalAxioms)
Computes the difference between two sets of axioms.
|
static OntologyDiff |
diffAxiomsWithOntologies(Collection<org.semanticweb.owlapi.model.OWLAxiom> initialAxioms,
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(Collection<org.semanticweb.owlapi.model.OWLOntology> initialOntologies,
Collection<org.semanticweb.owlapi.model.OWLAxiom> finalAxioms)
Computes the difference between a collection of ontologies and a collection of axioms
|
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.
|
Collection<org.semanticweb.owlapi.model.OWLOntologyChange> |
getChanges(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.
|
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.
|
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.
|
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) ontologypublic static OntologyDiff diffOntologiesWithAxioms(Collection<org.semanticweb.owlapi.model.OWLOntology> initialOntologies, 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(Collection<org.semanticweb.owlapi.model.OWLAxiom> initialAxioms, Collection<org.semanticweb.owlapi.model.OWLOntology> finalOntologies)
initialAxioms - the initial set of axioms (the equivalent of the first ontology)finalOntologies - the final set of ontologiespublic static OntologyDiff diffAxioms(Collection<org.semanticweb.owlapi.model.OWLAxiom> initialAxioms, Collection<org.semanticweb.owlapi.model.OWLAxiom> finalAxioms)
initialAxioms - the first (initial) set of axiomsfinalAxioms - the second (final) set of axiomspublic boolean areSame()
public int getDiffCount()
public Collection<org.semanticweb.owlapi.model.OWLAxiom> getAdditions()
public 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 Collection<org.semanticweb.owlapi.model.OWLOntologyChange> getChanges(Collection<org.semanticweb.owlapi.model.OWLOntology> ontologies)
ontologies - the set of initial ontologies (just for the purposes of creating OWLOntologyChange objects)public Collection<org.semanticweb.owlapi.model.OWLAxiom> getDeletions()
Copyright © 2019. All rights reserved.