public class DiffOperation extends Object
Constructor and Description |
---|
DiffOperation() |
Modifier and Type | Method and Description |
---|---|
static String |
addLabels(IOHelper ioHelper,
Map<org.semanticweb.owlapi.model.IRI,String> labels,
String axiom)
Deprecated.
This functionality is now provided by the owl-diff library and no longer used to
format results in DiffOperation.
|
static String |
addLabels(Map<org.semanticweb.owlapi.model.IRI,String> labels,
String axiom)
Deprecated.
This functionality is now provided by the owl-diff library and no longer used to
format results in DiffOperation.
|
static boolean |
compare(org.semanticweb.owlapi.model.OWLOntology ontology1,
org.semanticweb.owlapi.model.OWLOntology ontology2,
IOHelper ioHelper,
Writer writer,
Map<String,String> options)
Given two ontologies, a Writer, and a set of diff options, get their differences and write then
to the writer.
|
static boolean |
compare(org.semanticweb.owlapi.model.OWLOntology ontology1,
org.semanticweb.owlapi.model.OWLOntology ontology2,
Writer writer)
Given two ontologies and a Writer, get their differences and write then to the writer.
|
static boolean |
equals(org.semanticweb.owlapi.model.OWLOntology ontology1,
org.semanticweb.owlapi.model.OWLOntology ontology2)
Given two ontologies, compare their sets of axioms, annotations, imports, and ontology IDs,
returning true if they are identical and false otherwise.
|
static Set<String> |
getAxiomStrings(org.semanticweb.owlapi.model.OWLOntology ontology)
Deprecated.
This functionality is no longer used within DiffOperation.
|
static Map<String,String> |
getDefaultOptions()
Return default diff options.
|
public static Map<String,String> getDefaultOptions()
public static boolean equals(org.semanticweb.owlapi.model.OWLOntology ontology1, org.semanticweb.owlapi.model.OWLOntology ontology2)
ontology1
- the first ontologyontology2
- the second ontologypublic static boolean compare(org.semanticweb.owlapi.model.OWLOntology ontology1, org.semanticweb.owlapi.model.OWLOntology ontology2, Writer writer) throws IOException
ontology1
- the first ontologyontology2
- the second ontologywriter
- the Writer for the report, or nullIOException
- on writer failurepublic static boolean compare(org.semanticweb.owlapi.model.OWLOntology ontology1, org.semanticweb.owlapi.model.OWLOntology ontology2, IOHelper ioHelper, Writer writer, Map<String,String> options) throws IOException
ontology1
- the first ontologyontology2
- the second ontologyioHelper
- IOHelper to use for prefixeswriter
- the Writer for the report, or nulloptions
- diff optionsIOException
- on writer failure@Deprecated public static String addLabels(Map<org.semanticweb.owlapi.model.IRI,String> labels, String axiom)
labels
- a map from IRIs to label stringsaxiom
- a string representation of an OWLAxiom@Deprecated public static String addLabels(IOHelper ioHelper, Map<org.semanticweb.owlapi.model.IRI,String> labels, String axiom)
ioHelper
- IOHelper to use for prefixeslabels
- a map from IRIs to label stringsaxiom
- a string representation of an OWLAxiom@Deprecated public static Set<String> getAxiomStrings(org.semanticweb.owlapi.model.OWLOntology ontology)
ontology
- the ontology to useCopyright © 2015–2020. All rights reserved.