owltools.sim
Class Similarity

java.lang.Object
  extended by 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

Field Summary
protected  Double minScore
           
 
Constructor Summary
Similarity()
           
 
Method Summary
 void addResultsToOWLOntology(org.semanticweb.owlapi.model.OWLOntology ont)
          translates similarity results into OWL Axioms and saves axioms into an OWL Ontology
protected  org.semanticweb.owlapi.model.IRI annotationIRI(String name)
           
abstract  void calculate(SimEngine simEngine, org.semanticweb.owlapi.model.OWLObject a, org.semanticweb.owlapi.model.OWLObject b)
           
 org.semanticweb.owlapi.model.OWLOntology createOWLOntologyFromResults()
           
 Double getScore()
           
 boolean isAboveMinScore()
           
 void print()
           
 void print(PrintStream s)
           
 void print(PrintStream s, org.semanticweb.owlapi.model.OWLObject x)
           
 void printDescription(PrintStream s, org.semanticweb.owlapi.model.OWLObject x)
           
 void printDescription(PrintStream s, org.semanticweb.owlapi.model.OWLObject x, int depth)
           
 void report(Reporter r)
           
 void setScore(Double score)
           
 void setScore(int score)
           
protected  String[] splitIRI(org.semanticweb.owlapi.model.IRI x)
           
 String toString()
           
 Set<org.semanticweb.owlapi.model.OWLAxiom> translateResultsToOWLAxioms()
           
protected abstract  void translateResultsToOWLAxioms(String id, org.semanticweb.owlapi.model.OWLNamedIndividual result, Set<org.semanticweb.owlapi.model.OWLAxiom> axioms)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

minScore

protected Double minScore
Constructor Detail

Similarity

public Similarity()
Method Detail

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.