- Linked Data Platform 1.0 (W3C Candidate Recommendation 19 June 2014)
- Linked Data Platform Use Cases and Requirements (W3C Working Group Note 13 March 2014)
- Linked Data Platform 1.0 Primer (W3C First Public Working Draft 26 June 2014)
- LDP Best Practices and Guidelines (W3C Editor's Draft 17 April 2014)
- Linked Data Platform 1.0 Test Cases (W3C Working Group Note 25 August 2014)
The list of test cases, along with their status (WG approved, manual, client-only) is available in a generated report.
You can run the test suite against an arbitrary server:
$ mvn package $ java -jar target/ldp-testsuite-0.1.1-shaded.jar \ --server http://localhost --basic
--indirect for the type of container
you want to test;
--help for getting some more help.
You can also run the test suite against the Paging Specification Requirements by using the following command (paging tests are still work-in-progress):
$ java -classpath target/ldp-testsuite-1.0.0-SNAPSHOT-shaded.jar \ org.w3.ldp.paging.testsuite.tests.RunPagingTest
If you are using Maven for building your project, you can use the test suite as dependency for your tests:
<dependency> <groupId>org.w3</groupId> <artifactId>ldp-testsuite</artifactId> <version>0.1.1-SNAPSHOT</version> <scope>test</scope> </dependency>
And then you can programmatically execute the test suite with a code like:
LdpTestSuite testSuite = new LdpTestSuite("http://localhost"); testSuite.run(); System.out.println(testSuite.getStatus());
For further details and advance usage, please check the javadoc.
If you are running from Eclipse IDE, you can leverage a TestNG plugin. There is a sample testng.xml with all the parameters. Simply update testng.xml and select it, right click and chose "Run As -> TestNG Test suite".
For reporting the status of a concrete implementation, please use a command like:
Please, submit the generated reports, (both
$ java -jar target/ldp-testsuite-0.1.1-shaded.jar \ --server http://localhost --basic --non-rdf --earl \ --software "Your Software" --shortname "Yours" --language "Java" \ --homepage http://ldp.example.org \ --assertor http://ldp.example.org \ --developer "Your Name"
ldp-testsuite-execution-report.htmllocated at the
reportdirectory, to the working group (email@example.com) to be included to the official LDP Implementation Conformance Report.
On behalf of the W3C LDP Working Group:
The LDP test suite represents a developed set of test cases, as automated as possible using TestNG and REST-assured. These test cases are contributed via typical individuals who update the source code and send in a pull request. The maintainers of the repo, review the contribution to ensure the quality. New test cases should be annotated with the appropriate annotation:
@SpecTest(approval = STATUS.WG_PENDING)
Once there are at least 2 implementations passing this new test, the status will be changed to