gjhiggins/rdfextras — Issue #14: sparql langMatches missing
Author: gjhiggins
Created: 2011-10-19 02:59:38+00:00
State: open

Originally filed by joernh...@gmail.com on 2010-11-08T11:50:11

If I use langMatches [1] in a sparql query I get this error:

Traceback (most recent call last):
File "blablabla.py", line 150, in
res = graph.query(printq)
File "/usr/local/lib/python2.6/dist-packages/rdflib-3.0.0-py2.6.egg/rdflib/graph.py", line 770, in query
return result(processor.query(query_object))
File "/usr/local/lib/python2.6/dist-packages/rdfextras-0.1a-py2.6.egg/rdfextras/sparql/processor.py", line 43, in query
extensionFunctions=extensionFunctions)
File "/usr/local/lib/python2.6/dist-packages/rdfextras-0.1a-py2.6.egg/rdfextras/sparql/algebra.py", line 360, in TopEvaluate
result = expr.evaluate(tripleStore,passedBindings,query.prolog)
File "/usr/local/lib/python2.6/dist-packages/rdfextras-0.1a-py2.6.egg/rdfextras/sparql/algebra.py", line 929, in evaluate
left = self.left.evaluate(tripleStore,initialBindings,prolog)
File "/usr/local/lib/python2.6/dist-packages/rdfextras-0.1a-py2.6.egg/rdfextras/sparql/algebra.py", line 948, in evaluate
_ExpandLeftJoin(b,self.right,tripleStore,prolog)
File "/usr/local/lib/python2.6/dist-packages/rdfextras-0.1a-py2.6.egg/rdfextras/sparql/algebra.py", line 866, in _ExpandLeftJoin
optTree.topLevelExpand(expression.constraints, prolog)
File "/usr/local/lib/python2.6/dist-packages/rdfextras-0.1a-py2.6.egg/rdfextras/sparql/query.py", line 450, in topLevelExpand
self.expand(constraints)
File "/usr/local/lib/python2.6/dist-packages/rdfextras-0.1a-py2.6.egg/rdfextras/sparql/query.py", line 545, in expand
self.expandAtClient(constraints)
File "/usr/local/lib/python2.6/dist-packages/rdfextras-0.1a-py2.6.egg/rdfextras/sparql/query.py", line 668, in expandAtClient
child.expand(constraints)
File "/usr/local/lib/python2.6/dist-packages/rdfextras-0.1a-py2.6.egg/rdfextras/sparql/query.py", line 545, in expand
self.expandAtClient(constraints)
File "/usr/local/lib/python2.6/dist-packages/rdfextras-0.1a-py2.6.egg/rdfextras/sparql/query.py", line 680, in expandAtClient
if func(self.bindings) == False :
File "", line 1, in
AttributeError: 'module' object has no attribute 'langmatches'

[1]: http://www.w3.org/TR/rdf-sparql-query/#func-langMatches