New RDFlib extension module - TimeFuncs

16 views
Skip to first unread message

Nicholas Car

unread,
Jul 26, 2021, 8:43:16 AM7/26/21
to rdfli...@googlegroups.com
Hi all,

Hot off the back of the 6.0.0 release, I have here a small RDFlib extension module, TimeFuncs (https://github.com/RDFLib/timefuncs) which is just a library of RDFlib-implemented extended SPARQL functions that relate to the Time ontology in OWL (https://www.w3.org/TR/owl-time/).

This library, when shortly completed, will make RDFlib the first implementation of such time functions (Jena & RDF4J are planned) and also show neatly how others may extend RDFlib's SPARQL grammar.

I'll add SPARQL extension notes to the RDFlib 6.0.1 release, due in a week or two (minor docco updates on top of 6.0.0).

Cheers,

Nick

Gunnar Aastrand Grimnes

unread,
Jul 26, 2021, 9:01:07 AM7/26/21
to rdfli...@googlegroups.com
Nice!

Something I often thought about implementing was SPARQL functions for
doing unit conversions based on https://www.qudt.org/ stuff.

I think this is a super demo of "inference" and RDF power - being able
to query for "X in kg/s" etc.

I have no intention or time to do it now - but maybe someone feels inspired ;)

Cheers,
- Gunnar
> --
> 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/CAP7nqh177r0Br1c8AnWudncsd2RX%3DfNjc4tz-auBcTjEangLPw%40mail.gmail.com.



--
http://gromgull.net

Donny Winston

unread,
Jul 26, 2021, 9:55:29 AM7/26/21
to rdfli...@googlegroups.com
and also show neatly how others may extend RDFlib's SPARQL grammar
This is great, Nick. Thank you for seeing timefuncs not pnly as useful on its own, but also as a reference implementation of sorts for others interested in extended SPARQL functions to use with for RDFLib.

Best,
Donny
--
---
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.

--
Donny Winston, PhD (he/him/his) | Polyneme LLC

If I've emailed you, I'd love to speak with you.
Schedule a meeting (15min+): https://meet.polyneme.xyz

Nicholas Car

unread,
Jul 26, 2021, 10:16:40 AM7/26/21
to rdfli...@googlegroups.com
I’m right on it Gunnar, QUDT unit conversion I mean. I’m actually on the Tech Advisory Board of QUDT and am hoping to see QUDT more formally adopted by org such as OGC, se we have QUDT featuring in the new GeoSPARQL Stanford’s version, due out shortly, but am also looking for more ways to make it easier to use and having a conversion function like you suggest has been raised.

Also raised recently was UCUM unit conversion where microformat literals like “10 m” & “30 ft/s^2” are used.

Look out for both here in RDFlib in the next couple of months.

I think RDFlib can lead on these implementations, given the ease of interrogating the queried graph object and also the full Python set of tools available. Much easier to add these extensions in RDFlib than in Jena.

Hats off to the original SPARQL extension function authors!!

Nick


Dr Nicholas Car
Data Systems Architect
SURROUND Australia
0477 560 177
nichol...@surroundaustralia.com

> On 26 Jul 2021, at 11:01 pm, Gunnar Aastrand Grimnes <grom...@gmail.com> wrote:
>
> Nice!
> To view this discussion on the web visit https://groups.google.com/d/msgid/rdflib-dev/CAGm1ODn7yT1P_DwxnOgfwJ7LGAOnPM7izytrkU1zP3rMV8pZAA%40mail.gmail.com.

Gunnar Aastrand Grimnes

unread,
Jul 28, 2021, 4:56:08 AM7/28/21
to rdfli...@googlegroups.com
Nice! So I'm not even preaching to the choir - i AM the choir
attempting to preach to the preacher!

Keep up the good work!

- Gunnar
> To view this discussion on the web visit https://groups.google.com/d/msgid/rdflib-dev/C759A8A2-DCD7-4454-92C2-39C0F6253AD5%40surroundaustralia.com.



--
http://gromgull.net
Reply all
Reply to author
Forward
0 new messages