Skip to content

Commit

Permalink
Added use of subclass closure for subsumed annotations query.
Browse files Browse the repository at this point in the history
  • Loading branch information
balhoff committed Feb 23, 2016
1 parent 31e4e12 commit dc733ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/org/phenoscape/kb/Similarity.scala
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,12 @@ object Similarity {
t('subsumer, has_ic, 'ic)))

def subsumedAnnotationsQuery(instance: OWLNamedIndividual, subsumer: OWLClass): Query =
select_distinct('annotation) from "http://kb.phenoscape.org/" where (
select_distinct('annotation) from "http://kb.phenoscape.org/" from "http://kb.phenoscape.org/closure" where (
bgp(
t(instance, has_phenotypic_profile / rdfType, 'annotation)),
new ElementSubQuery(select('annotation) where (
bgp(
t('annotation, rdfsSubClassOf*, subsumer)))))
t('annotation, rdfsSubClassOf, subsumer)))))

def constructMatchFor(queryItem: IRI): QuerySolution => SimilarityMatch =
(result: QuerySolution) => SimilarityMatch(
Expand Down

0 comments on commit dc733ae

Please sign in to comment.