This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function dump_dataset() { | |
echo "<<<< ---- ----" | |
curl --header 'Accept: application/trig' http://localhost:3030/ds | |
echo ">>>> ---- ----" | |
} | |
echo "== Setup" | |
curl -s -d update="CLEAR ALL" http://localhost:3030/ds 1>/dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "== Step 1a" | |
curl --header 'Accept: application/trig' http://localhost:3030/ds | |
echo "----" | |
s-put http://localhost:3030/ds/data http://localhost/graph5 update.ttl | |
echo "== Step 1b" | |
curl --header 'Accept: application/trig' http://localhost:3030/ds | |
echo "----" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "== Step 1a" | |
curl --header 'Accept: application/trig' http://localhost:3030/ds | |
echo "----" | |
s-put http://localhost:3030/ds/data http://localhost:3030/graph5 update.ttl | |
echo "== Step 1b" | |
curl --header 'Accept: application/trig' http://localhost:3030/ds | |
echo "----" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE {GRAPH ?G {<http://localhost/test/r4> ?p ?o}} WHERE {GRAPH ?G {<http://localhost/test/r4> ?p ?o}}; | |
INSERT DATA { GRAPH <http://localhost/test/r4> { | |
<http://localhost/test/r4> <http://www.w3.org/2000/01/rdf-schema#label> "r 4 modified" . | |
<http://localhost/test/r4> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://localhost/test/Resource> . | |
} } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
prefix eg: <http://localhost/test/> | |
eg:r4 a eg:Resource; rdfs:label "r 4" . |