W3C home > Mailing lists > Public > semantic-web@w3.org > December 2010

A path language for RDF tighly integrated with Python

From: Pierre-Antoine Champin <swlists-040405@champin.net>
Date: Thu, 02 Dec 2010 11:15:35 +0100
Message-ID: <4CF771C7.9000404@champin.net>
To: Semantic Web <semantic-web@w3.org>
Hi all,

Jeni Tenisson's recent post [1] suggesting that RDF should have a 
standard path language encouraged me to experiment with some ideas that 
I have been having for a while.

The main idea is to implement an XPath-like language for RDF, directly 
*inside* the programming language, meaning that the path is not a 
string, but build using the actual "/" and "[]" operators of the language.

It works pretty well in python, and does not involve a lot of code, as 
demonstrated by [2]. I guess this could easily be ported to other 
languages supporting operator overloading.

This is only a proof of concept, but I think it has some potential (I 
already have several ideas to extend this...), so I put this on 
googlecode. If anybody also thinks it is a good idea, please let me know.

   pa


[1] http://www.jenitennison.com/blog/node/149
[2] http://code.google.com/p/rdf-pypath/source/browse/trunk/rdfpypath.py
Received on Thursday, 2 December 2010 10:16:05 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 21:45:40 GMT