Adding test cases, not complete
authorGregg Kellogg <gregg@kellogg-assoc.com>
Fri, 31 Aug 2012 10:25:47 -0700
changeset 121 708abf15510a
parent 120 87cbd14d7d22
child 122 cf9789b86496
Adding test cases, not complete
.DS_Store
microdata-rdf/tests/0001.html
microdata-rdf/tests/0001.rq
microdata-rdf/tests/0001.ttl
microdata-rdf/tests/0002.html
microdata-rdf/tests/0002.ttl
microdata-rdf/tests/0003.html
microdata-rdf/tests/0003.ttl
microdata-rdf/tests/0004.html
microdata-rdf/tests/0004.ttl
microdata-rdf/tests/0005.html
microdata-rdf/tests/0005.ttl
microdata-rdf/tests/0006.html
microdata-rdf/tests/0006.ttl
microdata-rdf/tests/0007.html
microdata-rdf/tests/0007.ttl
microdata-rdf/tests/0008.html
microdata-rdf/tests/0008.ttl
microdata-rdf/tests/0009.html
microdata-rdf/tests/0009.ttl
microdata-rdf/tests/0010.html
microdata-rdf/tests/0010.ttl
microdata-rdf/tests/0011.html
microdata-rdf/tests/0011.ttl
microdata-rdf/tests/0012.html
microdata-rdf/tests/0012.ttl
microdata-rdf/tests/0013.html
microdata-rdf/tests/0013.ttl
microdata-rdf/tests/0014.html
microdata-rdf/tests/0014.ttl
microdata-rdf/tests/0015.html
microdata-rdf/tests/0015.ttl
microdata-rdf/tests/test-registry.json
Binary file .DS_Store has changed
--- a/microdata-rdf/tests/0001.html	Mon Jul 30 12:11:37 2012 -0700
+++ b/microdata-rdf/tests/0001.html	Fri Aug 31 10:25:47 2012 -0700
@@ -4,17 +4,6 @@
     <title>Test 001</title>
   </head>
   <body>
-    <p class="entry" itemscope itemtype="http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#ManifestEntry">
-      <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">
-        <a itemprop="data" href="0001.html">input</a>
-      </span> |
-      <a itemprop="result" href="0001.ttl">query</a> |
-      <a itemprop="registry" href="test-registry.json">registry</a>
-      )
-    </p>
-    <p itemscope>This test created by <span itemprop="name">Gregg Kellogg</span>.</p>
+    <p itemscope itemtype="http://schema.org/Person">This test created by <span itemprop="name">Gregg Kellogg</span>.</p>
   </body>
 </html>
\ No newline at end of file
--- a/microdata-rdf/tests/0001.rq	Mon Jul 30 12:11:37 2012 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
-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/0001.ttl	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,4 @@
[email protected] md: <http://www.w3.org/ns/md#> .
[email protected] schema: <http://schema.org/> .
+
+<> md:item ([ a schema:Person; schema:name "Gregg Kellogg"]) .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0002.html	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>Test 0002</title>
+  </head>
+  <body>
+    <p class="entry" itemscope itemtype="http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#ManifestEntry">
+      <span itemprop="name">Test 0002</span>:
+      <span itemprop="http://www.w3.org/2000/01/rdf-schema#comment">Item with no itemtype and 2 elements with equivalent itemprop</span>
+      (
+      <span itemprop="action" itemscope itemtype="http://www.w3.org/2001/sw/DataAccess/tests/test-query#QueryTest">
+        <a itemprop="data" href="0002.html">input</a>
+      </span> |
+      <a itemprop="result" href="0002.ttl">query</a> |
+      <a itemprop="registry" href="test-registry.json">registry</a>
+      )
+    </p>
+    <p itemscope>This test created by
+      <span itemprop="name">Gregg</span>.
+      <span itemprop="name">Kellogg</span>.
+  </p>
+  </body>
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0002.ttl	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,6 @@
[email protected] md: <http://www.w3.org/ns/md#> .
[email protected] schema: <http://schema.org/> .
+
+<> md:item ([ a schema:Person;
+  schema:fullName "Gregg Kellogg";
+  schema:name "Gregg Kellogg"]) .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0003.html	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>Test 0003</title>
+  </head>
+  <body>
+    <p class="entry" itemscope itemtype="http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#ManifestEntry">
+      <span itemprop="name">Test 0003</span>:
+      <span itemprop="http://www.w3.org/2000/01/rdf-schema#comment">Item with itemprop having two properties</span>
+      (
+      <span itemprop="action" itemscope itemtype="http://www.w3.org/2001/sw/DataAccess/tests/test-query#QueryTest">
+        <a itemprop="data" href="0003.html">input</a>
+      </span> |
+      <a itemprop="result" href="0003.ttl">query</a> |
+      <a itemprop="registry" href="test-registry.json">registry</a>
+      )
+    </p>
+    <p itemscope>This test created by <span itemprop="name fullName">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/0003.ttl	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,1 @@
[email protected] md: <http://www.w3.org/ns/md#> .#> [email protected] schema: <http://schema.org/> .<> md:item ([ a schema:Person; schema:name "Gregg Kellogg"]) .
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0004.html	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>Test 0004</title>
+  </head>
+  <body>
+    <p class="entry" itemscope itemtype="http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#ManifestEntry">
+      <span itemprop="name">Test 0004</span>:
+      <span itemprop="http://www.w3.org/2000/01/rdf-schema#comment">Use of meta and @content</span>
+      (
+      <span itemprop="action" itemscope itemtype="http://www.w3.org/2001/sw/DataAccess/tests/test-query#QueryTest">
+        <a itemprop="data" href="0004.html">input</a> |
+        <a itemprop="query" href="0004.rq">query</a>
+      </span>
+      <a itemprop="registry" href="test-registry.json">registry</a>
+      <meta itemprop="result" content="true"/>
+      )
+    </p>
+    <div itemscope="" itemtype="http://schema.org/Thing">
+      <meta itemprop="meta" content="foo"/>
+    </div>
+  </body>
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0004.ttl	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,4 @@
[email protected] md: <http://www.w3.org/ns/md#> .
[email protected] schema: <http://schema.org/> .
+
+<> md:item ([ a schema:Thing; schema:meta "foo"]) .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0005.html	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>Test 0005</title>
+  </head>
+  <body>
+    <p class="entry" itemscope itemtype="http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#ManifestEntry">
+      <span itemprop="name">Test 0005</span>:
+      <span itemprop="http://www.w3.org/2000/01/rdf-schema#comment">Use of meta and @content</span>
+      (
+      <span itemprop="action" itemscope itemtype="http://www.w3.org/2001/sw/DataAccess/tests/test-query#QueryTest">
+        <a itemprop="data" href="0005.html">input</a> |
+        <a itemprop="query" href="0005.rq">query</a>
+      </span>
+      <a itemprop="registry" href="test-registry.json">registry</a>
+      <meta itemprop="result" content="true"/>
+      )
+    </p>
+    <div itemscope="" itemtype="http://schema.org/Thing">
+      <audio itemprop="audio" src="foo"></audio>
+    </div>
+  </body>
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0005.ttl	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,4 @@
[email protected] md: <http://www.w3.org/ns/md#> .
[email protected] schema: <http://schema.org/> .
+
+<> md:item ([ a schema:Thing; schema:audio <foo>]) .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0006.html	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,4 @@
+<!DOCTYPE html>
+<div itemscope="" itemtype="http://schema.org/Thing">
+  <embed itemprop="embed" src="foo"/>
+</div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0006.ttl	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,4 @@
[email protected] md: <http://www.w3.org/ns/md#> .
[email protected] schema: <http://schema.org/> .
+
+<> md:item ([ a schema:Thing; schema:embed <foo>]) .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0007.html	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,4 @@
+<!DOCTYPE html>
+<div itemscope="" itemtype="http://schema.org/Thing">
+  <iframe itemprop="iframe" src="foo"></iframe>
+</div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0007.ttl	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,4 @@
[email protected] md: <http://www.w3.org/ns/md#> .
[email protected] schema: <http://schema.org/> .
+
+<> md:item ([ a schema:Thing; schema:iframe <foo>]) .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0008.html	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,4 @@
+<!DOCTYPE html>
+<div itemscope="" itemtype="http://schema.org/Thing">
+  <img itemprop="img" src="foo"/>
+</div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0008.ttl	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,4 @@
[email protected] md: <http://www.w3.org/ns/md#> .
[email protected] schema: <http://schema.org/> .
+
+<> md:item ([ a schema:Thing; schema:img <foo>]) .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0009.html	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,4 @@
+<!DOCTYPE html>
+<div itemscope="" itemtype="http://schema.org/Thing">
+  <source itemprop="source" src="foo"/>
+</div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0009.ttl	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,4 @@
[email protected] md: <http://www.w3.org/ns/md#> .
[email protected] schema: <http://schema.org/> .
+
+<> md:item ([ a schema:Thing; schema:source <foo>]) .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0010.html	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,4 @@
+<!DOCTYPE html>
+<div itemscope="" itemtype="http://schema.org/Thing">
+  <track itemprop="track" src="foo"/>
+</div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0010.ttl	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,4 @@
[email protected] md: <http://www.w3.org/ns/md#> .
[email protected] schema: <http://schema.org/> .
+
+<> md:item ([ a schema:Thing; schema:track <foo>]) .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0011.html	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,4 @@
+<!DOCTYPE html>
+<div itemscope="" itemtype="http://schema.org/Thing">
+  <video itemprop="video" src="foo"></video>
+</div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0011.ttl	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,4 @@
[email protected] md: <http://www.w3.org/ns/md#> .
[email protected] schema: <http://schema.org/> .
+
+<> md:item ([ a schema:Thing; schema:video <foo>]) .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0012.html	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,4 @@
+<!DOCTYPE html>
+<div itemscope="" itemtype="http://schema.org/Thing">
+  <a itemprop="a" href="foo"></a>
+</div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0012.ttl	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,4 @@
[email protected] md: <http://www.w3.org/ns/md#> .
[email protected] schema: <http://schema.org/> .
+
+<> md:item ([ a schema:Thing; schema:a <foo>]) .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0013.html	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,4 @@
+<!DOCTYPE html>
+<div itemscope="" itemtype="http://schema.org/Thing">
+  <area itemprop="area" href="foo"/>
+</div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0013.ttl	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,4 @@
[email protected] md: <http://www.w3.org/ns/md#> .
[email protected] schema: <http://schema.org/> .
+
+<> md:item ([ a schema:Thing; schema:area <foo>]) .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0014.html	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,4 @@
+<!DOCTYPE html>
+<div itemscope="" itemtype="http://schema.org/Thing">
+  <link itemprop="link" href="foo"/>
+</div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0014.ttl	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,4 @@
[email protected] md: <http://www.w3.org/ns/md#> .
[email protected] schema: <http://schema.org/> .
+
+<> md:item ([ a schema:Thing; schema:link <foo>]) .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0015.html	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,4 @@
+<!DOCTYPE html>
+<div itemscope="" itemtype="http://schema.org/Thing">
+  <object itemprop="object" data="foo"/>
+</div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/microdata-rdf/tests/0015.ttl	Fri Aug 31 10:25:47 2012 -0700
@@ -0,0 +1,4 @@
[email protected] md: <http://www.w3.org/ns/md#> .
[email protected] schema: <http://schema.org/> .
+
+<> md:item ([ a schema:Thing; schema:object <foo>]) .
--- a/microdata-rdf/tests/test-registry.json	Mon Jul 30 12:11:37 2012 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-{
-  "@comment": "This registry defines several artificial vocabularies used when running tests in the microdata to RDF test suite",
-  "http://vocabulary.unordered/": {
-    "propertyURI":    "vocabulary",
-    "multipleValues": "unordered",
-    "properties": {
-      "list": {"multipleValues": "list"},
-      "ordered": {"multipleValues": "ordered"},
-      "typed": {"daetatype": "http://typed"}
-    }
-  },
-  "http://vocabulary.list/": {
-    "propertyURI":    "vocabulary",
-    "multipleValues": "list",
-    "properties": {
-      "list": {"multipleValues": "list"},
-      "ordered": {"multipleValues": "ordered"},
-      "typed": {"daetatype": "http://typed"}
-    }
-  },
-  "http://contextual.unordered/": {
-    "propertyURI":    "contextual",
-    "multipleValues": "unordered",
-    "properties": {
-      "list": {"multipleValues": "list"},
-      "ordered": {"multipleValues": "ordered"},
-      "typed": {"daetatype": "http://typed"}
-    }
-  },
-  "http://contextual.list/": {
-    "propertyURI":    "contextual",
-    "multipleValues": "list",
-    "properties": {
-      "list": {"multipleValues": "list"},
-      "ordered": {"multipleValues": "ordered"},
-      "typed": {"daetatype": "http://typed"}
-    }
-  },
-  "http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#": {
-    "properties": {
-      "include": {"multipleValues": "list"},
-      "entries": {"multipleValues": "list"}
-    }
-  }
-}