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
Tests are described with individual HTML files containing microdata, which when processed,
generates exactly the triples specified in the result file.
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).
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.
Example Test Entry
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)" ;
[ a mf:ManifestEntry;
mf:name "Test 0001";
rdfs:comment "Item with no itemtype and literal itemprop";
mf:action [qt:data <0001.html>];
Positive processor tests
Item with no itemtype and literal itemprop
Item with no itemtype and 2 elements with equivalent itemprop
Item with itemprop having two properties