zazuko / barnard59

An intuitive and flexible RDF pipeline solution designed to simplify and automate ETL processes for efficient data management.
26 stars 2 forks source link

feat(map,filter): additional arguments #326

Open tpluscode opened 2 months ago

tpluscode commented 2 months ago

I extended the map and filter steps with the option to pass any number of additional parameters for the callbacks.

Until now, to parametrise them, one required to use and access the variables. It should now be easier to achieve the same result.

For example, to filter only chunks which are greater than X

[
  base:filter (
    "(chunk, _, minValue) => chunk > minValue"^^code:EcmaScript ;
    "X"^^p:VariableName ;
  ) 
] .
changeset-bot[bot] commented 2 months ago

🦋 Changeset detected

Latest commit: 777ce5375a4ce2b89fffcc15926cb36afbc87b0b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | -------------- | ----- | | barnard59-base | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 85.77%. Comparing base (ad5f176) to head (777ce53).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #326 +/- ## ========================================== + Coverage 85.30% 85.77% +0.47% ========================================== Files 177 177 Lines 7411 7418 +7 Branches 241 241 ========================================== + Hits 6322 6363 +41 + Misses 1087 1055 -32 + Partials 2 0 -2 ``` | [Flag](https://app.codecov.io/gh/zazuko/barnard59/pull/326/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zazuko) | Coverage Δ | | |---|---|---| | [barnard59](https://app.codecov.io/gh/zazuko/barnard59/pull/326/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zazuko) | `80.02% <ø> (ø)` | | | [barnard59-base](https://app.codecov.io/gh/zazuko/barnard59/pull/326/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zazuko) | `49.39% <100.00%> (+0.53%)` | :arrow_up: | | [barnard59-core](https://app.codecov.io/gh/zazuko/barnard59/pull/326/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zazuko) | `92.38% <ø> (+1.40%)` | :arrow_up: | | [barnard59-csvw](https://app.codecov.io/gh/zazuko/barnard59/pull/326/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zazuko) | `69.69% <ø> (+1.21%)` | :arrow_up: | | [barnard59-cube](https://app.codecov.io/gh/zazuko/barnard59/pull/326/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zazuko) | `96.80% <ø> (+1.36%)` | :arrow_up: | | [barnard59-formats](https://app.codecov.io/gh/zazuko/barnard59/pull/326/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zazuko) | `28.17% <ø> (ø)` | | | [barnard59-ftp](https://app.codecov.io/gh/zazuko/barnard59/pull/326/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zazuko) | `97.60% <ø> (ø)` | | | [barnard59-graph-store](https://app.codecov.io/gh/zazuko/barnard59/pull/326/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zazuko) | `95.10% <ø> (ø)` | | | [barnard59-http](https://app.codecov.io/gh/zazuko/barnard59/pull/326/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zazuko) | `89.24% <ø> (+2.15%)` | :arrow_up: | | [barnard59-rdf](https://app.codecov.io/gh/zazuko/barnard59/pull/326/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zazuko) | `94.84% <ø> (ø)` | | | [barnard59-s3](https://app.codecov.io/gh/zazuko/barnard59/pull/326/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zazuko) | `100.00% <ø> (ø)` | | | [barnard59-shacl](https://app.codecov.io/gh/zazuko/barnard59/pull/326/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zazuko) | `80.21% <ø> (ø)` | | | [barnard59-sparql](https://app.codecov.io/gh/zazuko/barnard59/pull/326/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zazuko) | `94.93% <ø> (ø)` | | | [barnard59-validation](https://app.codecov.io/gh/zazuko/barnard59/pull/326/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zazuko) | `97.53% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zazuko#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.