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.
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 thepackage.json
to run the file pipeline via npm.