...
Code Block | ||||
---|---|---|---|---|
| ||||
curl -X POST http://localhost:8080/rest/objects/201 echo "prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns>ns#> prefix index: <http://fedora.info/definitions/v4/indexing#> insert data { <> rdf:type index:indexable . }" \ | curl -X PATCH --upload-file - http://localhost:8080/rest/objects/201 echo "prefix dc: <http://purl.org/dc/elements/1.1/> insert data { <http://localhost:8080/rest/objects/201> dc:title 'Foo' . }" \ | curl -X PATCH --upload-file - http://localhost:8080/rest/objects/201 |
...
Code Block | ||||
---|---|---|---|---|
| ||||
echo "prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns>ns#> prefix index: <http://fedora.info/definitions/v4/indexing#> insert data { <> rdf:type index:indexable . }" \ | curl -X PATCH --upload-file - http://localhost:8080/rest/objects/obj1 echo "prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns>ns#> prefix index: <http://fedora.info/definitions/v4/indexing#> insert data { <> rdf:type index:indexable . }" \ | curl -X PATCH --upload-file - http://localhost:8080/rest/objects/obj2 echo "prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns>ns#> prefix index: <http://fedora.info/definitions/v4/indexing#> insert data { <> rdf:type index:indexable . }" \ | curl -X PATCH --upload-file - http://localhost:8080/rest/objects/obj3 |
...
Code Block | ||||
---|---|---|---|---|
| ||||
curl -X POST http://localhost:8080/rest/objects/proj1 echo "prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns>ns#> prefix index: <http://fedora.info/definitions/v4/indexing#> insert data { <> rdf:type index:indexable . }" \ | curl -X PATCH --upload-file - http://localhost:8080/rest/objects/proj1 echo 'prefix ex: <http://example.org/> insert data { <http://localhost:8080/rest/obj1> ex:project <http://localhost:8080/rest/proj1> . }" \ | curl -X PATCH --upload-file - http://localhost:8080/rest/obj1 |
...