Ontology Diff Tool

Description

Tool to compare two ontologies and to create a diff of both ontologies. The tool creates various types of diff files:

  • ADDED_AXIOMS ... all axioms which are present in ontology B, but not in ontology A
  • COMMON_AXIOMS ... all axioms which are present in both ontologies
  • COMPLETE_DIFF ... all axioms which are present in (ontology A but not in B) & (ontology B but not in A)
  • DELETED_AXIOMS ... all axioms which are present in ontology A, but not in ontology B

Example & Usage

The OntologyDiff Tool offers a command line interface support following parameters:

    
usage: Ontology Comparator
 -f,--format <format>     ontology format. 'OWLXMLOntologyFormat'
                          (default),'ManchesterOWLSyntax'
 -i1,--ontologyA <file>   use given file as ontology A
 -i2,--ontologyB <file>   use given file as ontology B
 -out,--output <file>     use given output file
 -v,--verbose             turn on verbose mode
        	

An exmaple usage can be ...

 
java -jar ontologydiff-1.0.1.jar -i1 /path/to/file/in1.owl -i2 /path/to/file/in2.owl -out /path/to/file/out.owl -v
		

The output of the program will look similar to this ...

 
INFO  OntologyComparator - pictureService_process.owl ---[ADDED_AXIOMS]---> pictureService_process_updateImageMagick.owl
INFO  OntologyComparator - Ontology successfully saved at ADDED_AXIOMS_picuterService_dependencies_diff.owl
INFO  OntologyComparator - pictureService_process.owl ---[COMMON_AXIOMS]---> pictureService_process_updateImageMagick.owl
INFO  OntologyComparator - Ontology successfully saved at COMMON_AXIOMS_picuterService_dependencies_diff.owl
INFO  OntologyComparator - pictureService_process.owl ---[COMPLETE_DIFF]---> pictureService_process_updateImageMagick.owl
INFO  OntologyComparator - Ontology successfully saved at COMPLETE_DIFF_picuterService_dependencies_diff.owl
INFO  OntologyComparator - pictureService_process.owl ---[DELETED_AXIOMS]---> pictureService_process_updateImageMagick.owl
INFO  OntologyComparator - Ontology successfully saved at DELETED_AXIOMS_picuterService_dependencies_diff.owl
INFO  OntologyComparator - pictureService_process.owl ---[VARIANT_B]---> pictureService_process_updateImageMagick.owl
INFO  OntologyComparator - Ontology successfully saved at VARIANT_B_picuterService_dependencies_diff.owl
		

Download & Licensing

This tool is licensend under the Apache License Version 2.0. Show License Hide License

Copyright (c) 2013/2014 Verein zur Foerderung der IT-Sicherheit in Oesterreich (SBA). The work has been developed in the TIMBUS Project and the above-mentioned are Members of the TIMBUS Consortium. TIMBUS is supported by the European Union under the 7th Framework Programme for research and technological development and demonstration activities (FP7/2007-2013) under grant agreement no. 269940.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTIBITLY, or FITNESS FOR A PARTICULAR PURPOSE. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law or agreed to in writing, shall any Contributor be liable for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work.
See the License for the specific language governing permissions and limitation under the License.

The tool is available for download here.

Requirements

Since the tool is already packaged, you only has to ensure that Java 1.6 or higher is installed on your system.