Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added some sparql queries #276

Merged
merged 2 commits into from
Mar 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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_")))
}