Composing Sparql Queries

111 views
Skip to first unread message

pawan kumar

unread,
Feb 29, 2020, 11:55:35 AM2/29/20
to rdflib-dev
Hi,

How do we compose SPARQL Queries of various kinds (SELECT, CONSTRUCT, ASK etc). 
I read RDFExtras (https://rdfextras.readthedocs.io/en/latest/sparql/detailed_description.html) had tools like SPARQLGraph, GraphPattern etc, but rdfextras got deprecated, and I can't find similar objects and methods in rdflib. I suppose SPARQLWrapper may have such constructs, but I am unable to find it either. 

Please Help.

Regards.
Pawan Kumar
Research Scholar at CSE IIT Delhi. 

Nicholas Car

unread,
Mar 5, 2020, 11:35:37 PM3/5/20
to rdfli...@googlegroups.com
If you mean compose queries to put them to a local graph, see https://rdflib.readthedocs.io/en/stable/intro_to_sparql.html

If you mean compose queries to pst them to a remote SPARQL endpoint, then yes, see SPARQLWrapper.

Cheers,

Nick


--
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 rdflib-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rdflib-dev/b7c630a3-995b-44e1-9ed6-0bd71ca6471f%40googlegroups.com.

______________________________________________________________________________________
 
Dr Nicholas Car
Data Systems Architect
SURROUND Australia Pty Ltd
Address P.O. Box 86, Mawson, Canberra ACT 2607
Phone  +61 477 560 177
Email  nichol...@surroundaustralia.com
Website  https://surroundaustralia.com

Enhancing Intelligence Within Organisations
delivering evidence that connects decisions to outcomes






Nicholas Car

unread,
Mar 12, 2020, 8:19:16 PM3/12/20
to rdfli...@googlegroups.com
Dear rdflib devs,


New maintainers
----------------------
Ashley Sommer (@ashleysommer), Natanael Arndt (@white-gecko) and I (@nicholascar) have just taken over as rdflib repository maintainers from Gunnar & Jörn.

Thank you to Gunnar & Jörn for vey many years of maintaining this very important project! I won’t have been able to do my last couple of jobs without you!


5.0.0 & 6.0.0 releases
-----------------------------
We are aiming to release the current master branch of rdflib as a 5.0.0 release shortly - by the end of March - and then will work towards a larger 6.0.0 release by about the end of June.

This is an open call to you all on this list to make yourselves known to us maintainers if you’re interested in the larger task of working towards that 6.0.0 release. I’ve already contacted some of the more recently active developers among you to see if you’re interested and I’ve received good responses.

Just to recap:

5.0.0 - current master as a release. No more major PRs merged.

6.0.0 - a major new release with the following breaking changes planned:
- no support for Python 2
- no support for <= Python 3.4
- likely support for RDF*/SPARQL* (if current PRs are completed)
- identifiers for graphs, not objects (if discussion on PR is completed)
- new RDF kernel options, likely available via plugin (see PR 796)
- potential refactoring of codebase and code style updates

We will announce the releases here as the appear.


RDFlib strategy
---------------------
The new maintainers discussed strategic direction for the RDFlib entire family of repositories and we’ve preliminarily come up with this goal:

> To provide, in one place, Python tools for everything do with RDF and related things

We’d therefore like to bring other RDF Python repos into the RDFlib family, and we know repos exist for:

* reading HDT (RDF binary files)
* parsing OWL Functional Syntax
* OWL modelling in Python

We will start discussing with those repository creators about bringing them in.

We will also likely move OWL functionality form multiple repos into a new ‘owllib' repository that will build on the current OWL-RL repo but will include OWL syntax parsers such as Functional and Manchester Syntax. We might also move some OWL-only functionality out of rdflib into owllib to keen the core rdflib repo tidy.


Your thoughts
-------------------
If any of the plans here worry you or if you’d like to add more things in, and if you want to be involved, please let us know either on this mailing list or directly, we’d love to know you care!


Regards,

Nicholas, Ashley & Natanael

nichol...@surroundaustrlai.com
ashley...@gmail.com
ar...@informatik.uni-leipzig.de

Nicholas Car

unread,
Mar 13, 2020, 4:01:34 AM3/13/20
to rdfli...@googlegroups.com

Sergio Fernández

unread,
Mar 16, 2020, 10:16:00 AM3/16/20
to rdfli...@googlegroups.com
Great to see new people continuing with the work here. Let us know how the old folks can help with something.

Cheers,

--
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 rdflib-dev+...@googlegroups.com.

Nicholas Car

unread,
Mar 16, 2020, 7:51:44 PM3/16/20
to rdfli...@googlegroups.com
Hi Sergio,

Thanks for the cheering on! 

We’re fine for the 5.0.0 release but when we go to the community after that, so in about a fortnight, for people’s interests for the 6.0.0 release, that would be when we’d love to hear from you and everyone about what you’d love to see in a Python3-only and tidied-up version of rdflib? For some ideas: 

* do you agree with moving all OWL functionality out of rdflib (the core) into a new owllib repo?
* should RDF*/SPARQL* be in rdflib (core) or a plugin?
* do you work with any RDF things not catered for by the toolkit, perhaps Linked Data Fragments, the HDT file format etc.

Of course, any bug that hassle you should be restated as still being important to fix!

We’ll be in touch soon!

Cheers,

Nick

Carlos Tejo

unread,
Mar 22, 2020, 4:27:27 AM3/22/20
to rdfli...@googlegroups.com
Hi all,

It is really nice to see how the project evolves and new people join it and take the lead. And thanks to the previous maintainers!

I hope that I can still help a little in the part of SPARQLWrapper :)

Best,

Carlos Tejo


Reply all
Reply to author
Forward
0 new messages