...
Using Google Chrome PostMan app, execute the following requests (attached)
Expand |
---|
- curl -XPUT localhost:8080/fcrepo/rest/objects/
- curl -XGET localhost:8080/fcrepo/rest/objects/
curl -XPUT -H"Content-Type: text/turtle" --data-binary @body localhost:8080/fcrepo/rest/objects/raven/ Code Block |
---|
| PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX indexing: <http://fedora.info/definitions/v4/indexing#>
<> a indexing:Indexable ;
indexing:hasIndexingTransformation \"default\" ."
|
- curl -XGET localhost:8080/fcrepo/rest/objects/raven/
curl -XPUT -H"Content-Type: text/turtle" --data-binary @body localhost:8080/fcrepo/rest/objects/raven/files/ Code Block |
---|
| PREFIX ldp: <http://www.w3.org/ns/ldp#>
PREFIX pcdm: <http://pcdm.org/models#>
<> a ldp:DirectContainer;
ldp:membershipResource </fcrepo/rest/objects/raven/>;
ldp:hasMemberRelation pcdm:hasFiles ."
|
- curl -XGET localhost:8080/fcrepo/rest/objects/raven/files/
- curl -XGET -H"Prefer: return=representation; include=\"http://fedora.info/definitions/v4/repository#EmbedResources\"" localhost:8080/fcrepo/rest/objects/raven/files/
- curl -XGET -H"Prefer: return=representation; omit=\"http://fedora.info/definitions/v4/repository#ServerManaged\"" localhost:8080/fcrepo/rest/objects/raven/files/
- curl -XPUT -H"Content-Type: application/pdf" localhost:8080/fcrepo/rest/objects/raven/files/page0
curl -XPATCH -H"Content-Type: application/sparql-update" --data-binary @body localhost:8080/fcrepo/rest/objects/raven/files/page0/fcr:metadata Code Block |
---|
| PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX indexing: <http://fedora.info/definitions/v4/indexing#>
DELETE { }
INSERT {
<> indexing:hasIndexingTransformation \"default\";
rdf:type indexing:Indexable }
WHERE { }"
|
- curl -XPUT -H"Content-Type: application/pdf" localhost:8080/fcrepo/rest/objects/raven/files/page1
curl -XPATCH -H"Content-Type: application/sparql-update" --data-binary @body localhost:8080/fcrepo/rest/objects/raven/files/page1/fcr:metadata Code Block |
---|
| PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX indexing: <http://fedora.info/definitions/v4/indexing#>
DELETE { }
INSERT {
<> indexing:hasIndexingTransformation \"default\";
rdf:type indexing:Indexable }
WHERE { }"
|
curl -XPUT -H"Content-Type: text/turtle" --data-binary @body localhost:8080/fcrepo/rest/collections/ Code Block |
---|
| PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX indexing: <http://fedora.info/definitions/v4/indexing#>
<> a indexing:Indexable ;
indexing:hasIndexingTransformation \"default\" ."
|
curl -XGET -H"Content-Type: text/turtle" --data-binary @body localhost:8080/fcrepo/rest/collections/poe/ Code Block |
---|
| PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX indexing: <http://fedora.info/definitions/v4/indexing#>
<> a indexing:Indexable ;
indexing:hasIndexingTransformation \"default\" ."
|
- curl -XGET localhost:8080/fcrepo/rest/collections/poe/
curl -XPUT -H"Content-Type: text/turtle" --data-binary @body localhost:8080/fcrepo/rest/collections/poe/members/ Code Block |
---|
| PREFIX ldp: <http://www.w3.org/ns/ldp#>
PREFIX pcdm: <http://pcdm.org/models#>
PREFIX ore: <http://www.openarchives.org/ore/terms/>
<> a ldp:IndirectContainer;
ldp:membershipResource </fcrepo/rest/collections/poe/>;
ldp:hasMemberRelation pcdm:hasMember ;
ldp:insertedContentRelation ore:proxyFor ."
|
curl -XPUT -H"Content-Type: text/turtle" --data-binary @body localhost:8080/fcrepo/rest/collections/poe/members/member0 Code Block |
---|
| PREFIX ore: <http://www.openarchives.org/ore/terms/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX indexing: <http://fedora.info/definitions/v4/indexing#>
<> a ore:Proxy;
ore:proxyIn </fcrepo/rest/collections/poe/> ;
ore:proxyFor </fcrepo/rest/objects/raven/> ;
indexing:hasIndexingTransformation \"default\";
rdf:type indexing:Indexable ."
|
|
...