Closed reederz closed 9 years ago
The example: https://github.com/read-write-web/rww-play/wiki/Curl-Interactions#creating-a-data-resource
After I create a data resource under the base container and issue a GET request to the container, I get different result to the one show in the example (ldp#contains VS ldp#created). This cluster of triples caught my eye:
<> <http://xmlns.com/foaf/0.1/maker> <http://bblfish.net/people/henry/card#me> ; <http://www.w3.org/ns/ldp#contains> <tmp/> , <couch> .
As opposed to the result show in the example:
<> <http://xmlns.com/foaf/0.1/maker> <http://bblfish.net/people/henry/card#me> ; <http://www.w3.org/ns/ldp#created> <card> , <test/> , <couch> .
Test:
[ 3:11PM ] [ justas@choedankal:~/Source/scala/workspace/jolocom/rww-play/test_www(dev✗) ] $ curl -X POST -k -i -H "Content-Type: text/turtle; utf-8" \ > --cert ../eg/test-localhost.pem:test \ > -H "Slug: couch" -d @../eg/couch.ttl https://localhost:8443/2013/ HTTP/1.1 201 Created Location: https://localhost:8443/2013/couch User: https://localhost:8443/2013/card#me Content-Length: 0
[ 3:11PM ] [ justas@choedankal:~/Source/scala/workspace/jolocom/rww-play/test_www(dev✗) ] $ curl -k -i -X GET \ > --cert ../eg/test-localhost.pem:test https://localhost:8443/2013/ HTTP/1.1 200 OK Accept-Patch: application/sparql-update Accept-Post: application/rdf+xml,text/html,text/turtle,image/gif,image/png,text/html,application/javascript,image/jpeg,application/pdf Access-Control-Allow-Origin: * Allow: OPTIONS, GET, HEAD, SEARCH, PUT, DELETE, POST, PATCH Content-Type: text/turtle ETag: "1424873479930|Success(4096)" Last-Modified: Wed, 25 Feb 2015 14:11:19 GMT Link: <http://www.w3.org/ns/ldp#BasicContainer>; rel=type, <http://www.w3.org/ns/ldp#Resource>; rel=type, <.acl>; rel=acl User: https://localhost:8443/2013/card#me Content-Length: 584 <card> <http://www.w3.org/ns/posix/stat#size> 1220 . <> <http://www.w3.org/ns/ldp#contains> <card> . <card> <http://www.w3.org/ns/posix/stat#mtime> 1424105730313 . <> <http://xmlns.com/foaf/0.1/maker> <http://bblfish.net/people/henry/card#me> ; <http://www.w3.org/ns/ldp#contains> <tmp/> , <couch> . <tmp/> a <http://www.w3.org/ns/ldp#BasicContainer> . <couch> <http://www.w3.org/ns/posix/stat#mtime> 1424873479930 ; <http://www.w3.org/ns/posix/stat#size> 866 . <> a <http://www.w3.org/ns/ldp#BasicContainer> . <tmp/> <http://www.w3.org/ns/posix/stat#mtime> 1424873479790 .
Apparently, ldp:contains is the correct form (http://www.w3.org/ns/ldp#contains ). I changed it in the wiki
The example: https://github.com/read-write-web/rww-play/wiki/Curl-Interactions#creating-a-data-resource
After I create a data resource under the base container and issue a GET request to the container, I get different result to the one show in the example (ldp#contains VS ldp#created). This cluster of triples caught my eye:
As opposed to the result show in the example:
Test: