The JSON-LD-star Test Suite is a set of tests that can be used to verify JSON-LD Processor for the RDF-star extensions to JSON-LD.
More information and an RDFS definition of the test vocabulary can be found at vocab.
Tests are run broadly the same as those for the core JSON-LD test suite, with the addition of the rdfstar
option set to true
for each test. If not set, explicitly, the test checks for proper behavior when not operating in RDF-star mode.
Tests driven from a top-level manifest and are defined into compact, expand, flatten, fromRdf, and toRdf sections:
The top-level manifest references the specific test manifests, which in turn reference each test associated with a particular type of behavior.
Implementations create their own infrastructure for running the test suite. In particular, the following should be considered:
requires
property, indicating some optional behavior described by a test vocabulary term.If you would like to contribute a new test or a fix to an existing test, please follow these steps:
Distributed under the W3C Test Suite License. To contribute to a W3C Test Suite, see the policies and contribution forms.
UNDER THE EXCLUSIVE LICENSE, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED “AS IS,” AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.