Skip to content

Instantly share code, notes, and snippets.

@jcoyne
Created November 4, 2014 20:14
Show Gist options
  • Save jcoyne/7b0c83a7197996a6b049 to your computer and use it in GitHub Desktop.
Save jcoyne/7b0c83a7197996a6b049 to your computer and use it in GitHub Desktop.
HTTP GET (6.43ms) http://localhost:8983/fedora/rest/test/14/68/cd/bf/1468cdbf-35e9-4bd4-9c2f-61e110f6c842
Response status Net::HTTPOK (200)
Response body
@prefix nt: <http://www.jcp.org/jcr/nt/1.0> .
@prefix ns001: <http://purl.org/dc/terms/> .
@prefix fcrepo: <http://fedora.info/definitions/v4/repository#> .
@prefix ns002: <http://projecthydra.org/ns/auth/acl#> .
@prefix test: <info:fedora/test/> .
@prefix ns003: <http://www.w3.org/ns/auth/acl#> .
@prefix ns004: <http://projecthydra.org/ns/relations#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema> .
@prefix mode: <http://www.modeshape.org/1.0> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix ns006: <http://scholarsphere.psu.edu/ns#> .
@prefix ns005: <http://id.loc.gov/vocabulary/relators/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix sv: <http://www.jcp.org/jcr/sv/1.0> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix fedoraconfig: <http://fedora.info/definitions/v4/config#> .
@prefix image: <http://www.modeshape.org/images/1.0> .
@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 xsi: <http://www.w3.org/2001/XMLSchema-instance> .
@prefix fedora: <http://fedora.info/definitions/v4/rest-api#> .
@prefix ldp: <http://www.w3.org/ns/ldp#> .
<http://localhost:8983/fedora/rest/test/14/68/cd/bf/1468cdbf-35e9-4bd4-9c2f-61e110f6c842> a ldp:BasicContainer , ldp:Container , ldp:RDFSource ;
fcrepo:hasParent <http://localhost:8983/fedora/rest/test> ;
fedora:writable "true"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<http://localhost:8983/fedora/rest/test/14/68/cd/bf/1468cdbf-35e9-4bd4-9c2f-61e110f6c842/fcr:export?format=jcr/xml> dc:format <http://fedora.info/definitions/v4/repository#jcr/xml> .
<http://localhost:8983/fedora/rest/test/14/68/cd/bf/1468cdbf-35e9-4bd4-9c2f-61e110f6c842> fedora:exportsAs <http://localhost:8983/fedora/rest/test/14/68/cd/bf/1468cdbf-35e9-4bd4-9c2f-61e110f6c842/fcr:export?format=jcr/xml> .
<http://fedora.info/definitions/v4/repository#jcr/xml> rdfs:label "jcr/xml"^^<http://www.w3.org/2001/XMLSchema#string> .
<http://localhost:8983/fedora/rest/test/14/68/cd/bf/1468cdbf-35e9-4bd4-9c2f-61e110f6c842> 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> ;
fedorarelsext:hasModel "Collection"^^<http://www.w3.org/2001/XMLSchema#string> ;
fcrepo:created "2014-11-04T20:11:30.401Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
fcrepo:lastModified "2014-11-04T20:11:31.163Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
ns001:modified "2014-11-04"^^<http://www.w3.org/2001/XMLSchema#date> ;
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 "c5465868-b1e8-453a-b1e6-7104632ce3f5"^^<http://www.w3.org/2001/XMLSchema#string> ;
ns005:dpt "[email protected]"^^<http://www.w3.org/2001/XMLSchema#string> ;
ns001:dateSubmitted "2014-11-04"^^<http://www.w3.org/2001/XMLSchema#date> ;
fcrepo:createdBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> .
HTTP PATCH (29.32ms) http://localhost:8983/fedora/rest/test/14/68/cd/bf/1468cdbf-35e9-4bd4-9c2f-61e110f6c842
Request body
DELETE {
<> <http://fedora.info/definitions/v4/rels-ext#hasCollectionMember> ?a0 .
<> <http://purl.org/dc/terms/modified> ?a1 .
}
WHERE {
<> <http://fedora.info/definitions/v4/rels-ext#hasCollectionMember> ?a0 .
<> <http://purl.org/dc/terms/modified> ?a1 .
} ;INSERT {
<> <http://fedora.info/definitions/v4/rels-ext#hasCollectionMember> <http://localhost:8983/fedora/rest/test/82/e4/77/d0/82e477d0-3859-4567-86d3-ad00b66d2cae> .
<> <http://purl.org/dc/terms/modified> "2014-11-05"^^<http://www.w3.org/2001/XMLSchema#date> .
}
WHERE { }
Response status Net::HTTPNoContent (204)
HTTP GET (11.43ms) http://localhost:8983/fedora/rest/test/14/68/cd/bf/1468cdbf-35e9-4bd4-9c2f-61e110f6c842
Response status Net::HTTPOK (200)
Response body
@prefix nt: <http://www.jcp.org/jcr/nt/1.0> .
@prefix ns001: <http://purl.org/dc/terms/> .
@prefix fcrepo: <http://fedora.info/definitions/v4/repository#> .
@prefix ns002: <http://projecthydra.org/ns/auth/acl#> .
@prefix test: <info:fedora/test/> .
@prefix ns003: <http://www.w3.org/ns/auth/acl#> .
@prefix ns004: <http://projecthydra.org/ns/relations#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema> .
@prefix mode: <http://www.modeshape.org/1.0> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix ns006: <http://scholarsphere.psu.edu/ns#> .
@prefix ns005: <http://id.loc.gov/vocabulary/relators/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix sv: <http://www.jcp.org/jcr/sv/1.0> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix fedoraconfig: <http://fedora.info/definitions/v4/config#> .
@prefix image: <http://www.modeshape.org/images/1.0> .
@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 xsi: <http://www.w3.org/2001/XMLSchema-instance> .
@prefix fedora: <http://fedora.info/definitions/v4/rest-api#> .
@prefix ldp: <http://www.w3.org/ns/ldp#> .
<http://localhost:8983/fedora/rest/test/14/68/cd/bf/1468cdbf-35e9-4bd4-9c2f-61e110f6c842> a ldp:BasicContainer , ldp:Container , ldp:RDFSource ;
fcrepo:hasParent <http://localhost:8983/fedora/rest/test> ;
fedora:writable "true"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<http://localhost:8983/fedora/rest/test/14/68/cd/bf/1468cdbf-35e9-4bd4-9c2f-61e110f6c842/fcr:export?format=jcr/xml> dc:format <http://fedora.info/definitions/v4/repository#jcr/xml> .
<http://localhost:8983/fedora/rest/test/14/68/cd/bf/1468cdbf-35e9-4bd4-9c2f-61e110f6c842> fedora:exportsAs <http://localhost:8983/fedora/rest/test/14/68/cd/bf/1468cdbf-35e9-4bd4-9c2f-61e110f6c842/fcr:export?format=jcr/xml> .
<http://fedora.info/definitions/v4/repository#jcr/xml> rdfs:label "jcr/xml"^^<http://www.w3.org/2001/XMLSchema#string> .
<http://localhost:8983/fedora/rest/test/14/68/cd/bf/1468cdbf-35e9-4bd4-9c2f-61e110f6c842> 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> ;
fedorarelsext:hasModel "Collection"^^<http://www.w3.org/2001/XMLSchema#string> ;
fcrepo:created "2014-11-04T20:11:30.401Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
fcrepo:lastModified "2014-11-04T20:11:31.312Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
ns001:modified "2014-11-04"^^<http://www.w3.org/2001/XMLSchema#date> , "2014-11-05"^^<http://www.w3.org/2001/XMLSchema#date> ;
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 "c5465868-b1e8-453a-b1e6-7104632ce3f5"^^<http://www.w3.org/2001/XMLSchema#string> ;
ns005:dpt "[email protected]"^^<http://www.w3.org/2001/XMLSchema#string> ;
ns001:dateSubmitted "2014-11-04"^^<http://www.w3.org/2001/XMLSchema#date> ;
fedorarelsext:hasCollectionMember <http://localhost:8983/fedora/rest/test/82/e4/77/d0/82e477d0-3859-4567-86d3-ad00b66d2cae> ;
fcrepo:createdBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment