So, I finally got it working with both requests and SPARQLWrapper, and deployed a test copy at https://test.pypi.org/project/sparql-endpoint-fixture/. Also changed the license to BSD-3. Look over the docs, and if you don't see any glaring holes, we can migrate it into the RDFlib repo and push to the release PyPi. I am guessing that the GitHub Action currently verifying and pushing to PyPi will have to be adjusted to follow RDFlib conventions.
On Monday, August 9, 2021 at 2:49:27 AM UTC-4 [email protected] wrote: > Great Boris. You can bump the dependency from rdflib>5.0.0 to > rdflib>=6.0.0! > > If you want to add this to the RDFlib family of repositories, like your > pyTARQL, please let me know and I'll create a repo for you. If you do > though, could you convert to a BSD 3-clause license? That would keep the > license the same as the main RDFlib license. and preferably the same change > for pyTARQL! > > Thanks, > > Nick > > On Thu, Aug 5, 2021 at 6:55 AM Boris Pelakh <[email protected]> wrote: > >> I have the initial skeleton built ( >> https://github.com/sa-bpelakh/sparql-endpoint-fixture), but ran into an >> issue with requests_mock (see >> https://stackoverflow.com/questions/68655684/mocked-urls-not-being-forward-to-handler-when-using-requests-mock-in-another-fix). >> >> I will continue on it as I get bandwidth, still need to add the graph >> protocol functionality as well as figure out how to inject >> externally-provided 'from <graph>' and 'from named <graph>' into queries. >> >> On Tuesday, August 3, 2021 at 6:54:18 AM UTC-4 >> [email protected] wrote: >> >>> Hi Boris, I have not done this but I think it would be a very handy >>> thing to have, so count me in on assisting with rebuilding, if noone has >>> one to directly reuse. >>> >>> Nick >>> >>> On Tue, Aug 3, 2021 at 12:23 AM Boris Pelakh <[email protected]> wrote: >>> >>>> I wrote once a pytest fixture >>>> <https://docs.pytest.org/en/6.2.x/fixture.html> that intercepted HTTP >>>> requests and emulated a SPARQL endpoint for use in unit tests using an >>>> in-memory RDFLIB Graph. Unfortunately that code is no longer accessible >>>> (buried inside a proprietary app), and before I reproduced the work, I was >>>> wondering if anyone else has created a similar beast. >>>> >>>> -- >>>> http://github.com/RDFLib >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "rdflib-dev" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/rdflib-dev/711590fb-b2c9-42dc-a5a1-cd68860ee335n%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/rdflib-dev/711590fb-b2c9-42dc-a5a1-cd68860ee335n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- >> http://github.com/RDFLib >> --- >> You received this message because you are subscribed to the Google Groups >> "rdflib-dev" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/rdflib-dev/e9e4866d-61a0-4203-92a9-1403552a075an%40googlegroups.com >> >> <https://groups.google.com/d/msgid/rdflib-dev/e9e4866d-61a0-4203-92a9-1403552a075an%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- http://github.com/RDFLib --- You received this message because you are subscribed to the Google Groups "rdflib-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rdflib-dev/f6780b7f-50fd-4601-adab-0d18232fe7e8n%40googlegroups.com.
