w3c / sparql-dev

SPARQL dev Community Group
https://w3c.github.io/sparql-dev/
Other
121 stars 19 forks source link

SPARQL Function #52

Open ocorby opened 5 years ago

ocorby commented 5 years ago

Extension function definition based on SPARQL filter language

Previous work

Linked Data Script Language: http://ns.inria.fr/sparql-extension

Proposed solution

select * where { ?x ?p ?y filter us:test(?x) }

function us:test(?x) { strstarts(str(?x), rdf:) || strstarts(str(?x), rdfs:) }

lisp commented 5 years ago

much preferred would be general term rewriting.