I wanted to use the RDFLib for SPARQL 1.1 Queries which should be supported.
I have a file in JSON-LD and simple SELECT query works fine. But when I add a  
FILTER REGEX, the result is zero size and also no error. 
Here is my code (abstracted):

g = Graph()
g.parse("myontology.owl", format="json-ld")
result = g.query(
    """SELECT ?func
    WHERE { ?func rdf:type mo:Function .
    FILTER REGEX (?func, "off", "i").}""",
    initNs={"mo": "http://mynamespace#"})
for row in result:
    print("%s " % row)

What is wrong with the FILTER REGEX? 
I didn't find a good documentation how to use SPARQL Algebra in RDFLib. 
Thank you for help!

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rdflib-dev/c0c60111-4d8e-4edf-95ed-0e123785b108%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to