Skip to content

Read the compression of a logical target on its target - #286

Open
maximelefrancois86 wants to merge 1 commit into
RMLio:developmentfrom
maximelefrancois86:target-compression
Open

maximelefrancois86 wants to merge 1 commit into
RMLio:developmentfrom
maximelefrancois86:target-compression

Conversation

@maximelefrancois86

Copy link
Copy Markdown

RML-IO gives rml:compression the domain rml:Target (target-vocabulary.md). Since kg-construct/rml-io 0cb26a2, the test cases RMLTTC0006b-e put it on the target (rml:target [ a rml:Target, rml:FilePath; rml:path "./dump1.nq.gz"; rml:compression rml:gzip ]). TargetFactory.getTarget reads it on the logical target only, so the dump of RMLTTC0006b is written uncompressed.

Change: the compression is read on the targets, else on the logical target as before.

Tests:

  • TargetCompressionTest builds such a target and checks that a gzip stream is written. It fails without the change.
  • The copies of RMLTTC0006b-c in new-test-cases/io are those of the current suite. Note that MapperNewRMLIOTargetTest compares the in-memory stores, so it does not see the compression.
  • zip, tar.xz and tar.gz are not implemented in LocalFileTarget (0006c-e), and neither is UTF-16 (0005b). That is a separate matter.

RML-IO gives rml:compression the domain rml:Target, and the test cases
RMLTTC0006b-e (kg-construct/rml-io, since 0cb26a2) put it on the target: it
was read on the logical target only, and RMLTTC0006b's dump was written
uncompressed. It is now read on the target, else on the logical target as
before. Test: TargetCompressionTest; the copies of RMLTTC0006b-c are those of
the current suite.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant