Skip to content

Commit

Permalink
Improved query for finding phenotypic features
Browse files Browse the repository at this point in the history
  • Loading branch information
rosazwart committed Jul 23, 2024
1 parent 0560631 commit 0ea1957
Show file tree
Hide file tree
Showing 3 changed files with 873 additions and 862 deletions.
11 changes: 11 additions & 0 deletions SPARQL/scenario_5/question2_b.rq
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ PREFIX obo: <http://purl.obolibrary.org/obo/>
PREFIX sio: <http://semanticscience.org/resource/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

SELECT ?idvalue ?phenofeatid ?phenofeatlabel
WHERE {
Expand All @@ -19,5 +20,15 @@ WHERE {
a obo:NCIT_C16977 .
?phenofeat dcterms:identifier ?phenofeatid ;
rdfs:label ?phenofeatlabel .

# Find the phenotypic features that are not excluded
OPTIONAL {
?phenofeat sio:SIO_000008 ?excluded .
?excluded a obo:HP_0040285 .
?excludedval sio:SIO_000628 ?excluded ;
sio:SIO_000300 ?excludedlabel .
}

FILTER (!bound(?excluded) || ?excludedlabel = "false"^^xsd:boolean )

}
Binary file modified nras_matching_phenotypes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0ea1957

Please sign in to comment.