Created
November 18, 2017 14:10
-
-
Save namedgraph/5ab0c2c37bcc2e836f4d6476763cc314 to your computer and use it in GitHub Desktop.
Request that produces 406 Not Acceptable
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
#!/bin/bash | |
curl https://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl -H "Accept: application/rdf+xml; charset=UTF-8,application/n-quads; charset=UTF-8,text/rdf+n3; charset=UTF-8,application/n-triples; charset=UTF-8,text/csv; charset=UTF-8,application/ld+json; charset=UTF-8,application/rdf+xml; charset=UTF-8,application/rdf+x-www-form-urlencoded; charset=UTF-8,application/rdf+thrift; charset=UTF-8,text/turtle; charset=UTF-8,application/rdf+json; charset=UTF-8,text/trig; charset=UTF-8" -i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
WebID at its base expects Turtle and/or RDF-Turtle. Your client is asking for rdf/xml.
curl -kI https://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this
HTTP/1.1 200 OK
Server: Virtuoso/08.00.3224 (Linux) x86_64-redhat-linux-gnu-ANALYTICS VDB
Connection: Keep-Alive
Date: Mon, 20 Nov 2017 15:44:57 GMT
Accept-Ranges: bytes
ETag: "4d808c1c03e256cbf369f62cd8b6f6a5"
Last-Modified: Fri, 29 Sep 2017 15:03:55 GMT
Link: https://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl,meta; rel="meta"; title="Metadata File"
Link: https://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl,acl; rel="acl"; title="Access Control File"
Content-Type: text/turtle
Content-Length: 17911
This also works, inline with specs re. RDF-Turtle and JSON-LD:
curl https://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl -H "charset=UTF-8,application/ld+json; charset=UTF-8,text/turtle" -i
This also works:
curl https://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl -H "charset=UTF-8,application/rdf+xml; charset=UTF-8,application/ld+json; charset=UTF-8,text/turtle" -i