Skip to content

Instantly share code, notes, and snippets.

@br2490
Last active May 25, 2016 13:57
Show Gist options
  • Save br2490/ed8176a112183a7baed0bb4c15debc68 to your computer and use it in GitHub Desktop.
Save br2490/ed8176a112183a7baed0bb4c15debc68 to your computer and use it in GitHub Desktop.

https://gist.github.com/br2490/310a005b02e70cc9a4b6e3190cf55e50#file-object1-ttl

benjamin@IMATS-BROSNER:/tmp/CLAW-issue-258/install$ curl -i -XPOST -H"Content-type: text/turtle" --data-binary "@Object1.ttl" http://localhost:8282/islandora/resource

HTTP/1.1 201 Created Date: Wed, 25 May 2016 13:30:44 GMT Server: Apache/2.4.7 (Ubuntu) ETag: "480c1ebf47bbe7482cff48dcd2d30f76b32cba09" Cache-Control: private, must-revalidate Last-Modified: Wed, 25 May 2016 13:30:45 GMT Location: http://localhost:8080/fcrepo/rest/c1/93/e1/6e/c193e16e-4054-4515-97bc-9f89e366989e Content-Length: 82 Content-Type: text/plain; charset=UTF-8

benjamin@IMATS-BROSNER:/tmp/CLAW-issue-258/install$ curl -i http://localhost:8080/fcrepo/rest/c1/93/e1/6e/c193e16e-4054-4515-97bc-9f89e366989e

HTTP/1.1 200 OK Server: Apache-Coyote/1.1 ETag: "480c1ebf47bbe7482cff48dcd2d30f76b32cba09" Last-Modified: Wed, 25 May 2016 13:30:45 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: 2464 Date: Wed, 25 May 2016 13:52:36 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 ns003: http://www.islandora.ca/ontologies/2016/02/28/isl/v1.0/ . @prefix ns002: http://pcdm.org/models# . @prefix ns001: http://www.semanticdesktop.org/ontologies/2007/03/22/nfo/v1.2/ . @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/c1/93/e1/6e/c193e16e-4054-4515-97bc-9f89e366989e a fedora:Container , fedora:Resource , ns002:Object ; dc:title "Object 1"^^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-05-25T13:30:45.767Z"^^http://www.w3.org/2001/XMLSchema#dateTime ; fedora:lastModified "2016-05-25T13:30:45.767Z"^^http://www.w3.org/2001/XMLSchema#dateTime ; ns001:uuid "17f21a95-9411-4550-88da-4d48546708c1"^^http://www.w3.org/2001/XMLSchema#string ; dc:author "Batch Ingest"^^http://www.w3.org/2001/XMLSchema#string ; 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 ; fedora:exportsAs http://localhost:8080/fcrepo/rest/c1/93/e1/6e/c193e16e-4054-4515-97bc-9f89e366989e/fcr:export?format=jcr/xml .

http://localhost:8080/fcrepo/rest/c1/93/e1/6e/c193e16e-4054-4515-97bc-9f89e366989e/fcr:export?format=jcr/xml dc:format http://fedora.info/definitions/v4/repository#jcr/xml .

GET AND DELETE both fail

benjamin@IMATS-BROSNER:/tmp/CLAW-issue-258/install$ curl -i -XDELETE http://localhost:8282/islandora/resource/17f21a95-9411-4550-88da-4d48546708c1

HTTP/1.1 503 Service Unavailable Date: Wed, 25 May 2016 13:54:47 GMT Server: Apache/2.4.7 (Ubuntu) Cache-Control: no-cache Content-Length: 7308 Connection: close Content-Type: text/html; charset=UTF-8

benjamin@IMATS-BROSNER:/tmp/CLAW-issue-258/install$ curl -i -XPOST http://localhost:8383/islandora/collection

HTTP/1.1 500 Internal Server Error Date: Wed, 25 May 2016 13:38:35 GMT Server: Apache/2.4.7 (Ubuntu) Cache-Control: no-cache X-Powered-By: Islandora Collection REST API v0.0.1 Connection: close Transfer-Encoding: chunked Content-Type: text/html; charset=UTF-8

Blazegraph, using KB

SELECT * WHERE {
  ?s ?p ?o
     }

0 Results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment