Skip to content

Commit

Permalink
Merge pull request #276 from obophenotype/sparql-for-manuscript
Browse files Browse the repository at this point in the history
added some sparql queries
  • Loading branch information
shawntanzk committed Mar 21, 2022
2 parents 1a6b0a7 + 58e8fd2 commit 4fde5b6
Show file tree
Hide file tree
Showing 3 changed files with 29 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_")))
}
9 changes: 9 additions & 0 deletions src/sparql/pcl_cluster.sparql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX pcl: <http://purl.obolibrary.org/obo/PCL_>

SELECT (COUNT (DISTINCT ?ind) as ?indcount)
WHERE {
?ind a owl:NamedIndividual ;
pcl:0010059 ?cluster.
FILTER(isIRI(?ind) && (STRSTARTS(str(?ind), "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 4fde5b6

Please sign in to comment.