-
Notifications
You must be signed in to change notification settings - Fork 66
/
cmpl_bql_minimal.json
58 lines (58 loc) · 1018 Bytes
/
cmpl_bql_minimal.json
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"Name": "A simple object manipulation",
"Sources": [
{
"ID": "?g",
"Facts": [
"/t<id> \"predicate\"@[] /foo<bar>"
]
}
],
"Assertions": [
{
"Requires": "retrieving the type",
"Statement": "
SELECT ?type
FROM ?g
WHERE {
/t<id> \"predicate\"@[] /foo<bar> TYPE ?type
};",
"WillFail": false,
"MustReturn": [
{
"?type": "/foo"
}
]
},
{
"Requires": "retrieving the id",
"Statement": "
SELECT ?id
FROM ?g
WHERE {
/t<id> \"predicate\"@[] /foo<bar> ID ?id
};",
"WillFail": false,
"MustReturn": [
{
"?id": "bar"
}
]
},
{
"Requires": "retrieving the object",
"Statement": "
SELECT ?o
FROM ?g
WHERE {
/t<id> \"predicate\"@[] ?o
};",
"WillFail": true,
"MustReturn": [
{
"?o": "/foo<bar>"
}
]
}
]
}