w3c / json-ld-api

JSON-LD 1.1 Processing Algorithms and API Specification
https://w3c.github.io/json-ld-api/
Other
76 stars 29 forks source link

toRdf/0118-out.nq nquad blank node as predicate is not allowed #546

Open mvanassche opened 2 years ago

mvanassche commented 2 years ago

in https://w3c.github.io/json-ld-api/tests/toRdf/0118-out.nq _:b0 is used as a predicate in a triple.

According to https://www.w3.org/TR/n-quads/:

pchampin commented 2 years ago

This test sets the produceGeneralizedRdf flag to true, it is supposed to produce Generalized RDF.

Granted, the output file is therefore not valid N-Quads, and there is no specification for "generalized N-Quads". From that perspective, this test-case is a bit dodgy. But it can easily be spotted as such (as it sets produceGeneralizedRdf to true) so it can (and should) be skipped by strict implementations (i.e. those not supporting generalized RDF).

gkellogg commented 2 years ago

The tests README could, perhaps, informally define the syntax for generalized N-Quads.