Skip to content

Commit 03cbbdc

Browse files
committed
Create CQ2.sparql
1 parent 9801f5a commit 03cbbdc

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

  • documentation/user-guides/design-patterns/Design Pattern 1
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
2+
PREFIX cco: <https://www.commoncoreontologies.org/>
3+
PREFIX obo: <http://purl.obolibrary.org/obo/>
4+
5+
SELECT ?document (COUNT(?field) AS ?fieldCount)
6+
WHERE {
7+
?document rdf:type cco:ont00001298 .
8+
?document obo:BFO_0000178 ?field .
9+
?field rdf:type cco:ont00001243 .
10+
}
11+
GROUP BY ?document

0 commit comments

Comments
 (0)