You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rdflib-dev
Hi all,
I'd like to use SPARQLWrapper to query an endpoint that requires authorization. Sadly, the authorization is form based, so I need to fetch an initial cookie, post username/password and then hold on to that cookie for every subsequent query. I don't see an easy way to do this. Is there an example floating around that might be of help to me?
Thanks,
Adam
Gunnar Aastrand Grimnes
unread,
Nov 1, 2018, 4:46:16 AM11/1/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rdfli...@googlegroups.com
If you use the soon to be released 5.0.0 of RDFLib (i.e. head of git
master) and you need a Graph and not just a query, you can do:
import rdflib
from rdflib.plugins.stores.sparqlstore import SPARQLStore
import requests
r = requests.post( ... whatever ...)
jar = r.cookies