Skip to content

Add the set of tests for producer with N-triples following RDF 1.1#55

Merged
Ostrzyciel merged 2 commits intomainfrom
test-cases-producer-1
Apr 16, 2025
Merged

Add the set of tests for producer with N-triples following RDF 1.1#55
Ostrzyciel merged 2 commits intomainfrom
test-cases-producer-1

Conversation

@adanilenka
Copy link
Collaborator

The test set draws from https://www.w3.org/2013/N-TriplesTests/
But focuses only on core things that make sense in the encoding: terms, datatypes, string literals.

Initially, there was also a test with comments, but as comments are not mentioned in the rdf 1.1, the test was omitted.

@adanilenka adanilenka requested a review from Ostrzyciel April 16, 2025 12:40
Copy link
Member

@Ostrzyciel Ostrzyciel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Please confirm that you wrote those test cases by yourself, only being inspired by the spec. We can't have copy-paste here, it'd violate the licensing thingy.
  • I'd suggest to keep to the same naming convention of RDF files as in from_jelly tests. So, instead of in.nt, have in_001.nt. The reason is that we want cases for multiple input frames (please add such cases in follow-up PRs).
  • I would still include out.jelly as reference. This will be useful later for validation, because the jelly stream could be used as the comparison. This would be esp. important when we have multiple input files. Better have one file to compare to, rather than a dozen.
  • Follow-up PRs: please add test cases checking if UTF-8 strings are supported, not just ASCII, because the Jelly spec says so.

@adanilenka
Copy link
Collaborator Author

adanilenka commented Apr 16, 2025

by inspired, I meant the part of the RDF 1.1 under test, not specific triples/file content, e.g., "blank node as a subject", so it is more about what must be considered in the test cases

the insides of .nt files are just example.org abstract stuff

@Ostrzyciel
Copy link
Member

by inspired, I meant the part of the RDF 1.1 under test, not specific triples/file content, e.g., "blank node as a subject", so it is more about what must be considered in the test cases

the insides of .nt files are just example.org abstract stuff

perfect, thank you. Needed to make sure for legal reasons. Please forgive me. 🙇

@adanilenka adanilenka requested a review from Ostrzyciel April 16, 2025 13:29
@Ostrzyciel Ostrzyciel merged commit 9fbc6e5 into main Apr 16, 2025
10 checks passed
@Ostrzyciel Ostrzyciel deleted the test-cases-producer-1 branch April 16, 2025 13:40
@Ostrzyciel
Copy link
Member

Issue: #39

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.

2 participants