json-ld-api icon indicating copy to clipboard operation
json-ld-api copied to clipboard

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

Open mvanassche opened this issue 3 years ago • 2 comments

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/:

mvanassche avatar Aug 04 '22 12:08 mvanassche

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).

pchampin avatar Aug 17 '22 10:08 pchampin

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

gkellogg avatar Aug 17 '22 14:08 gkellogg