KGConf / BookClub-Designing-BuildingEnterpriseKG

This is the Github Repository for the Knowledge Graph Conference Book Club around the book " Designing and Building Enterprise Knowledge Graphs: Synthesis Lectures on Data, Semantics, and Knowledge" with Juan Sequeda and Ora Lassila
3 stars 0 forks source link

R2RML -> RML -> arbitrary code? #18

Closed dwinston closed 2 years ago

dwinston commented 2 years ago

I realize that R2RML is a standard for mapping from a relational database to triples via SQL queries.

I realize also that RML is an unofficial extension of R2RML to support sourcing other than through SQL queries (e.g. JSONPath for sourcing from JSON files).

Are there existing tools to help source from "arbitary" sources via code? A concrete use case that interests me: pointing to a reference to a Python function that, when called, will produce rows of output indistinguishable to what an equivalent SQL query would produce, but of course what is run is Python code and not SQL.

dwinston commented 2 years ago

@xeniacs thank you for pointing me to SPARQL Anything. Could be useful.

dwinston commented 2 years ago

was addressed during the call.

dwinston commented 2 years ago

https://github.com/chrdebru/r2rml (mentioned by @rdfguy in #14) claims to implement "R2RML-F",

allowing one to declare and use functions in ECMAScript as (Function Valued) TermMaps in the mapping. R2RML-F extends R2RML's vocabulary with predicates for declaring functions, function calls and parameter bindings.

paper ("R2RML-F: Towards Sharing and Executing Domain Logic in R2RML Mappings"): https://chrdebru.github.io/papers/2016-ldow-preprint.pdf.

This is the kind of prior art I was looking for!