-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path0135_2union1Nest+.sparql
More file actions
35 lines (32 loc) · 1005 Bytes
/
0135_2union1Nest+.sparql
File metadata and controls
35 lines (32 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# [unions] 2 unions, 1 nesting (with Cypher CALL)
#
# This is exactly the same of 2union1Nest, it is here just to allow the chart renderer
# to pair the same union made with the new CALL method in Cypher.
#
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bk: <http://knetminer.org/data/rdf/terms/biokno/>
PREFIX bkr: <http://knetminer.org/data/rdf/resources/>
PREFIX bka: <http://knetminer.org/data/rdf/terms/biokno/attributes/>
PREFIX bkg: <http://knetminer.org/data/rdf/resources/graphs/>
SELECT ?pname ?ename ?rtype ?cname
# DEBUG FROM bkg:poaceae
{
{
?e a bk:Enzyme; ^bk:is_a ?p.
?p a bk:Protein.
BIND ( "is_a" AS ?rtype )
}
UNION {
?e a bk:Enzyme; bk:ac_by ?p.
?p a bk:Protein.
BIND ( "ac_by" AS ?rtype )
}
?e bk:ac_by|bk:in_by ?c.
?c a bk:Comp.
OPTIONAL { ?p bk:prefName ?pname }
OPTIONAL { ?e bk:prefName ?ename }
OPTIONAL { ?c bk:prefName ?cname }
}
# ORDER BY RAND()
LIMIT 100