-
Notifications
You must be signed in to change notification settings - Fork 0
/
restdesc.trig
182 lines (151 loc) · 3.35 KB
/
restdesc.trig
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
# -------------
# RESTdesc path
# -------------
#
# See https://github.com/RubenVerborgh/RESTdesc-Composition-Benchmark
@prefix http: <http://www.w3.org/2011/http#>.
@prefix log: <http://www.w3.org/2000/10/swap/log#>.
@prefix var: <http://www.w3.org/2000/10/swap/var#>.
@prefix : <http://example.org/#>.
# initial
:x :rel1 :y.
# RESTdesc
_:bng_1 log:implies _:bng_2.
_:bng_1 {
var:a1 :rel1 var:b1.
}
_:bng_2{
var:request http:methodName "GET";
http:requestURI var:a1;
http:resp var:resp.
var:resp http:body var:b1.
var:a1 :rel2 var:b1.
var:a2 :rel2 var:b2.
var:a3 :rel2 var:b3.
}
_:bng_3 log:implies _:bng_4.
_:bng_3 {
var:a1 :rel2 var:b1.
var:a2 :rel2 var:b2.
var:a3 :rel2 var:b3.
}
_:bng_4 {
var:request http:methodName "GET";
http:requestURI var:a1;
http:resp var:resp.
var:resp http:body var:b1.
var:a1 :rel3 var:b1.
var:a2 :rel3 var:b2.
var:a3 :rel3 var:b3.
}
_:bng_5 log:implies _:bng_6.
_:bng_5 {
var:a1 :rel3 var:b1.
var:a2 :rel3 var:b2.
var:a3 :rel3 var:b3.
}
_:bng_6 {
var:request http:methodName "GET";
http:requestURI var:a1;
http:resp var:resp.
var:resp http:body var:b1.
var:a1 :rel4 var:b1.
var:a2 :rel4 var:b2.
var:a3 :rel4 var:b3.
}
_:bng_7 log:implies _:bng_8.
_:bng_7 {
var:a1 :rel4 var:b1.
var:a2 :rel4 var:b2.
var:a3 :rel4 var:b3.
}
_:bng_8 {
var:request http:methodName "GET";
http:requestURI var:a1;
http:resp var:resp.
var:resp http:body var:b1.
var:a1 :rel5 var:b1.
var:a2 :rel5 var:b2.
var:a3 :rel5 var:b3.
}
_:bng_9 log:implies _:bng_10.
_:bng_9 {
var:a1 :rel5 var:b1.
var:a2 :rel5 var:b2.
var:a3 :rel5 var:b3.
}
_:bng_10 {
var:request http:methodName "GET";
http:requestURI var:a1;
http:resp var:resp.
var:resp http:body var:b1.
var:a1 :rel6 var:b1.
var:a2 :rel6 var:b2.
var:a3 :rel6 var:b3.
}
_:bng_11 log:implies _:bng_12.
_:bng_11 {
var:a1 :rel6 var:b1.
var:a2 :rel6 var:b2.
var:a3 :rel6 var:b3.
}
_:bng_12 {
var:request http:methodName "GET";
http:requestURI var:a1;
http:resp var:resp.
var:resp http:body var:b1.
var:a1 :rel7 var:b1.
var:a2 :rel7 var:b2.
var:a3 :rel7 var:b3.
}
_:bng_13 log:implies _:bng_14.
_:bng_13 {
var:a1 :rel7 var:b1.
var:a2 :rel7 var:b2.
var:a3 :rel7 var:b3.
}
_:bng_14 {
var:request http:methodName "GET";
http:requestURI var:a1;
http:resp var:resp.
var:resp http:body var:b1.
var:a1 :rel8 var:b1.
var:a2 :rel8 var:b2.
var:a3 :rel8 var:b3.
}
_:bng_15 log:implies _:bng_16.
_:bng_15 {
var:a1 :rel8 var:b1.
var:a2 :rel8 var:b2.
var:a3 :rel8 var:b3.
}
_:bng_16 {
var:request http:methodName "GET";
http:requestURI var:a1;
http:resp var:resp.
var:resp http:body var:b1.
var:a1 :rel9 var:b1.
var:a2 :rel9 var:b2.
var:a3 :rel9 var:b3.
}
_:bng_17 log:implies _:bng_18.
_:bng_17 {
var:a1 :rel9 var:b1.
var:a2 :rel9 var:b2.
var:a3 :rel9 var:b3.
}
_:bng_18 {
var:request http:methodName "GET";
http:requestURI var:a1;
http:resp var:resp.
var:resp http:body var:b1.
var:a1 :rel10 var:b1.
var:a2 :rel10 var:b2.
var:a3 :rel10 var:b3.
var:a1 :relGoal var:b1.
}
# query
_:bng_19 log:query _:bng_19.
_:bng_19 {
:x :relGoal :y.
}