You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does rdflib parse link headers? Probably not. If not then below is a Link header parser written by deiu. It should probably be added to rdflib.js so that the graph with the links can show them. Is there in fact one graph per request made? ( otherwise adding triples like that to a graph could end up confusing )
16:25 bblfish: I wrote a Link header parser in javascript: https://gist.github.com/deiu/9335803
16:26 bblfish: can it work with more than one link relation per Link?
16:27 deiu: Yes
16:27 bblfish: I mean deal with the following
16:27 bblfish: $ curl -I --cert ../eg/test-localhost.pem:test -k https://localhost:8443/2013/card
16:27 bblfish: HTTP/1.1 200 OK
16:27 bblfish: Access-Control-Allow-Origin: *
16:27 bblfish: Allow: OPTIONS, GET, HEAD
16:27 bblfish: Content-Type: text/turtle
16:27 bblfish: Accept-Patch: application/sparql-update
16:27 bblfish: Link: <card.acl>; rel=acl, <http://www.w3.org/ns/ldp#Resource>; rel=type
16:27 bblfish: Content-Length: 0
16:27 deiu: You do: var links = parseLinkHeader(xhr.getResponseHeader('Link'));
16:28 deiu: and then: links['acl']['href'] outputs card.ac
16:28 deiu: card.acl
The text was updated successfully, but these errors were encountered:
Does rdflib parse link headers? Probably not. If not then below is a Link header parser written by deiu. It should probably be added to rdflib.js so that the graph with the links can show them. Is there in fact one graph per request made? ( otherwise adding triples like that to a graph could end up confusing )
The text was updated successfully, but these errors were encountered: