zazuko / elcom-strompreis-poc

PoC ElCom Strompreise LD
0 stars 0 forks source link

added calc pipeline #3

Closed bergos closed 4 years ago

bergos commented 4 years ago

This PR adds the pipeline to calculate the median values. The calcSource.js runs the SPARQL queries on the geo and bar endpoints, combines them, does the median calculation and returns the result as Quad Stream. Maybe the namespaces of the Quads need to be changed. The namespace factories are defined close to the top of the file, the quads almost at the end. The Turtle file for the pipelines contains already two pipelines, one to generate a file on the local file system, the other to use the Graph Store protocol to upload the data directly into the endpoint. The upload pipeline requires more variables, which are not yet prepared, cause it requires variables like user and password. A script was added to the package.json to run the file pipeline via npm.

ktk commented 4 years ago

Thanks, this implements #2 . I've merged it to master after some refactoring. Closing this one.