public class DescriptionTreeSimilarity extends Similarity
ALGORITHM:
build(a,b) :
N = {}
foreach direct parent edge Ea:
find closest match for Ea.tgt in all reflexive ancestors of b
Eb = edge between b and b'
LCS = all least common reachable ancestors of a,b
if |LCS| = 0 : n = null
= 1 : n = < LCS[1] Ea Eb>
> 1 : n = build(Ea.t,Eb.t)
extend n.Ea + Ea
extent n.Eb + Eb
add n to N
N' = map { pathToExpression } N
if |N| = 0 : return null
= 1 : return N'[1]
> 1 : return IntersectionOf(N')
Modifier and Type | Field and Description |
---|---|
boolean |
forceReflexivePropertyCreation |
minScore
Constructor and Description |
---|
DescriptionTreeSimilarity() |
Modifier and Type | Method and Description |
---|---|
owltools.sim.DescriptionTreeSimilarity.ConvergentPath |
buildDescription(org.semanticweb.owlapi.model.OWLObject a,
org.semanticweb.owlapi.model.OWLObject b)
Recursively build a class expression that subsumes a and b.
|
owltools.sim.DescriptionTreeSimilarity.ConvergentPath |
buildDescription(org.semanticweb.owlapi.model.OWLObject a,
org.semanticweb.owlapi.model.OWLObject b,
Set<org.semanticweb.owlapi.model.OWLObject> fullLCSs) |
void |
calculate(SimEngine simEngine,
org.semanticweb.owlapi.model.OWLObject a,
org.semanticweb.owlapi.model.OWLObject b) |
void |
print(PrintStream s) |
void |
printX(PrintStream s,
org.semanticweb.owlapi.model.OWLObject x) |
void |
printX(PrintStream s,
org.semanticweb.owlapi.model.OWLObject x,
int depth) |
double |
quickScore(Set<org.semanticweb.owlapi.model.OWLObject> csl,
Set<org.semanticweb.owlapi.model.OWLObject> usl) |
protected void |
translateResultsToOWLAxioms(String id,
org.semanticweb.owlapi.model.OWLNamedIndividual result,
Set<org.semanticweb.owlapi.model.OWLAxiom> axioms)
adds additional axioms specific to this method.
|
addResultsToOWLOntology, annotationIRI, createOWLOntologyFromResults, getScore, isAboveMinScore, print, print, printDescription, printDescription, report, setScore, setScore, splitIRI, toString, translateResultsToOWLAxioms
public void calculate(SimEngine simEngine, org.semanticweb.owlapi.model.OWLObject a, org.semanticweb.owlapi.model.OWLObject b) throws SimEngine.SimilarityAlgorithmException
calculate
in class Similarity
SimEngine.SimilarityAlgorithmException
public double quickScore(Set<org.semanticweb.owlapi.model.OWLObject> csl, Set<org.semanticweb.owlapi.model.OWLObject> usl)
public owltools.sim.DescriptionTreeSimilarity.ConvergentPath buildDescription(org.semanticweb.owlapi.model.OWLObject a, org.semanticweb.owlapi.model.OWLObject b)
a
- b
- public owltools.sim.DescriptionTreeSimilarity.ConvergentPath buildDescription(org.semanticweb.owlapi.model.OWLObject a, org.semanticweb.owlapi.model.OWLObject b, Set<org.semanticweb.owlapi.model.OWLObject> fullLCSs)
protected void translateResultsToOWLAxioms(String id, org.semanticweb.owlapi.model.OWLNamedIndividual result, Set<org.semanticweb.owlapi.model.OWLAxiom> axioms)
translateResultsToOWLAxioms
in class Similarity
id
- result
- axioms
- public void print(PrintStream s)
print
in class Similarity
public void printX(PrintStream s, org.semanticweb.owlapi.model.OWLObject x)
public void printX(PrintStream s, org.semanticweb.owlapi.model.OWLObject x, int depth)
Copyright © 2010–2015. All rights reserved.