Created
October 28, 2014 22:18
-
-
Save awoods/a8678bbe47b7b09af011 to your computer and use it in GitHub Desktop.
Script of running commands in: https://github.com/fcrepo4/fcrepo4/issues/599
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Script started on Tue 28 Oct 2014 05:48:51 PM EDT | |
~awoods@red:~$ TMPOBJ=http://localhost:8080/rest/$RANDOM | |
~awoods@red:~$ # Create resource | |
~awoods@red:~$ curl -v -X PUT $TMPOBJ && echo | |
* Hostname was NOT found in DNS cache | |
* Trying 127.0.0.1... | |
* Connected to localhost (127.0.0.1) port 8080 (#0) | |
> PUT /rest/12586 HTTP/1.1 | |
> User-Agent: curl/7.35.0 | |
> Host: localhost:8080 | |
> Accept: */* | |
> | |
< HTTP/1.1 201 Created | |
< ETag: "aaf1bde8fc90b94febb6740cee51a2a289d67504" | |
< Last-Modified: Tue, 28 Oct 2014 21:49:16 GMT | |
< Content-Length: 32 | |
< Location: http://localhost:8080/rest/12586 | |
< Content-Type: text/plain | |
* Server Jetty(8.1.11.v20130520) is not blacklisted | |
< Server: Jetty(8.1.11.v20130520) | |
< | |
* Connection #0 to host localhost left intact | |
http://localhost:8080/rest/12586 | |
~awoods@red:~$ curl -v http://localhost:8080/rest/12586 | |
* Hostname was NOT found in DNS cache | |
* Trying 127.0.0.1... | |
* Connected to localhost (127.0.0.1) port 8080 (#0) | |
> GET /rest/12586 HTTP/1.1 | |
> User-Agent: curl/7.35.0 | |
> Host: localhost:8080 | |
> Accept: */* | |
> | |
< HTTP/1.1 200 OK | |
< ETag: "aaf1bde8fc90b94febb6740cee51a2a289d67504" | |
< Last-Modified: Tue, 28 Oct 2014 21:49:16 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,application/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 | |
< Vary: Accept, Range, Accept-Encoding, Accept-Language | |
< Content-Length: 2661 | |
< Content-Type: text/turtle | |
* Server Jetty(8.1.11.v20130520) is not blacklisted | |
< Server: Jetty(8.1.11.v20130520) | |
< | |
@prefix dc: <http://purl.org/dc/elements/1.1/> . | |
@prefix nt: <http://www.jcp.org/jcr/nt/1.0> . | |
@prefix foaf: <http://xmlns.com/foaf/0.1/> . | |
@prefix fcrepo: <http://fedora.info/definitions/v4/repository#> . | |
@prefix ns001: <http://purl.org/dc/terms/> . | |
@prefix test: <info:fedora/test/> . | |
@prefix fedoraconfig: <http://fedora.info/definitions/v4/config#> . | |
@prefix image: <http://www.modeshape.org/images/1.0> . | |
@prefix xs: <http://www.w3.org/2001/XMLSchema> . | |
@prefix xml: <http://www.w3.org/XML/1998/namespace> . | |
@prefix fedorarelsext: <http://fedora.info/definitions/v4/rels-ext#> . | |
@prefix mix: <http://www.jcp.org/jcr/mix/1.0> . | |
@prefix premis: <http://www.loc.gov/premis/rdf/v1#> . | |
@prefix mode: <http://www.modeshape.org/1.0> . | |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
@prefix sv: <http://www.jcp.org/jcr/sv/1.0> . | |
@prefix fedora: <http://fedora.info/definitions/v4/rest-api#> . | |
@prefix xsi: <http://www.w3.org/2001/XMLSchema-instance> . | |
@prefix ldp: <http://www.w3.org/ns/ldp#> . | |
<http://localhost:8080/rest/12586> a ldp:BasicContainer , ldp:Container , ldp:RDFSource ; | |
fcrepo:hasParent <http://localhost:8080/rest/> ; | |
fedora:writable "true"^^<http://www.w3.org/2001/XMLSchema#boolean> . | |
<http://localhost:8080/rest/12586/fcr:export?format=jcr/xml> dc:format <http://fedora.info/definitions/v4/repository#jcr/xml> . | |
<http://fedora.info/definitions/v4/repository#jcr/xml> rdfs:label "jcr/xml"^^<http://www.w3.org/2001/XMLSchema#string> . | |
<http://localhost:8080/rest/12586> fedora:exportsAs <http://localhost:8080/rest/12586/fcr:export?format=jcr/xml> ; | |
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://www.jcp.org/jcr/mix/1.0created> , fedora:resource , fedora:object , <http://www.jcp.org/jcr/mix/1.0created> , <http://www.jcp.org/jcr/mix/1.0lastModified> , <http://www.jcp.org/jcr/mix/1.0referenceable> , fedora:resource ; | |
fcrepo:primaryType "nt:folder"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:created "2014-10-28T21:49:16.753Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ; | |
fcrepo:lastModified "2014-10-28T21:49:16.753Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ; | |
fcrepo:mixinTypes "fedora:resource"^^<http://www.w3.org/2001/XMLSchema#string> , "fedora:object"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:lastModifiedBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:uuid "a2e9829e-354f-4faa-ba19-52b46b7873d7"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:createdBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> . | |
* Connection #0 to host localhost left intact | |
~awoods@red:~$ # Give it a title | |
~awoods@red:~$ curl -X PATCH -H "Content-type: application/sparql-update" --data-binary "insert data { <> <http://purl.org/dc/terms/title> 'title 1' }" $TMPOBJ | |
~awoods@red:~$ curl -v http://localhost:8080/rest/12586 | |
* Hostname was NOT found in DNS cache | |
* Trying 127.0.0.1... | |
* Connected to localhost (127.0.0.1) port 8080 (#0) | |
> GET /rest/12586 HTTP/1.1 | |
> User-Agent: curl/7.35.0 | |
> Host: localhost:8080 | |
> Accept: */* | |
> | |
< HTTP/1.1 200 OK | |
< ETag: "ec86c65d99ae993a0d73d9496a49dffd5805de60" | |
< Last-Modified: Tue, 28 Oct 2014 21:49:43 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,application/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 | |
< Vary: Accept, Range, Accept-Encoding, Accept-Language | |
< Content-Length: 2729 | |
< Content-Type: text/turtle | |
* Server Jetty(8.1.11.v20130520) is not blacklisted | |
< Server: Jetty(8.1.11.v20130520) | |
< | |
@prefix dc: <http://purl.org/dc/elements/1.1/> . | |
@prefix nt: <http://www.jcp.org/jcr/nt/1.0> . | |
@prefix foaf: <http://xmlns.com/foaf/0.1/> . | |
@prefix fcrepo: <http://fedora.info/definitions/v4/repository#> . | |
@prefix ns001: <http://purl.org/dc/terms/> . | |
@prefix test: <info:fedora/test/> . | |
@prefix fedoraconfig: <http://fedora.info/definitions/v4/config#> . | |
@prefix image: <http://www.modeshape.org/images/1.0> . | |
@prefix xs: <http://www.w3.org/2001/XMLSchema> . | |
@prefix xml: <http://www.w3.org/XML/1998/namespace> . | |
@prefix fedorarelsext: <http://fedora.info/definitions/v4/rels-ext#> . | |
@prefix mix: <http://www.jcp.org/jcr/mix/1.0> . | |
@prefix premis: <http://www.loc.gov/premis/rdf/v1#> . | |
@prefix mode: <http://www.modeshape.org/1.0> . | |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
@prefix sv: <http://www.jcp.org/jcr/sv/1.0> . | |
@prefix fedora: <http://fedora.info/definitions/v4/rest-api#> . | |
@prefix xsi: <http://www.w3.org/2001/XMLSchema-instance> . | |
@prefix ldp: <http://www.w3.org/ns/ldp#> . | |
<http://localhost:8080/rest/12586> a ldp:BasicContainer , ldp:Container , ldp:RDFSource ; | |
fcrepo:hasParent <http://localhost:8080/rest/> ; | |
fedora:writable "true"^^<http://www.w3.org/2001/XMLSchema#boolean> . | |
<http://localhost:8080/rest/12586/fcr:export?format=jcr/xml> dc:format <http://fedora.info/definitions/v4/repository#jcr/xml> . | |
<http://fedora.info/definitions/v4/repository#jcr/xml> rdfs:label "jcr/xml"^^<http://www.w3.org/2001/XMLSchema#string> . | |
<http://localhost:8080/rest/12586> fedora:exportsAs <http://localhost:8080/rest/12586/fcr:export?format=jcr/xml> ; | |
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://www.jcp.org/jcr/mix/1.0created> , fedora:resource , fedora:object , <http://www.jcp.org/jcr/mix/1.0created> , <http://www.jcp.org/jcr/mix/1.0lastModified> , <http://www.jcp.org/jcr/mix/1.0referenceable> , fedora:resource ; | |
fcrepo:primaryType "nt:folder"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:created "2014-10-28T21:49:16.753Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ; | |
fcrepo:lastModified "2014-10-28T21:49:43.951Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ; | |
fcrepo:mixinTypes "fedora:resource"^^<http://www.w3.org/2001/XMLSchema#string> , "fedora:object"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
ns001:title "title 1"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:lastModifiedBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:uuid "a2e9829e-354f-4faa-ba19-52b46b7873d7"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:createdBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> . | |
* Connection #0 to host localhost left intact | |
~awoods@red:~$ # call it ver1 | |
~awoods@red:~$ curl -v -X POST -H "Slug: ver1" $TMPOBJ/fcr:versions | |
* Hostname was NOT found in DNS cache | |
* Trying 127.0.0.1... | |
* Connected to localhost (127.0.0.1) port 8080 (#0) | |
> POST /rest/12586/fcr:versions HTTP/1.1 | |
> User-Agent: curl/7.35.0 | |
> Host: localhost:8080 | |
> Accept: */* | |
> Slug: ver1 | |
> | |
< HTTP/1.1 204 No Content | |
< Location: http://localhost:8080/rest/12586/fcr:versions/ver1 | |
* Server Jetty(8.1.11.v20130520) is not blacklisted | |
< Server: Jetty(8.1.11.v20130520) | |
< | |
* Connection #0 to host localhost left intact | |
~awoods@red:~$ curl -v http://localhost:8080/rest/12586/fcr:versions/ver1 | |
* Hostname was NOT found in DNS cache | |
* Trying 127.0.0.1... | |
* Connected to localhost (127.0.0.1) port 8080 (#0) | |
> GET /rest/12586/fcr:versions/ver1 HTTP/1.1 | |
> User-Agent: curl/7.35.0 | |
> Host: localhost:8080 | |
> Accept: */* | |
> | |
< HTTP/1.1 200 OK | |
< ETag: "9051f0b60c99f442201a5483836c1dbefb8681a9" | |
< Last-Modified: Tue, 28 Oct 2014 21:50:14 GMT | |
< Vary: Accept, Range, Accept-Encoding, Accept-Language | |
< Content-Length: 3173 | |
< Content-Type: text/turtle | |
* Server Jetty(8.1.11.v20130520) is not blacklisted | |
< Server: Jetty(8.1.11.v20130520) | |
< | |
@prefix dc: <http://purl.org/dc/elements/1.1/> . | |
@prefix nt: <http://www.jcp.org/jcr/nt/1.0> . | |
@prefix foaf: <http://xmlns.com/foaf/0.1/> . | |
@prefix fcrepo: <http://fedora.info/definitions/v4/repository#> . | |
@prefix ns001: <http://purl.org/dc/terms/> . | |
@prefix test: <info:fedora/test/> . | |
@prefix fedoraconfig: <http://fedora.info/definitions/v4/config#> . | |
@prefix image: <http://www.modeshape.org/images/1.0> . | |
@prefix xs: <http://www.w3.org/2001/XMLSchema> . | |
@prefix xml: <http://www.w3.org/XML/1998/namespace> . | |
@prefix fedorarelsext: <http://fedora.info/definitions/v4/rels-ext#> . | |
@prefix mix: <http://www.jcp.org/jcr/mix/1.0> . | |
@prefix premis: <http://www.loc.gov/premis/rdf/v1#> . | |
@prefix mode: <http://www.modeshape.org/1.0> . | |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
@prefix sv: <http://www.jcp.org/jcr/sv/1.0> . | |
@prefix fedora: <http://fedora.info/definitions/v4/rest-api#> . | |
@prefix xsi: <http://www.w3.org/2001/XMLSchema-instance> . | |
@prefix ldp: <http://www.w3.org/ns/ldp#> . | |
<http://localhost:8080/rest/12586/fcr:versions/87a0a8c317f1e703ea5a22-7226-48f7-a101-7f4de78d599d> a ldp:BasicContainer , ldp:Container , ldp:RDFSource ; | |
fcrepo:hasParent <http://localhost:8080/rest/jcr:system/jcr:versionStorage/ed/7c/36/ed7c3674ee3bf3908c6df75afd186db3672834db/1.0> ; | |
fedora:writable "true"^^<http://www.w3.org/2001/XMLSchema#boolean> . | |
<http://localhost:8080/rest/jcr:system/jcr:versionStorage/ed/7c/36/ed7c3674ee3bf3908c6df75afd186db3672834db/1.0/jcr:frozenNode/fcr:export?format=jcr/xml> dc:format <http://fedora.info/definitions/v4/repository#jcr/xml> . | |
<http://fedora.info/definitions/v4/repository#jcr/xml> rdfs:label "jcr/xml"^^<http://www.w3.org/2001/XMLSchema#string> . | |
<http://localhost:8080/rest/12586/fcr:versions/87a0a8c317f1e703ea5a22-7226-48f7-a101-7f4de78d599d> fedora:exportsAs <http://localhost:8080/rest/jcr:system/jcr:versionStorage/ed/7c/36/ed7c3674ee3bf3908c6df75afd186db3672834db/1.0/jcr:frozenNode/fcr:export?format=jcr/xml> ; | |
a <http://www.jcp.org/jcr/nt/1.0frozenNode> , <http://www.jcp.org/jcr/nt/1.0base> , <http://www.jcp.org/jcr/mix/1.0referenceable> ; | |
fcrepo:primaryType "nt:frozenNode"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:frozenPrimaryType "nt:folder"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:created "2014-10-28T21:49:16.753Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ; | |
fcrepo:frozenMixinTypes "fedora:resource"^^<http://www.w3.org/2001/XMLSchema#string> , "mix:versionable"^^<http://www.w3.org/2001/XMLSchema#string> , "fedora:object"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:lastModified "2014-10-28T21:50:14.819Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ; | |
fcrepo:frozenUuid "a2e9829e-354f-4faa-ba19-52b46b7873d7"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
ns001:title "title 1"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:lastModifiedBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:uuid "87a0a8c317f1e703ea5a22-7226-48f7-a101-7f4de78d599d"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:createdBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> . | |
* Connection #0 to host localhost left intact | |
awoods@red:~$ # change the title - not really, just add another title | |
~awoods@red:~$ curl -v -X PATCH -H "Content-type: application/sparql-update" --data-binary "insert data { <> <http://purl.org/dc/terms/title> 'title 2' }" $TMPOBJ | |
* Hostname was NOT found in DNS cache | |
* Trying 127.0.0.1... | |
* Connected to localhost (127.0.0.1) port 8080 (#0) | |
> PATCH /rest/12586 HTTP/1.1 | |
> User-Agent: curl/7.35.0 | |
> Host: localhost:8080 | |
> Accept: */* | |
> Content-type: application/sparql-update | |
> Content-Length: 61 | |
> | |
* upload completely sent off: 61 out of 61 bytes | |
< HTTP/1.1 204 No Content | |
< ETag: "cf4ff4b1176d35fe389ab672440db0af489ec9bf" | |
< Last-Modified: Tue, 28 Oct 2014 21:51:13 GMT | |
* Server Jetty(8.1.11.v20130520) is not blacklisted | |
< Server: Jetty(8.1.11.v20130520) | |
< | |
* Connection #0 to host localhost left intact | |
~awoods@red:~$ curl -v http://localhost:8080/rest/12586 | |
* Hostname was NOT found in DNS cache | |
* Trying 127.0.0.1... | |
* Connected to localhost (127.0.0.1) port 8080 (#0) | |
> GET /rest/12586 HTTP/1.1 | |
> User-Agent: curl/7.35.0 | |
> Host: localhost:8080 | |
> Accept: */* | |
> | |
< HTTP/1.1 200 OK | |
< ETag: "cf4ff4b1176d35fe389ab672440db0af489ec9bf" | |
< Last-Modified: Tue, 28 Oct 2014 21:51:13 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,application/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 | |
< Vary: Accept, Range, Accept-Encoding, Accept-Language | |
< Content-Length: 3015 | |
< Content-Type: text/turtle | |
* Server Jetty(8.1.11.v20130520) is not blacklisted | |
< Server: Jetty(8.1.11.v20130520) | |
< | |
@prefix dc: <http://purl.org/dc/elements/1.1/> . | |
@prefix nt: <http://www.jcp.org/jcr/nt/1.0> . | |
@prefix foaf: <http://xmlns.com/foaf/0.1/> . | |
@prefix fcrepo: <http://fedora.info/definitions/v4/repository#> . | |
@prefix ns001: <http://purl.org/dc/terms/> . | |
@prefix test: <info:fedora/test/> . | |
@prefix fedoraconfig: <http://fedora.info/definitions/v4/config#> . | |
@prefix image: <http://www.modeshape.org/images/1.0> . | |
@prefix xs: <http://www.w3.org/2001/XMLSchema> . | |
@prefix xml: <http://www.w3.org/XML/1998/namespace> . | |
@prefix fedorarelsext: <http://fedora.info/definitions/v4/rels-ext#> . | |
@prefix mix: <http://www.jcp.org/jcr/mix/1.0> . | |
@prefix premis: <http://www.loc.gov/premis/rdf/v1#> . | |
@prefix mode: <http://www.modeshape.org/1.0> . | |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
@prefix sv: <http://www.jcp.org/jcr/sv/1.0> . | |
@prefix fedora: <http://fedora.info/definitions/v4/rest-api#> . | |
@prefix xsi: <http://www.w3.org/2001/XMLSchema-instance> . | |
@prefix ldp: <http://www.w3.org/ns/ldp#> . | |
<http://localhost:8080/rest/12586> a ldp:BasicContainer , ldp:Container , ldp:RDFSource ; | |
fcrepo:hasParent <http://localhost:8080/rest/> ; | |
fedora:writable "true"^^<http://www.w3.org/2001/XMLSchema#boolean> . | |
<http://localhost:8080/rest/12586/fcr:export?format=jcr/xml> dc:format <http://fedora.info/definitions/v4/repository#jcr/xml> . | |
<http://fedora.info/definitions/v4/repository#jcr/xml> rdfs:label "jcr/xml"^^<http://www.w3.org/2001/XMLSchema#string> . | |
<http://localhost:8080/rest/12586> fedora:exportsAs <http://localhost:8080/rest/12586/fcr:export?format=jcr/xml> ; | |
fedora:hasVersions <http://localhost:8080/rest/12586/fcr:versions> ; | |
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://www.jcp.org/jcr/mix/1.0created> , fedora:resource , <http://www.jcp.org/jcr/mix/1.0versionable> , fedora:object , <http://www.jcp.org/jcr/mix/1.0created> , <http://www.jcp.org/jcr/mix/1.0lastModified> , <http://www.jcp.org/jcr/mix/1.0referenceable> , <http://www.jcp.org/jcr/mix/1.0simpleVersionable> , fedora:resource ; | |
fcrepo:primaryType "nt:folder"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:created "2014-10-28T21:49:16.753Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ; | |
fcrepo:lastModified "2014-10-28T21:51:13.655Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ; | |
fcrepo:mixinTypes "mix:versionable"^^<http://www.w3.org/2001/XMLSchema#string> , "fedora:resource"^^<http://www.w3.org/2001/XMLSchema#string> , "fedora:object"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
ns001:title "title 1"^^<http://www.w3.org/2001/XMLSchema#string> , "title 2"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:lastModifiedBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:uuid "a2e9829e-354f-4faa-ba19-52b46b7873d7"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:createdBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> . | |
* Connection #0 to host localhost left intact | |
~awoods@red:~$ # notice above: ns001:title "title 1"^^<http://www.w3.org/2001/XMLSchema#string> , "title 2"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
~awoods@red:~$ # call it ver2 | |
~awoods@red:~$ curl -v -X POST -H "Slug: ver2" $TMPOBJ/fcr:versions | |
* Hostname was NOT found in DNS cache | |
* Trying 127.0.0.1... | |
* Connected to localhost (127.0.0.1) port 8080 (#0) | |
> POST /rest/12586/fcr:versions HTTP/1.1 | |
> User-Agent: curl/7.35.0 | |
> Host: localhost:8080 | |
> Accept: */* | |
> Slug: ver2 | |
> | |
< HTTP/1.1 204 No Content | |
< Location: http://localhost:8080/rest/12586/fcr:versions/ver2 | |
* Server Jetty(8.1.11.v20130520) is not blacklisted | |
< Server: Jetty(8.1.11.v20130520) | |
< | |
* Connection #0 to host localhost left intact | |
~awoods@red:~$ curl -v http://localhost:8080/rest/12586/fcr:versions/ver2 | |
* Hostname was NOT found in DNS cache | |
* Trying 127.0.0.1... | |
* Connected to localhost (127.0.0.1) port 8080 (#0) | |
> GET /rest/12586/fcr:versions/ver2 HTTP/1.1 | |
> User-Agent: curl/7.35.0 | |
> Host: localhost:8080 | |
> Accept: */* | |
> | |
< HTTP/1.1 200 OK | |
< ETag: "1d77fb16041d24b53665c877c4b1a7238e2432e1" | |
< Last-Modified: Tue, 28 Oct 2014 21:51:13 GMT | |
< Vary: Accept, Range, Accept-Encoding, Accept-Language | |
< Content-Length: 3228 | |
< Content-Type: text/turtle | |
* Server Jetty(8.1.11.v20130520) is not blacklisted | |
< Server: Jetty(8.1.11.v20130520) | |
< | |
@prefix dc: <http://purl.org/dc/elements/1.1/> . | |
@prefix nt: <http://www.jcp.org/jcr/nt/1.0> . | |
@prefix foaf: <http://xmlns.com/foaf/0.1/> . | |
@prefix fcrepo: <http://fedora.info/definitions/v4/repository#> . | |
@prefix ns001: <http://purl.org/dc/terms/> . | |
@prefix test: <info:fedora/test/> . | |
@prefix fedoraconfig: <http://fedora.info/definitions/v4/config#> . | |
@prefix image: <http://www.modeshape.org/images/1.0> . | |
@prefix xs: <http://www.w3.org/2001/XMLSchema> . | |
@prefix xml: <http://www.w3.org/XML/1998/namespace> . | |
@prefix fedorarelsext: <http://fedora.info/definitions/v4/rels-ext#> . | |
@prefix mix: <http://www.jcp.org/jcr/mix/1.0> . | |
@prefix premis: <http://www.loc.gov/premis/rdf/v1#> . | |
@prefix mode: <http://www.modeshape.org/1.0> . | |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
@prefix sv: <http://www.jcp.org/jcr/sv/1.0> . | |
@prefix fedora: <http://fedora.info/definitions/v4/rest-api#> . | |
@prefix xsi: <http://www.w3.org/2001/XMLSchema-instance> . | |
@prefix ldp: <http://www.w3.org/ns/ldp#> . | |
<http://localhost:8080/rest/12586/fcr:versions/87a0a8c317f1e7ed314c9c-fd4b-43ad-b115-bcd38026db9f> a ldp:BasicContainer , ldp:Container , ldp:RDFSource ; | |
fcrepo:hasParent <http://localhost:8080/rest/jcr:system/jcr:versionStorage/ed/7c/36/ed7c3674ee3bf3908c6df75afd186db3672834db/1.1> ; | |
fedora:writable "true"^^<http://www.w3.org/2001/XMLSchema#boolean> ; | |
fedora:exportsAs <http://localhost:8080/rest/jcr:system/jcr:versionStorage/ed/7c/36/ed7c3674ee3bf3908c6df75afd186db3672834db/1.1/jcr:frozenNode/fcr:export?format=jcr/xml> . | |
<http://localhost:8080/rest/jcr:system/jcr:versionStorage/ed/7c/36/ed7c3674ee3bf3908c6df75afd186db3672834db/1.1/jcr:frozenNode/fcr:export?format=jcr/xml> dc:format <http://fedora.info/definitions/v4/repository#jcr/xml> . | |
<http://fedora.info/definitions/v4/repository#jcr/xml> rdfs:label "jcr/xml"^^<http://www.w3.org/2001/XMLSchema#string> . | |
<http://localhost:8080/rest/12586/fcr:versions/87a0a8c317f1e7ed314c9c-fd4b-43ad-b115-bcd38026db9f> a <http://www.jcp.org/jcr/nt/1.0frozenNode> , <http://www.jcp.org/jcr/nt/1.0base> , <http://www.jcp.org/jcr/mix/1.0referenceable> ; | |
fcrepo:primaryType "nt:frozenNode"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:frozenPrimaryType "nt:folder"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:created "2014-10-28T21:49:16.753Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ; | |
fcrepo:frozenMixinTypes "fedora:resource"^^<http://www.w3.org/2001/XMLSchema#string> , "mix:versionable"^^<http://www.w3.org/2001/XMLSchema#string> , "fedora:object"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:lastModified "2014-10-28T21:51:13.655Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ; | |
fcrepo:frozenUuid "a2e9829e-354f-4faa-ba19-52b46b7873d7"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
ns001:title "title 1"^^<http://www.w3.org/2001/XMLSchema#string> , "title 2"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:lastModifiedBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:uuid "87a0a8c317f1e7ed314c9c-fd4b-43ad-b115-bcd38026db9f"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:createdBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> . | |
* Connection #0 to host localhost left intact | |
~awoods@red:~$ # restore ver1 | |
~awoods@red:~$ curl -X PATCH $TMPOBJ/fcr:versions/ver1 | |
* Hostname was NOT found in DNS cache | |
* Trying 127.0.0.1... | |
* Connected to localhost (127.0.0.1) port 8080 (#0) | |
> PATCH /rest/12586/fcr:versions/ver1 HTTP/1.1 | |
> User-Agent: curl/7.35.0 | |
> Host: localhost:8080 | |
> Accept: */* | |
> | |
< HTTP/1.1 204 No Content | |
* Server Jetty(8.1.11.v20130520) is not blacklisted | |
< Server: Jetty(8.1.11.v20130520) | |
< | |
* Connection #0 to host localhost left intact | |
~awoods@red:~$ curl -v http://localhost:8080/rest/12586 | |
* Hostname was NOT found in DNS cache | |
* Trying 127.0.0.1... | |
* Connected to localhost (127.0.0.1) port 8080 (#0) | |
> GET /rest/12586 HTTP/1.1 | |
> User-Agent: curl/7.35.0 | |
> Host: localhost:8080 | |
> Accept: */* | |
> | |
< HTTP/1.1 200 OK | |
< ETag: "649c15cd6114149128e55e27815bb85903b57928" | |
< Last-Modified: Tue, 28 Oct 2014 21:50:14 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,application/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 | |
< Vary: Accept, Range, Accept-Encoding, Accept-Language | |
< Content-Length: 2960 | |
< Content-Type: text/turtle | |
* Server Jetty(8.1.11.v20130520) is not blacklisted | |
< Server: Jetty(8.1.11.v20130520) | |
< | |
@prefix dc: <http://purl.org/dc/elements/1.1/> . | |
@prefix nt: <http://www.jcp.org/jcr/nt/1.0> . | |
@prefix foaf: <http://xmlns.com/foaf/0.1/> . | |
@prefix fcrepo: <http://fedora.info/definitions/v4/repository#> . | |
@prefix ns001: <http://purl.org/dc/terms/> . | |
@prefix test: <info:fedora/test/> . | |
@prefix fedoraconfig: <http://fedora.info/definitions/v4/config#> . | |
@prefix image: <http://www.modeshape.org/images/1.0> . | |
@prefix xs: <http://www.w3.org/2001/XMLSchema> . | |
@prefix xml: <http://www.w3.org/XML/1998/namespace> . | |
@prefix fedorarelsext: <http://fedora.info/definitions/v4/rels-ext#> . | |
@prefix mix: <http://www.jcp.org/jcr/mix/1.0> . | |
@prefix premis: <http://www.loc.gov/premis/rdf/v1#> . | |
@prefix mode: <http://www.modeshape.org/1.0> . | |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
@prefix sv: <http://www.jcp.org/jcr/sv/1.0> . | |
@prefix fedora: <http://fedora.info/definitions/v4/rest-api#> . | |
@prefix xsi: <http://www.w3.org/2001/XMLSchema-instance> . | |
@prefix ldp: <http://www.w3.org/ns/ldp#> . | |
<http://localhost:8080/rest/12586> a ldp:BasicContainer , ldp:Container , ldp:RDFSource ; | |
fcrepo:hasParent <http://localhost:8080/rest/> ; | |
fedora:writable "true"^^<http://www.w3.org/2001/XMLSchema#boolean> . | |
<http://localhost:8080/rest/12586/fcr:export?format=jcr/xml> dc:format <http://fedora.info/definitions/v4/repository#jcr/xml> . | |
<http://fedora.info/definitions/v4/repository#jcr/xml> rdfs:label "jcr/xml"^^<http://www.w3.org/2001/XMLSchema#string> . | |
<http://localhost:8080/rest/12586> fedora:exportsAs <http://localhost:8080/rest/12586/fcr:export?format=jcr/xml> ; | |
fedora:hasVersions <http://localhost:8080/rest/12586/fcr:versions> ; | |
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://www.jcp.org/jcr/mix/1.0created> , fedora:resource , <http://www.jcp.org/jcr/mix/1.0versionable> , fedora:object , <http://www.jcp.org/jcr/mix/1.0created> , <http://www.jcp.org/jcr/mix/1.0lastModified> , <http://www.jcp.org/jcr/mix/1.0referenceable> , <http://www.jcp.org/jcr/mix/1.0simpleVersionable> , fedora:resource ; | |
fcrepo:primaryType "nt:folder"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:created "2014-10-28T21:49:16.753Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ; | |
fcrepo:lastModified "2014-10-28T21:50:14.819Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ; | |
fcrepo:mixinTypes "mix:versionable"^^<http://www.w3.org/2001/XMLSchema#string> , "fedora:resource"^^<http://www.w3.org/2001/XMLSchema#string> , "fedora:object"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
ns001:title "title 1"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:lastModifiedBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:uuid "a2e9829e-354f-4faa-ba19-52b46b7873d7"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:createdBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> . | |
* Connection #0 to host localhost left intact | |
~awoods@red:~$ # notice above only the title found in ver1: ns001:title "title 1"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
~awoods@red:~$ # call it ver3 | |
~awoods@red:~$ curl -X POST -H "Slug: ver3" $TMPOBJ/fcr:versions | |
* Hostname was NOT found in DNS cache | |
* Trying 127.0.0.1... | |
* Connected to localhost (127.0.0.1) port 8080 (#0) | |
> POST /rest/12586/fcr:versions HTTP/1.1 | |
> User-Agent: curl/7.35.0 | |
> Host: localhost:8080 | |
> Accept: */* | |
> Slug: ver3 | |
> | |
< HTTP/1.1 204 No Content | |
< Location: http://localhost:8080/rest/12586/fcr:versions/ver3 | |
* Server Jetty(8.1.11.v20130520) is not blacklisted | |
< Server: Jetty(8.1.11.v20130520) | |
< | |
* Connection #0 to host localhost left intact | |
~awoods@red:~$ curl -v http://localhost:8080/rest/12586/fcr:versions/ver3 | |
* Hostname was NOT found in DNS cache | |
* Trying 127.0.0.1... | |
* Connected to localhost (127.0.0.1) port 8080 (#0) | |
> GET /rest/12586/fcr:versions/ver3 HTTP/1.1 | |
> User-Agent: curl/7.35.0 | |
> Host: localhost:8080 | |
> Accept: */* | |
> | |
< HTTP/1.1 200 OK | |
< ETag: "ce7dbe48644fc9cb86e4120f95c8f5fca3fb9756" | |
< Last-Modified: Tue, 28 Oct 2014 21:50:14 GMT | |
< Vary: Accept, Range, Accept-Encoding, Accept-Language | |
< Content-Length: 3179 | |
< Content-Type: text/turtle | |
* Server Jetty(8.1.11.v20130520) is not blacklisted | |
< Server: Jetty(8.1.11.v20130520) | |
< | |
@prefix dc: <http://purl.org/dc/elements/1.1/> . | |
@prefix nt: <http://www.jcp.org/jcr/nt/1.0> . | |
@prefix foaf: <http://xmlns.com/foaf/0.1/> . | |
@prefix fcrepo: <http://fedora.info/definitions/v4/repository#> . | |
@prefix ns001: <http://purl.org/dc/terms/> . | |
@prefix test: <info:fedora/test/> . | |
@prefix fedoraconfig: <http://fedora.info/definitions/v4/config#> . | |
@prefix image: <http://www.modeshape.org/images/1.0> . | |
@prefix xs: <http://www.w3.org/2001/XMLSchema> . | |
@prefix xml: <http://www.w3.org/XML/1998/namespace> . | |
@prefix fedorarelsext: <http://fedora.info/definitions/v4/rels-ext#> . | |
@prefix mix: <http://www.jcp.org/jcr/mix/1.0> . | |
@prefix premis: <http://www.loc.gov/premis/rdf/v1#> . | |
@prefix mode: <http://www.modeshape.org/1.0> . | |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
@prefix sv: <http://www.jcp.org/jcr/sv/1.0> . | |
@prefix fedora: <http://fedora.info/definitions/v4/rest-api#> . | |
@prefix xsi: <http://www.w3.org/2001/XMLSchema-instance> . | |
@prefix ldp: <http://www.w3.org/ns/ldp#> . | |
<http://localhost:8080/rest/12586/fcr:versions/87a0a8c317f1e7258e5bc3-d91a-4759-b34b-23eaab19405d> a ldp:BasicContainer , ldp:Container , ldp:RDFSource ; | |
fcrepo:hasParent <http://localhost:8080/rest/jcr:system/jcr:versionStorage/ed/7c/36/ed7c3674ee3bf3908c6df75afd186db3672834db/1.1.0> ; | |
fedora:writable "true"^^<http://www.w3.org/2001/XMLSchema#boolean> . | |
<http://localhost:8080/rest/jcr:system/jcr:versionStorage/ed/7c/36/ed7c3674ee3bf3908c6df75afd186db3672834db/1.1.0/jcr:frozenNode/fcr:export?format=jcr/xml> dc:format <http://fedora.info/definitions/v4/repository#jcr/xml> . | |
<http://fedora.info/definitions/v4/repository#jcr/xml> rdfs:label "jcr/xml"^^<http://www.w3.org/2001/XMLSchema#string> . | |
<http://localhost:8080/rest/12586/fcr:versions/87a0a8c317f1e7258e5bc3-d91a-4759-b34b-23eaab19405d> fedora:exportsAs <http://localhost:8080/rest/jcr:system/jcr:versionStorage/ed/7c/36/ed7c3674ee3bf3908c6df75afd186db3672834db/1.1.0/jcr:frozenNode/fcr:export?format=jcr/xml> ; | |
a <http://www.jcp.org/jcr/nt/1.0frozenNode> , <http://www.jcp.org/jcr/nt/1.0base> , <http://www.jcp.org/jcr/mix/1.0referenceable> ; | |
fcrepo:primaryType "nt:frozenNode"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:frozenPrimaryType "nt:folder"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:created "2014-10-28T21:49:16.753Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ; | |
fcrepo:frozenMixinTypes "fedora:resource"^^<http://www.w3.org/2001/XMLSchema#string> , "mix:versionable"^^<http://www.w3.org/2001/XMLSchema#string> , "fedora:object"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:lastModified "2014-10-28T21:50:14.819Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ; | |
fcrepo:frozenUuid "a2e9829e-354f-4faa-ba19-52b46b7873d7"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
ns001:title "title 1"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:lastModifiedBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:uuid "87a0a8c317f1e7258e5bc3-d91a-4759-b34b-23eaab19405d"^^<http://www.w3.org/2001/XMLSchema#string> ; | |
fcrepo:createdBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> . | |
* Connection #0 to host localhost left intact | |
~awoods@red:~$ exit | |
Script done on Tue 28 Oct 2014 05:53:41 PM EDT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment