RMLio / rmlmapper-java

The RMLMapper executes RML rules to generate high quality Linked Data from multiple originally (semi-)structured data sources
http://rml.io
MIT License
158 stars 61 forks source link

Using RML for Knowledge Graph generation from IoT platform #242

Closed djs0109 closed 1 month ago

djs0109 commented 1 month ago

Hello everyone,

I’m currently working on a research project where I plan to use RML to export knowledge graphs from different IoT platforms. My goal is not to write all the available data into a knowledge graph but rather only to convey the semantic information of the IoT system.

Thanks the RMLMapper, I've already conducted a proof of concept (PoC) using this approach and it seems to be feasible. However, I still have one question before scaling this up for further usage: What are the fundamental advantages of using RML to generate knowledge graphs? Or more specifically, how can the use of RML reduce manual effort while integrating heterogeneous data sources?

In my current workflow, I need to create a separate RML mapping file for each IoT platform, as the data models differ between platforms. To be honest, RML's syntax is somewhat unintuitive, and the mappings files are relatively verbose. As a result, creating each RML mapping file still requires significant manual effort and time, and the resulting mapping files can become quite large.

My concern is that, with the same time and effort, I can (actually I really did) write an ad-hoc mapping program that performs the same function for each IoT platform. Moreover, such a program might even be more compact and "readable" than the equivalent RML mapping file. Although I still believe RML offers a more elegant solution, I’m struggling to answer this question. I would greatly appreciate any insights or discussions on this matter!


Here is an example of my PoC.

djs0109 commented 1 month ago

Closes because I move the question to here https://github.com/kg-construct/rml-questions/discussions/55