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!
It works. Thank you very much!