Skip to content

Commit

Permalink
Create 003.ttl
Browse files Browse the repository at this point in the history
  • Loading branch information
pamichel authored Sep 24, 2024
1 parent 44744e1 commit fbb3a70
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions examples/Cellosaurus/003.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@prefix ex: <http://localhost/sparql/service/.well-known/sparql-examples/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <https://schema.org/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .

ex:003 a sh:SPARQLExecutable,
sh:SPARQLSelectExecutable ;
rdfs:comment "Count of cells by category"@en ;
sh:prefixes _:sparql_examples_prefixes ;
sh:select """PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX cello: <http://localhost/rdf/ontology/>
select ?cl_class (str(?cl_label) as ?label_str) (str(count(*)) as ?cnt) where {
?cl rdf:type ?cl_class .
?cl_class rdfs:subClassOf cello:CellLine .
?cl_class rdfs:label ?cl_label .
}
group by ?cl_class ?cl_label
""" ;
schema:target <http://localhost/sparql/service> .

0 comments on commit fbb3a70

Please sign in to comment.