This document serves as the manifest describing [[MICRODATA-RDF]] tests to be used by processor implementations claiming conformance.
Alternative versions of the test manifest can be found in Turtle and JSON-LD.
Tests are described with individual HTML files containing microdata, which when processed, generates exactly the triples specified in the result file. Positive processor tests tests MUST generate the specified triples and Negative processor tests MUST NOT generate the specified triples.
All tests should be performed with an assumed base of http://dvcs.w3.org/hg/htmldata/raw-file/default/microdata-rdf/tests/
along with the base-name of the specific test document (excluding any format extension).
This document serves as the test manifest for both positive and negative parser tests using the Data Access Test Manifest and Data Access Test Query vocabularies.
Properly parsing this document with a conforming Microdata to RDF processor, as well as the individual
test cases requires that the processor use the Test Registry. Additionally,
individual tests may require that the processor use a different registry using the
an additional registry
property, indicating the URL of a registry to load to run the test,
typically a file co-located and numbered along with the test itself.
An example test entry parsed from this manifest might have the following form:
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> . @prefix qt: <http://www.w3.org/2001/sw/DataAccess/tests/test-query#> . [ rdf:type mf:Manifest ; rdfs:comment "Turtle good syntax test cases (must pass)" ; mf:entries ( [ a mf:ManifestEntry; mf:name "Test 0001"; rdfs:comment "Item with no itemtype and literal itemprop"; mf:action [qt:data <0001.html>]; mf:registry <test-registry.json>; mf:result <0001.ttl> mf:positiveTest "true"; ] ) ] .