owltools.sim
Class Similarity
java.lang.Object
owltools.sim.Similarity
- Direct Known Subclasses:
- AsymmetricJaccardSimilarity, AvgInformationContentBestMatchesSimilarity, AvgInformationContentLCSSimilarity, CombinedJaccardConjunctiveSetSimilarity, CombinedSimilarity, CombinedSimilarity2, ConjunctiveSetInformationContentRatioSimilarity, ConjunctiveSetSimilarity, DescriptionTreeSimilarity, DisjunctiveSetSimilarity, JaccardBloomSimilarity, JaccardSimilarity, MaximumInformationContentSimilarity, MultiSimilarity, OverlapSimilarity
public abstract class Similarity
- extends Object
Represents a pairwise similarity between two OWLObjects.
todo: consider making a and b immuntable
- Author:
- cjm
minScore
protected Double minScore
Similarity
public Similarity()
getScore
public Double getScore()
setScore
public void setScore(Double score)
setScore
public void setScore(int score)
isAboveMinScore
public boolean isAboveMinScore()
toString
public String toString()
- Overrides:
toString
in class Object
print
public void print()
print
public void print(PrintStream s)
print
public void print(PrintStream s,
org.semanticweb.owlapi.model.OWLObject x)
printDescription
public void printDescription(PrintStream s,
org.semanticweb.owlapi.model.OWLObject x)
printDescription
public void printDescription(PrintStream s,
org.semanticweb.owlapi.model.OWLObject x,
int depth)
calculate
public abstract void calculate(SimEngine simEngine,
org.semanticweb.owlapi.model.OWLObject a,
org.semanticweb.owlapi.model.OWLObject b)
throws SimEngine.SimilarityAlgorithmException
- Parameters:
simEngine
- a
- b
-
- Throws:
SimEngine.SimilarityAlgorithmException
createOWLOntologyFromResults
public org.semanticweb.owlapi.model.OWLOntology createOWLOntologyFromResults()
throws org.semanticweb.owlapi.model.OWLOntologyCreationException
- Throws:
org.semanticweb.owlapi.model.OWLOntologyCreationException
addResultsToOWLOntology
public void addResultsToOWLOntology(org.semanticweb.owlapi.model.OWLOntology ont)
- translates similarity results into OWL Axioms and saves axioms into an OWL Ontology
- Parameters:
ont
-
translateResultsToOWLAxioms
public Set<org.semanticweb.owlapi.model.OWLAxiom> translateResultsToOWLAxioms()
translateResultsToOWLAxioms
protected abstract void translateResultsToOWLAxioms(String id,
org.semanticweb.owlapi.model.OWLNamedIndividual result,
Set<org.semanticweb.owlapi.model.OWLAxiom> axioms)
splitIRI
protected String[] splitIRI(org.semanticweb.owlapi.model.IRI x)
annotationIRI
protected org.semanticweb.owlapi.model.IRI annotationIRI(String name)
report
public void report(Reporter r)
- Parameters:
r
-
Copyright © 2010-2012. All Rights Reserved.