Skip to content

Commit 8021a0c

Browse files
committed
[kbss-cvut/23ava-distribution#165] Add construct comments implementation
1 parent 361fbd9 commit 8021a0c

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
@@ -319,6 +319,7 @@ ASK WHERE {
319319
}""" ;
320320
] ;
321321
sm:next form-mod:construct-answers ;
322+
sm:next form-mod:construct-comments;
322323
sm:next form-mod:filter-origin-path-id ;
323324
sml:constructQuery [
324325
a sp:Construct ;
@@ -353,6 +354,26 @@ WHERE {
353354
sml:replace true ;
354355
.
355356

357+
form-mod:construct-comments
358+
a sml:ApplyConstruct ;
359+
sm:next form-mod:rename-form-entities ;
360+
sml:constructQuery [
361+
a sp:Construct ;
362+
sp:text """CONSTRUCT {
363+
?sampleQ form:has-comment ?c .
364+
?c ?cp ?co .
365+
}
366+
WHERE {
367+
?dataQ form:is-cross-form-clone-of-question ?sampleQ .
368+
?dataQ form:has-comment ?c .
369+
OPTIONAL {
370+
?c ?cp ?co .
371+
} .
372+
}""" ;
373+
] ;
374+
sml:replace false ;
375+
.
376+
356377

357378
form-mod:construct-answers
358379
a sml:ApplyConstruct ;

0 commit comments

Comments
 (0)