Skip to content

Instantly share code, notes, and snippets.

@jcoyne
Created November 3, 2014 16:08
Show Gist options
  • Save jcoyne/aa3fe9ca336fc699ec7b to your computer and use it in GitHub Desktop.
Save jcoyne/aa3fe9ca336fc699ec7b to your computer and use it in GitHub Desktop.
HTTP POST (8.92ms) http://localhost:8983/fedora/rest/test
Request body
[ <http://fedora.info/definitions/v4/rels-ext#hasModel> "BarHistory2"] .
Response status Net::HTTPCreated (201)
Response body http://localhost:8983/fedora/rest/test/63/c7/01/30/63c70130-1102-4127-be9f-b6f5d00a8fd2
HTTP GET (7.23ms) http://localhost:8983/fedora/rest/test/63/c7/01/30/63c70130-1102-4127-be9f-b6f5d00a8fd2
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 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/63/c7/01/30/63c70130-1102-4127-be9f-b6f5d00a8fd2> 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> ;
fedora:exportsAs <http://localhost:8983/fedora/rest/test/63/c7/01/30/63c70130-1102-4127-be9f-b6f5d00a8fd2/fcr:export?format=jcr/xml> .
<http://localhost:8983/fedora/rest/test/63/c7/01/30/63c70130-1102-4127-be9f-b6f5d00a8fd2/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:8983/fedora/rest/test/63/c7/01/30/63c70130-1102-4127-be9f-b6f5d00a8fd2> 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-11-03T16:06:36.395Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
fcrepo:lastModified "2014-11-03T16:06:36.395Z"^^<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 "a5e4b76c-aa54-4cd7-bca1-4716afe46602"^^<http://www.w3.org/2001/XMLSchema#string> ;
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