...
Query Parameters:
Status |
---|
subtle | true |
---|
title | non-member-properties |
---|
|
By default, we include triples for all member resources, in addition to triples about the given node. Setting this to true will exclude member resources from the result. Pagination control for member resources
...
Status |
---|
subtle | true |
---|
title | If-None-Match |
---|
|
Status |
---|
| |
---|
subtle | true |
---|
title | If-Modified-Since |
---|
|
Example (1):
Code Block |
---|
curl -H "Accept: text/turtle" "http://localhost:8080/rest/" |
Response:
return=minimalreturn=representation
return=representation; include="URIs"
return=representation; omit="URIs"
where minimal indicates that only triples directly related to a resource should be returned, and representation indicates that links to other resources and their properties should also be included. URIs is a space-separate list of:
URI | Description |
---|
http://www.w3.org/ns/ldp#PreferMembership | links to other resources (including child nodes) and LDP container properties (included in representation by default) |
http://www.w3.org/ns/ldp#PreferContainment | triples describing the child nodes (included in representation by default) |
http://fedora.info/definitions/v4/repository#InboundReferences | links from other Fedora resources to this node (excluded from representation by default) |
Example (1):
Code Block |
---|
curl -H "Accept: text/turtle" "http://localhost:8080/rest/" |
Response:
Code Block |
---|
Status: 200 OK
Headers:
Content-Type: text/turtle
Cache-Control:
Last-Modified-At: 2013-01-01T01:23:45Z
Link: http://localhost:8080/rest/?offset=0&limit=10;rel="first"
Link: http://www.w3.org/ns/ldp/Resource;rel="type"
Accept-Patch: application/sparql-update
Body:
<http://localhost:8080/rest/>
a <http://www.w3.org/ns/ldp#Container> , <http://www.w3.org/ns/ldp#Page> ;
<http://www.w3.org/ns/ldp#membersInlined>
"true" ;
<http://www.w3.org/ns/ldp#membershipObject>
<http://www.w3.org/ns/ldp#MemberSubject> ;
<http://www.w3.org/ns/ldp#membershipPredicate>
<http://fedora.info/definitions/v4/repository#hasChild> ;
<http://www.w3.org/ns/ldp#membershipSubject>
<http://localhost:8080/rest/> ;
<http://www.w3.org/ns/ldp#pageOf>
<http://localhost:8080/rest/> ;
<http://fedora.info/definitions/v4/rest-api#exportsAs>
<http://localhost:8080/rest//fcr:export?format=jcr/xml> ;
<http://fedora.info/definitions/v4/rest-api#hasNamespaces>
<http://localhost:8080/rest/fcr:namespaces> ;
<http://fedora.info/definitions/v4/rest-api#hasTransactionProvider>
<http://localhost:8080/rest/fcr:tx> ;
<http://fedora.info/definitions/v4/rest-api#hasWorkspaces>
<http://localhost:8080/rest/fcr:workspaces> ;
<http://microformats.org/wiki/rel-sitemap>
<http://localhost:8080/rest/sitemap> ; |
Example (2):
Code Block |
---|
curl -H "Accept: text/turtle" "http://localhost:8080/rest/path/to/resource" |
Response:
Code Block |
---|
Status: 200 OK
Headers:
ETag: "d98e86c48a3e31857f5311f51ad7a2e13a7cedee"
Content-Type: text/turtle
Cache-Control: must-revalidate
Last-Modified: Fri, 15 Nov 2013 23:31:07 +0000
Link: http://localhost:8080/rest/path/to/resource/?offset=0&limit=10;rel="first"
Link: http://www.w3.org/ns/ldp/Resource;rel="type"
Accept-Patch: application/sparql-update
Body:
<http://localhost:8080/rest/path/to/resource>
a <http://fedora.info/definitions/v4/rest-api#resource> , <http://fedora.info/definitions/v4/rest-api#object> ,
<http://www.w3.org/ns/ldp#Container> , <http://www.w3.org/ns/ldp#Page> ;
<http://fedora.info/definitions/v4/repository#uuid>
"e8baa85c-f05a-49e8-9578-9adef92ac60d"^^<http://www.w3.org/2001/XMLSchema#string> ;
<http://www.w3.org/ns/ldp#inlinedResource>
<http://localhost:8080/rest/path/to> ;
<http://www.w3.org/ns/ldp#membersInlined>
"true" ;
<http://www.w3.org/ns/ldp#pageOf>
<http://localhost:8080/rest/path/to/resource> .
<http://fedora.info/definitions/v4/rest-api#exportsAs>
<http://localhost:8080/rest/path/to/resource/fcr:export?format=jcr/xml> ;
<http://fedora.info/definitions/v4/rest-api#hasVersions>
<http://localhost:8080/rest/path/to/resource/fcr:versions> ;
<http://fedora.info/definitions/v4/repository#created>
"2013-11-15T23:31:07.275Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
<http://fedora.info/definitions/v4/repository#createdBy>
"bypassAdmin"^^<http |
Code Block |
---|
Status: 200 OK
Headers:
Content-Type: text/turtle
Cache-Control:
Last-Modified-At: 2013-01-01T01:23:45Z
Link: http://localhost:8080/rest/?offset=0&limit=10;rel="first"
Link: http://www.w3.org/ns/ldp/Resource;rel="type"
Accept-Patch: application/sparql-update
Body:
<http://localhost:8080/rest/>2001/XMLSchema#string> ;
<http://fedora.info/definitions/v4/repository#hasParent>
<http://localhost:8080/rest/path/to> ;
<http://fedora.info/definitions/v4/repository#lastModified>
a <http"2013-11-15T23:31:07.268Z"^^<http://www.w3.org/ns/ldp#Container> , <http2001/XMLSchema#dateTime> ; |
Example (3):
Code Block |
---|
curl -H "Prefer: return=representation; include=\"http://www.w3.org/ns/ldp#Page> ;
<httpfedora.info/definitions/v4/repository#InboundReferences\"; omit=\"http://www.w3.org/ns/ldp#membersInlined>
"true" ;
<httpldp#PreferMembership http://www.w3.org/ns/ldp#PreferContainment\"" http://localhost:8080/rest/parent |
Response:
Code Block |
---|
Status: 200 OK
Headers:
ETag: "25fb5cb1d24983d57b10cb0b4656de113d5b8257"
Last-Modified: Mon, 19 May 2014 19:24:40 GMT
Preference-Applied: return=representation; include="http://fedora.info/definitions/v4/repository#InboundReferences"
Vary: Prefer
Accept-Patch: application/sparql-update
Allow: MOVE,COPY,DELETE,POST,HEAD,GET,PUT,PATCH,OPTIONS
Accept-Post: text/turtle,text/rdf+n3,application/n3,text/n3,application/rdf+xml,application/n-triples,multipart/form-data,application/sparql-update
Link: ldp#membershipObject>
<http://www.w3.org/ns/ldp#MemberSubject> ;
<http://www.w3.org/ns/ldp#membershipPredicate>
<http://fedora.info/definitions/v4/repository#hasChild> ;
<http://www.w3.org/ns/ldp#membershipSubject>
<http://localhost:8080/rest/> ;
ldp#Resource>;rel="type"
Link: <http://www.w3.org/ns/ldp#pageOf>
ldp#DirectContainer>;rel="type"
Content-Type: text/turtle
Body:
<http://localhost:8080/rest/>parent> ;
<http://fedora.info/definitions/v4/rest-api#exportsAs>
api#hasAccessRoles> <http://localhost:8080/rest/parent/fcr:accessroles> ;
<http://fedora.info/definitions/v4/rest-api#exportsAs> <http://localhost:8080/rest/parent/fcr:export?format=jcr/xml> ;
<http://fedora.info/definitions/v4/rest-api#hasNamespaces>repository#hasParent> <http://localhost:8080/rest/> ;
a <http://www.w3.org/ns/ldp#Container> , <http://www.w3.org/ns/ldp#DirectContainer> ;
<http://www.w3.org/ns/ldp#membershipResource> <http://localhost:8080/rest/fcr:namespaces>parent> ;
<http://www.w3.org/ns/ldp#hasMemberRelation> <http://fedora.info/definitions/v4/rest-api#hasTransactionProvider>repository#hasChild> ;
a <http://www.jcp.org/jcr/nt/1.0folder> , <http://www.jcp.org/jcr/nt/1.0hierarchyNode> , <http://www.jcp.org/jcr/nt/1.0base> , <http:///localhost:8080/rest/fcr:tx> ;
www.jcp.org/jcr/mix/1.0created> , <http://fedora.info/definitions/v4/rest-api#hasWorkspaces>
<http://localhost:8080/rest/fcr:workspaces> ;
api#resource> , <http://fedora.info/definitions/v4/rest-api#object> , <http://microformatsfedora.orginfo/definitions/wikiv4/relrest-sitemap>
api#relations> , <http://localhost:8080/rest/sitemap> ; |
Example (2):
Code Block |
---|
curl -H "Accept: text/turtle" "http://localhost:8080/rest/path/to/resource" |
Response:
Code Block |
---|
Status: 200 OK
Headers:
ETag: "d98e86c48a3e31857f5311f51ad7a2e13a7cedee"
Content-Type: text/turtle
Cache-Control: must-revalidate
Last-Modified: Fri, 15 Nov 2013 23:31:07 +0000
Link: httpwww.jcp.org/jcr/mix/1.0created> , <http://www.jcp.org/jcr/mix/1.0lastModified> , <http://www.jcp.org/jcr/mix/1.0lockable> , <http://www.jcp.org/jcr/mix/1.0referenceable> , <http://purl.org/dc/elements/1.1/describable> , <http://fedora.info/definitions/v4/rest-api#resource> .
<http://localhost:8080/rest/path/to/resource/?offset=0&limit=10;rel="first"
Link: httpcollection> <http://wwwfedora.w3.orginfo/nsdefinitions/ldp/Resource;rel="type"
Accept-Patch: application/sparql-update
Body:
v4/rels-ext#hasCollectionMember> <http://localhost:8080/rest/path/to/resource>
a /parent> .
<http://fedora.info/definitions/v4/rest-api#resource> , localhost:8080/rest/parent> <http://fedora.info/definitions/v4/rest-api#object> ,
<httprepository#primaryType> "nt:folder"^^<http://www.w3.org/ns/ldp#Container> , <http/2001/XMLSchema#string> ;
<http://fedora.info/definitions/v4/repository#created> "2014-05-19T19:21:37.182Z"^^<http://www.w3.org/ns2001/ldp#Page>XMLSchema#string> ;
<http://fedora.info/definitions/v4/repository#uuid>
"e8baa85c-f05a-49e8-9578-9adef92ac60drepository#lastModified> "2014-05-19T19:24:40.662Z"^^<http://www.w3.org/2001/XMLSchema#string> ;
<http://fedora.info/definitions/v4/repository#mixinTypes> "fedora:resource"^^<http://www.w3.org/2001/XMLSchema#string> <http, "fedora:object"^^<http://www.w3.org/ns2001/ldp#inlinedResource>XMLSchema#string> ;
<http://localhost:8080/rest/path/to> ;
<httpfedora.info/definitions/v4/repository#lastModifiedBy> "bypassAdmin"^^<http://www.w3.org/ns/ldp#membersInlined>
"true" /2001/XMLSchema#string> ;
<http<http://fedora.info/definitions/v4/repository#uuid> "c21706cd-cc1a-4d77-b637-d940e0dc7888"^^<http://www.w3.org/ns2001/ldp#pageOf>XMLSchema#string> ;
<http://fedora.info/definitions//localhost:8080/rest/path/to/resource> .v4/repository#createdBy> "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ;
a <http://fedorawww.jcp.infoorg/definitionsjcr/v4/rest-api#exportsAs>
nt/1.0folder> , <http://localhost:8080/rest/path/to/resource/fcr:export?format=jcr/xml> ;
www.jcp.org/jcr/nt/1.0hierarchyNode> , <http://fedorawww.jcp.infoorg/definitionsjcr/v4/rest-api#hasVersions>
nt/1.0base> , <http://localhost:8080/rest/path/to/resource/fcr:versions> ;
www.jcp.org/jcr/mix/1.0created> , <http://fedora.info/definitions/v4/rest-api#resource> , <http://fedora.info/definitions/v4/rest-api#object> , <http://fedora.info/definitions/v4/repository#created>
rest-api#relations> "2013-11-15T23:31:07.275Z"^^<http:, <http://www.w3jcp.org/jcr/2001mix/XMLSchema#dateTime> ;
1.0created> , <http://fedorawww.jcp.infoorg/definitionsjcr/v4/repository#createdBy>
"bypassAdmin"^^<httpmix/1.0lastModified> , <http://www.w3jcp.org/2001/XMLSchema#string> ;
jcr/mix/1.0lockable> , <http://fedorawww.jcp.infoorg/definitionsjcr/v4/repository#hasParent>
<http://localhost:8080/rest/path/to> ;
mix/1.0referenceable> , <http://purl.org/dc/elements/1.1/describable> , <http://fedora.info/definitions/v4/repository#lastModified>
"2013-11-15T23:31:07.268Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;rest-api#resource> . |
Status:
Status |
---|
subtle | true |
---|
colour | Green |
---|
title | 200 |
---|
|
OK
...