A path language for RDF tighly integrated with Python

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 UTC