Skip to content

Commit

Permalink
added some sparql queries
Browse files Browse the repository at this point in the history
Fixes #275
  • Loading branch information
shawntanzk committed Mar 18, 2022
1 parent 1a6b0a7 commit 8ff2f46
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/sparql/pcl-celltypes-count.sparql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX CL: <http://purl.obolibrary.org/obo/CL_>

SELECT (COUNT (DISTINCT ?term) as ?pclcells)
WHERE {
?term a owl:Class .
?term rdfs:subClassOf* CL:0000003
FILTER(isIRI(?term) && (STRSTARTS(str(?term), "http://purl.obolibrary.org/obo/PCL_")))
}
10 changes: 10 additions & 0 deletions src/sparql/pcl_individual.sparql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PREFIX owl: <http://www.w3.org/2002/07/owl#>

SELECT (COUNT (DISTINCT ?ind) as ?indcount)
WHERE {
?ind a owl:NamedIndividual .
{ ?s3 ?p3 ?ind. }
UNION
{ ?ind ?p4 ?o4 . }
FILTER(isIRI(?ind) && (STRSTARTS(str(?ind), "http://purl.obolibrary.org/obo/PCL_")))
}

0 comments on commit 8ff2f46

Please sign in to comment.