Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch operation #241

Merged
merged 5 commits into from
Jan 15, 2024
Merged

Batch operation #241

merged 5 commits into from
Jan 15, 2024

Conversation

giacomociti
Copy link
Contributor

I think a batch operation can be useful and it belongs to the base package because it's a kind of inverse of flatten.

@prefix p: <https://pipeline.described.at/> .
@prefix base: <https://barnard59.zazuko.com/operations/base/> .
@prefix n3: <https://barnard59.zazuko.com/operations/formats/n3/> .
@prefix ntriples: <https://barnard59.zazuko.com/operations/formats/ntriples/> .

<echo> a p:Pipeline , p:Readable;
  p:steps
    [
      p:stepList
      (
        [ base:stdin () ]
        [ n3:parse () ]
       
        [ base:batch (100) ]
        [ base:flatten () ]

        [ ntriples:serialize () ]
      )
    ]
.

Copy link

changeset-bot bot commented Dec 21, 2023

🦋 Changeset detected

Latest commit: a133ac1

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

This PR includes changesets to release 2 packages
Name Type
barnard59-base Minor
barnard59-cube Patch

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-commenter
Copy link

codecov-commenter commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3790ada) 84.77% compared to head (a133ac1) 84.76%.
Report is 56 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #241      +/-   ##
==========================================
- Coverage   84.77%   84.76%   -0.02%     
==========================================
  Files         161      161              
  Lines        5814     5809       -5     
  Branches      100      100              
==========================================
- Hits         4929     4924       -5     
  Misses        883      883              
  Partials        2        2              
Flag Coverage Δ
barnard59 79.22% <ø> (ø)
barnard59-base 40.77% <100.00%> (+3.29%) ⬆️
barnard59-core 91.57% <ø> (ø)
barnard59-csvw 80.21% <ø> (ø)
barnard59-cube 96.72% <ø> (-0.16%) ⬇️
barnard59-formats 32.63% <ø> (ø)
barnard59-ftp 85.38% <ø> (ø)
barnard59-graph-store 94.65% <ø> (ø)
barnard59-http 87.50% <ø> (ø)
barnard59-rdf 93.89% <ø> (ø)
barnard59-s3 96.02% <ø> (ø)
barnard59-shacl 60.14% <ø> (ø)
barnard59-sparql 82.60% <ø> (ø)
barnard59-validation 97.53% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

.changeset/young-geese-teach.md Show resolved Hide resolved
packages/base/batch.js Outdated Show resolved Hide resolved
packages/cube/pipeline/check-observations.ttl Show resolved Hide resolved
Co-authored-by: Tomasz Pluskiewicz <tpluscode@users.noreply.github.com>
@giacomociti giacomociti merged commit 7456a6a into master Jan 15, 2024
29 checks passed
@giacomociti giacomociti deleted the batch-operation branch January 15, 2024 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants