Start of Microdata to RDF test suite.
authorGregg Kellogg <gregg@kellogg-assoc.com>
Thu, 01 Mar 2012 14:34:57 -0800
changeset 106 d3203d625b7a
parent 105 eabf7951987f
child 107 3aae31a331fe
child 110 1cd1d2028e68
Start of Microdata to RDF test suite.
microdata-rdf/tests/0001.html
microdata-rdf/tests/0001.rq
microdata-rdf/tests/index.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0001.html	Thu Mar 01 14:34:57 2012 -0800
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+  <head itemscope itemtype="http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#ManifestEntry">
+    <title>
+      <span itemprop="name">Test 0001</span>:
+      <span itemprop="http://www.w3.org/2000/01/rdf-schema#comment">Item with no itemtype and literal itemprop</span>
+      <span itemprop="action" itemscope itemtype="http://www.w3.org/2001/sw/DataAccess/tests/test-query#QueryTest">
+        <link itemprop="query" href="0001.rq"/>
+        <link itemprop="data" href="0001.html"/>
+      </span>
+      <meta itemprop="result" content="true"/>
+    </title>
+  </head>
+  <body>
+    <p itemscope>This test created by <span itemprop="name">Gregg Kellogg</span>.</p>
+  </body>
+</html>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0001.rq	Thu Mar 01 14:34:57 2012 -0800
@@ -0,0 +1,6 @@
+BASE <http://www.w3.org/TR/microdata-rdf/tests/0001>
+PREFIX md: <http://www.w3.org/ns/md#>
+ASK WHERE {
+  ?s <#name> "Gregg Kellogg"
+  FILTER IsBlank(?s)
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/index.html	Thu Mar 01 14:34:57 2012 -0800
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <title>Microdata to RDF Tests</title>
+  <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
+</head>
+
+<body>
+<section id="abstract">
+  <p>This document serves as the manifest describing [[MICRODATA-RDF]] tests to be used by
+    processor implementations claiming conformance.</p>
+  <p>Tests are described with individual HTML files containing microdata, which when processed,
+    will either pass or fail a SPARQL ASK query associated with the test. <a href="#positive-tests">Positive processor
+    tests</a> tests MUST yield a value of <code>true</code> and <a href="#negative-tests">Negative processor tests</a>
+    MUST yield a value of <code>false</code>.</p>
+  <p>All tests should be performed with an assumed base of <code>http://www.w3.org/TR/microdata-rdf/tests/</code>
+    along with the base-name of the specific test document (excluding any format extension).</p>
+</section>
+
+<section id="positive-tests">
+  <h2>Positive processor tests</h2>
+</section>
+
+<section id="negative-tests">
+  <h2>Negative processor tests</h2>
+</section>
+
+</body>
+</html>