fertapric/RDF.py — Issue #5: SPARQL example
Author: nosliw
Created: 2011-12-19 17:46:12+00:00
State: open

Many thanks for your code. I'm still learning how RDFlib works and your code has been extremely helpful (especially with all the new versions and movements to rdfextras).

I've been trying to run your SPARQL example (in the examples folder) and I've encountered the following error message:

Traceback (most recent call last):
File "C:\Documents and Settings\Desktop\fertapric-RDF.py-f486d11\examples\SPARQL.py", line 38, in
for (nameA, nameB) in graph.query(query).serialize('python'):
File "C:\Python27\lib\site-packages\rdflib\graph.py", line 793, in query
processor = plugin.get(processor, query.Processor)(self)
File "C:\Python27\lib\site-packages\rdflib\plugin.py", line 92, in get
return p.getClass()
File "C:\Python27\lib\site-packages\rdflib\plugin.py", line 55, in getClass
module = __import__(self.module_path, globals(), locals(), [""])
File "C:\Python27\lib\site-packages\rdfextras\sparql\processor.py", line 2, in
import rdfextras.sparql.parser
File "C:\Python27\lib\site-packages\rdfextras\sparql\parser.py", line 5, in
from pyparsing import (Regex, Suppress, Combine, Optional, CaselessKeyword,
ImportError: No module named pyparsing

I apologize in advance if this seems like a beginner's question; I really am a newbie. What is this "pyparsing" module? What updates to your code would I need to make in order to be able to run SPARQL queries on my SQLite database?

Thanks!