Skip to content

Instantly share code, notes, and snippets.

@dannylamb
Created August 12, 2016 14:04
Show Gist options
  • Save dannylamb/ce6db4da43456ce0fd7947dd56335f56 to your computer and use it in GitHub Desktop.
Save dannylamb/ce6db4da43456ce0fd7947dd56335f56 to your computer and use it in GitHub Desktop.
strong etag on container
daniel@daniel-Latitude-3560:/opt/karaf$ curl -i "http://localhost:8080/fcrepo/rest/fixtures"
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
ETag: "dab54979f9951cb100ea9cc0f52da72111511deb"
Last-Modified: Fri, 12 Aug 2016 13:36:29 GMT
Link: <http://www.w3.org/ns/ldp#Resource>;rel="type"
Link: <http://www.w3.org/ns/ldp#Container>;rel="type"
Link: <http://www.w3.org/ns/ldp#BasicContainer>;rel="type"
Accept-Patch: application/sparql-update
Accept-Post: text/turtle,text/rdf+n3,text/n3,application/rdf+xml,application/n-triples,multipart/form-data,application/sparql-update
Allow: MOVE,COPY,DELETE,POST,HEAD,GET,PUT,PATCH,OPTIONS
Preference-Applied: return=representation
Vary: Prefer
Vary: Accept, Range, Accept-Encoding, Accept-Language
Content-Type: text/turtle
Content-Length: 2003
Date: Fri, 12 Aug 2016 13:57:42 GMT
@prefix premis: <http://www.loc.gov/premis/rdf/v1#> .
@prefix image: <http://www.modeshape.org/images/1.0> .
@prefix sv: <http://www.jcp.org/jcr/sv/1.0> .
@prefix test: <info:fedora/test/> .
@prefix nt: <http://www.jcp.org/jcr/nt/1.0> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsi: <http://www.w3.org/2001/XMLSchema-instance> .
@prefix mode: <http://www.modeshape.org/1.0> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix fedora: <http://fedora.info/definitions/v4/repository#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix jcr: <http://www.jcp.org/jcr/1.0> .
@prefix ebucore: <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#> .
@prefix ldp: <http://www.w3.org/ns/ldp#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema> .
@prefix fedoraconfig: <http://fedora.info/definitions/v4/config#> .
@prefix mix: <http://www.jcp.org/jcr/mix/1.0> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
<http://localhost:8080/fcrepo/rest/fixtures> a fedora:Container , fedora:Resource ;
dc:title "Derp"^^<http://www.w3.org/2001/XMLSchema#string> ;
fedora:lastModifiedBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ;
fedora:createdBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ;
fedora:created "2016-08-12T13:28:07.439Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
fedora:lastModified "2016-08-12T13:36:29.731Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
a ldp:RDFSource , ldp:Container ;
fedora:writable "true"^^<http://www.w3.org/2001/XMLSchema#boolean> ;
fedora:hasParent <http://localhost:8080/fcrepo/rest/> ;
fedora:numberOfChildren "0"^^<http://www.w3.org/2001/XMLSchema#long> .
<http://localhost:8080/fcrepo/rest/fixtures/fcr:export?format=jcr/xml> dc:format <http://fedora.info/definitions/v4/repository#jcr/xml> .
<http://localhost:8080/fcrepo/rest/fixtures> fedora:exportsAs <http://localhost:8080/fcrepo/rest/fixtures/fcr:export?format=jcr/xml> .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment