Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion extensions/sparql-protocol/temporal-data/version-attributes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ done
echo "next, verify single head" > $ECHO_OUTPUT
curl_sparql_request revision-id=HEAD \
--account test --repository test__rev <<EOF \
| tee $ECHO_OUTPUT | fgrep -c 'PUT3' | fgrep -q "1"
| tee $ECHO_OUTPUT | fgrep -c 'PUT' | fgrep -q "1"
prefix dydra: <urn:dydra>
prefix time: <http://www.w3.org/2006/time#>
prefix : <http://example.org#>
Expand All @@ -38,6 +38,19 @@ where {
}
EOF

echo "next, verify single head w/ attribute" > $ECHO_OUTPUT
curl_sparql_request revision-id=HEAD \
--account test --repository test__rev <<EOF \
| tee $ECHO_OUTPUT | fgrep -c 'PUT' | fgrep -q "1"
prefix dydra: <urn:dydra>
prefix time: <http://www.w3.org/2006/time#>
prefix : <http://example.org#>
select ?subject ?predicate ?object
where {
?subject ?predicate ?object {| dydra:starts ?addedOrdinal |}
}
EOF

echo "next, verify three revisions w/o attribute" > $ECHO_OUTPUT
curl_sparql_request 'revision-id=*--*' \
--account test --repository test__rev <<EOF \
Expand Down