...
Code Block |
---|
language | bash |
---|
title | 2a. Creating Sample Objects |
---|
|
curl -X POST http://localhost:8080/rest/objects/201?mixin=fedora:object
echo "prefix dc: <http://purl.org/dc/termselements/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 |
---|
language | sql |
---|
title | 2b. Selecting Objects With Titles |
---|
|
prefix dc: <http://purl.org/dc/termselements/1.1/>
select ?object ?title where { ?object dc:title ?title } |
...
Code Block |
---|
language | bash |
---|
title | 3a. Creating Sample Objects And Collections |
---|
|
curl -X POST http://localhost:8080/rest/objects/col1?mixin=fedora:object
curl -X POST http://localhost:8080/rest/objects/col2?mixin=fedora:object
curl -X POST http://localhost:8080/rest/objects/col3?mixin=fedora:object
curl -X POST http://localhost:8080/rest/objects/obj1?mixin=fedora:object
curl -X POST http://localhost:8080/rest/objects/obj2?mixin=fedora:object
curl -X POST http://localhost:8080/rest/objects/obj3?mixin=fedora:object |
Link each object to a collection:
...