Skip to content

Commit adfbddc

Browse files
palagdanblcham
authored andcommitted
[kbss-cvut/23ava-distribution#165] Add construct comments implementation
1 parent 656fcdc commit adfbddc

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

deploy/shared/s-pipes-engine/scripts/form-generation.sms.ttl

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ ASK WHERE {
282282
}""" ;
283283
] ;
284284
sm:next form-mod:construct-answers ;
285+
sm:next form-mod:construct-comments;
285286
sm:next form-mod:filter-origin-path-id ;
286287
sml:constructQuery [
287288
a sp:Construct ;
@@ -316,6 +317,26 @@ WHERE {
316317
sml:replace true ;
317318
.
318319

320+
form-mod:construct-comments
321+
a sml:ApplyConstruct ;
322+
sm:next form-mod:rename-form-entities ;
323+
sml:constructQuery [
324+
a sp:Construct ;
325+
sp:text """CONSTRUCT {
326+
?sampleQ form:has-comment ?c .
327+
?c ?cp ?co .
328+
}
329+
WHERE {
330+
?dataQ form:is-cross-form-clone-of-question ?sampleQ .
331+
?dataQ form:has-comment ?c .
332+
OPTIONAL {
333+
?c ?cp ?co .
334+
} .
335+
}""" ;
336+
] ;
337+
sml:replace false ;
338+
.
339+
319340

320341
form-mod:construct-answers
321342
a sml:ApplyConstruct ;

0 commit comments

Comments
 (0)