Skip to content

Commit

Permalink
Added Validation V1P0
Browse files Browse the repository at this point in the history
  • Loading branch information
bherr2 committed Sep 6, 2023
1 parent d960093 commit 4cfe947
Show file tree
Hide file tree
Showing 4 changed files with 5,942 additions and 250 deletions.
46 changes: 46 additions & 0 deletions data-processor/queries/validation-v1p0.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ASCTB-TEMP: <https://purl.org/ccf/ASCTB-TEMP_>
PREFIX CL: <http://purl.obolibrary.org/obo/CL_>
PREFIX FMA: <http://purl.org/sig/ont/fma/fma>
PREFIX UBERON: <http://purl.obolibrary.org/obo/UBERON_>
PREFIX ccf3d: <http://purl.org/ccf/latest/ccf.owl#>
PREFIX ccf: <http://purl.org/ccf/>
PREFIX ctpop: <https://cns-iu.github.io/hra-cell-type-populations-supporting-information/data/enriched_rui_locations.jsonld#>
PREFIX dc: <http://purl.org/dc/terms/>
PREFIX hubmap: <https://entity.api.hubmapconsortium.org/entities/>
PREFIX rui: <http://purl.org/ccf/1.5/>


SELECT ?sample ?dataset ?as ?similarity
WHERE {
GRAPH ctpop:graph {
?sample ccf:generates_dataset ?dataset .
?sample ccf:has_registration_location ?rui_location .
}

{
GRAPH ctpop:similarities {
[] ccf:cell_source_a ?dataset ;
ccf:cell_source_b ?as ;
ccf:similarity ?similarity .

FILTER (
STRSTARTS(STR(?as), 'http://purl.obolibrary.org/obo/') ||
STRSTARTS(STR(?as), 'http://purl.org/sig/ont/fma/fma')
)
}
} UNION {
GRAPH ctpop:similarities {
[] ccf:cell_source_a ?as ;
ccf:cell_source_b ?dataset ;
ccf:similarity ?similarity .

FILTER (
STRSTARTS(STR(?as), 'http://purl.obolibrary.org/obo/') ||
STRSTARTS(STR(?as), 'http://purl.org/sig/ont/fma/fma')
)
}
}
}
ORDER BY ?sample
3 changes: 2 additions & 1 deletion data-processor/queries/validation-v2.rq
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ WHERE {
ccf:cell_source_b ?target ;
ccf:similarity ?similarity .
}
}
}
ORDER BY ?sample
Loading

0 comments on commit 4cfe947

Please sign in to comment.