Skip to content

Fix compare-frame-indices option in rdf validate #90

@adanilenka

Description

@adanilenka

Given: a valid jelly file with 3 frames.

Sample input (end of frames marked for the multi-file split, if necessary):

<http://example.org/resource/r1> <http://example.org/property/p1> <http://example.org/resource/r2> .
<http://example.org/resource/r3> <http://example.org/property/p2> <http://example.org/resource/r4> .

_:b1 <http://example.org/property/p4> "2000"^^<http://www.w3.org/2001/XMLSchema#integer> .
_:b1 <http://example.org/property/p3> "0.009"^^<http://www.w3.org/2001/XMLSchema#float> . ///end of frame 1

<http://example.org/resource/r1>  <http://example.org/property/p4> "100"^^<http://www.w3.org/2001/XMLSchema#integer> .
<http://example.org/resource/r2>  <http://example.org/property/p3> "90"^^<http://www.w3.org/2001/XMLSchema#integer> .
<http://example.org/resource/r3>  <http://example.org/property/p4> "0.1"^^<http://www.w3.org/2001/XMLSchema#float> .
<http://example.org/resource/r3>  <http://example.org/property/p4> "0.1"^^<http://www.w3.org/2001/XMLSchema#float> .

<http://example.org/resource/r5> <http://example.org/property/p5> <http://example.org/resource/r7> .
<http://example.org/resource/r6> <http://example.org/property/p6> <http://example.org/resource/r8> .
<http://example.org/resource/r9> <http://example.org/property/p7> <http://example.org/resource/r10> .  ///end of frame 2

<http://example.org/resource/r2>  <http://example.org/property/p1>  <http://example.org/resource/r3> .
_:b1  <http://example.org/property/p2> "18000"^^<http://www.w3.org/2001/XMLSchema#integer> .  ///end of frame 3

Query to generate the respective .jelly file from one input file above:
jelly-cli rdf to-jelly ./in.nt --to ./in.jelly --opt.generalized-statements=true --opt.rdf-star=false --opt.max-name-table-size=8 --opt.max-prefix-table-size=0 --opt.max-datatype-table-size=4 --rows_per_frame=14

for frame 0, the rdf validate command works with no issues:
jelly-cli rdf validate ./in.jelly --compare-to-rdf-file ./out_001.nt --compare-frame-indices=0 --compare-ordered --delimited='true'

for frame 1, using
jelly-cli rdf validate ./in.jelly --compare-to-rdf-file ./out_002.nt --compare-frame-indices=1 --compare-ordered --delimited='true' --debug results in

Image

Duplicating stream options in the beginning of the second frame leads to:

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions