Toby Inkster avatar Toby Inkster committed 7e37043

beginnings of test suite

Comments (0)

Files changed (17)

test-suite/manifest.ttl

+@prefix dc:   <http://purl.org/dc/terms/> .
+@prefix log:  <http://www.w3.org/2000/10/swap/log#> .
+@prefix owl:  <http://www.w3.org/2002/07/owl#> .
+@prefix rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix test: <http://www.w3.org/2006/03/test-description#> .
+@prefix rdfatest: <http://rdfa.info/vocabs/rdfa-test#> .
+@prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .
+@prefix toby: <http://tobyinkster.co.uk/#> .
+
+<test-cases/9001>
+	a test:TestCase;
+	dc:contributor toby:i ;
+	dc:title "Simple triple";
+	rdfatest:rdfaVersion "rdfa1.0", "rdfa1.1";
+	test:classification test:required;
+	rdfatest:hostLanguage "atom", "datarss";
+	test:informationResourceInput <test-cases/9001.atom>;
+	test:informationResourceResults <test-cases/9001.sparql>;
+	test:purpose "Simple triple using CURIEs, Safe CURIEs and a resource object.";
+	test:specificationReference "" .
+
+<test-cases/9002>
+	a test:TestCase;
+	dc:contributor toby:i ;
+	dc:title "Simple triple, RDFa 1.1 only";
+	rdfatest:rdfaVersion "rdfa1.1";
+	test:classification test:required;
+	rdfatest:hostLanguage "atom", "datarss";
+	test:informationResourceInput <test-cases/9002.atom>;
+	test:informationResourceResults <test-cases/9002.sparql>;
+	test:purpose "Tests non-Safe CURIEs in @about and @resource.";
+	test:specificationReference "" .
+
+<test-cases/9003>
+	a test:TestCase;
+	dc:contributor toby:i ;
+	dc:title "Default subject for root element.";
+	rdfatest:rdfaVersion "rdfa1.0", "rdfa1.1";
+	test:classification test:required;
+	rdfatest:hostLanguage "atom", "datarss";
+	test:informationResourceInput <test-cases/9003.atom>;
+	test:informationResourceResults <test-cases/9003.sparql>;
+	test:purpose "Tests that the implicit subject resource for the root element is the base URI.";
+	test:specificationReference "" .
+
+<test-cases/9004>
+	a test:TestCase;
+	dc:contributor toby:i ;
+	dc:title "Default subject for entry elements.";
+	rdfatest:rdfaVersion "rdfa1.0", "rdfa1.1";
+	test:classification test:required;
+	rdfatest:hostLanguage "atom", "datarss";
+	test:informationResourceInput <test-cases/9004.atom>;
+	test:informationResourceResults <test-cases/9004.sparql>;
+	test:purpose "Tests that entry elements are bnodes.";
+	test:specificationReference "" .
+
+<test-cases/9005>
+	a test:TestCase;
+	dc:contributor toby:i ;
+	dc:title "Default subjects.";
+	rdfatest:rdfaVersion "rdfa1.0", "rdfa1.1";
+	test:classification test:required;
+	test:expectedResults "false"^^xsd:boolean;
+	rdfatest:hostLanguage "atom", "datarss";
+	test:informationResourceInput <test-cases/9005.atom>;
+	test:informationResourceResults <test-cases/9005.sparql>;
+	test:purpose "Tests that feed and entry elements create different subjects.";
+	test:specificationReference "" .
+
+<test-cases/9006>
+	a test:TestCase;
+	dc:contributor toby:i ;
+	dc:title "Default subject for entry elements.";
+	rdfatest:rdfaVersion "rdfa1.0", "rdfa1.1";
+	test:classification test:required;
+	rdfatest:hostLanguage "atom", "datarss";
+	test:informationResourceInput <test-cases/9006.atom>;
+	test:informationResourceResults <test-cases/9006.sparql>;
+	test:purpose "Tests that two entry elements are distinct bnodes.";
+	test:specificationReference "" .
+
+<test-cases/9007>
+	a test:TestCase;
+	dc:contributor toby:i ;
+	dc:title "xml:base";
+	rdfatest:rdfaVersion "rdfa1.0", "rdfa1.1";
+	test:classification test:required;
+	rdfatest:hostLanguage "atom", "datarss";
+	test:informationResourceInput <test-cases/9007.atom>;
+	test:informationResourceResults <test-cases/9007.sparql>;
+	test:purpose "Checks that xml:base sets the base URI.";
+	test:specificationReference "" .
+
+<test-cases/9008>
+	a test:TestCase;
+	dc:contributor toby:i ;
+	dc:title "xml:lang";
+	rdfatest:rdfaVersion "rdfa1.0", "rdfa1.1";
+	test:classification test:required;
+	rdfatest:hostLanguage "atom", "datarss";
+	test:informationResourceInput <test-cases/9008.atom>;
+	test:informationResourceResults <test-cases/9008.sparql>;
+	test:purpose "Checks that xml:lang sets the language.";
+	test:specificationReference "" .
+
+
+# TODO: a test that includes rel="$_" foreach term in the IETF registry,
+# and makes sure it is expanded to the correct URI
+
+# TODO: a test that includes rel="$_" foreach term in the XHTML vocab,
+# and makes sure it is expanded to the correct URI (i.e. the IETF URI!)
+
+# TODO: a test that includes rel="monkey-madness" and checks it's
+# expanded to the correct URI.
+
+# TODO: a test that includes rel="$_:x" foreach prefix in RDFa Core 1.1
+# and checks prefixes are defined
+
+# TODO: check to see if an Atom+RDFa parser should be expected to additionally
+# pass all current tests from the XML+RDFa test suite. (It probably should.)

test-suite/tests/9001.atom

+<feed
+	xmlns="http://www.w3.org/2005/Atom"
+	xmlns:rdfa="http://www.w3.org/ns/rdfa#"
+	xmlns:ex="http://www.example.com/"
+>
+	<title>Example Feed</title>
+	<link href="http://example.org/"/>
+	<updated>2003-12-13T18:30:02Z</updated>
+	<author>
+		<name>John Doe</name>
+	</author>
+	<id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id>
+	<entry>
+		<title>Atom-Powered Robots Run Amok</title>
+		<link href="http://example.org/2003/12/13/atom03"/>
+		<id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
+		<updated>2003-12-13T18:30:02Z</updated>
+		<summary>Some text.</summary>
+	</entry>
+	<rdfa:meta
+		about="[ex:s]"
+		rel="ex:p"
+		resource="[ex:o]"
+	>
+</feed>

test-suite/tests/9001.sparql

+PREFIX ex: <http://www.example.com/>
+ASK WHERE {
+	ex:s ex:p ex:o .
+}

test-suite/tests/9002.atom

+<feed
+	xmlns="http://www.w3.org/2005/Atom"
+	xmlns:rdfa="http://www.w3.org/ns/rdfa#"
+	xmlns:ex="http://www.example.com/"
+>
+	<title>Example Feed</title>
+	<link href="http://example.org/"/>
+	<updated>2003-12-13T18:30:02Z</updated>
+	<author>
+		<name>John Doe</name>
+	</author>
+	<id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id>
+	<entry>
+		<title>Atom-Powered Robots Run Amok</title>
+		<link href="http://example.org/2003/12/13/atom03"/>
+		<id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
+		<updated>2003-12-13T18:30:02Z</updated>
+		<summary>Some text.</summary>
+	</entry>
+	<rdfa:meta
+		about="ex:s"
+		rel="ex:p"
+		resource="ex:o"
+	>
+</feed>

test-suite/tests/9002.sparql

+PREFIX ex: <http://www.example.com/>
+ASK WHERE {
+	ex:s ex:p ex:o .
+}

test-suite/tests/9003.atom

+<feed
+	xmlns="http://www.w3.org/2005/Atom"
+	xmlns:rdfa="http://www.w3.org/ns/rdfa#"
+	xmlns:ex="http://www.example.com/"
+>
+	<title>Example Feed</title>
+	<link href="http://example.org/"/>
+	<updated>2003-12-13T18:30:02Z</updated>
+	<author>
+		<name>John Doe</name>
+	</author>
+	<id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id>
+	<entry>
+		<title>Atom-Powered Robots Run Amok</title>
+		<link href="http://example.org/2003/12/13/atom03"/>
+		<id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
+		<updated>2003-12-13T18:30:02Z</updated>
+		<summary>Some text.</summary>
+	</entry>
+	<rdfa:meta
+		rel="ex:p"
+		resource="[ex:o]"
+	>
+</feed>

test-suite/tests/9003.sparql

+PREFIX ex: <http://www.example.com/>
+ASK WHERE {
+	<$TCPATH/9003.atom> ex:p ex:o .
+}

test-suite/tests/9004.atom

+<feed
+	xmlns="http://www.w3.org/2005/Atom"
+	xmlns:rdfa="http://www.w3.org/ns/rdfa#"
+	xmlns:ex="http://www.example.com/"
+>
+	<title>Example Feed</title>
+	<link href="http://example.org/"/>
+	<updated>2003-12-13T18:30:02Z</updated>
+	<author>
+		<name>John Doe</name>
+	</author>
+	<id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id>
+	<entry>
+		<title>Atom-Powered Robots Run Amok</title>
+		<link href="http://example.org/2003/12/13/atom03"/>
+		<id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
+		<updated>2003-12-13T18:30:02Z</updated>
+		<summary>Some text.</summary>
+		<rdfa:meta
+			rel="ex:p"
+			resource="[ex:o]"
+		>
+	</entry>
+</feed>

test-suite/tests/9004.sparql

+PREFIX ex: <http://www.example.com/>
+ASK WHERE {
+	?s ex:p ex:o .
+	FILTER ( isBlank(?s) )
+}

test-suite/tests/9005.atom

+<feed
+	xmlns="http://www.w3.org/2005/Atom"
+	xmlns:rdfa="http://www.w3.org/ns/rdfa#"
+	xmlns:ex="http://www.example.com/"
+>
+	<title>Example Feed</title>
+	<link href="http://example.org/"/>
+	<updated>2003-12-13T18:30:02Z</updated>
+	<author>
+		<name>John Doe</name>
+	</author>
+	<id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id>
+	<entry>
+		<title>Atom-Powered Robots Run Amok</title>
+		<link href="http://example.org/2003/12/13/atom03"/>
+		<id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
+		<updated>2003-12-13T18:30:02Z</updated>
+		<summary>Some text.</summary>
+		<rdfa:meta
+			rel="ex:p"
+			resource="[ex:o]"
+		>
+	</entry>
+	<rdfa:meta
+		rel="ex:q"
+		resource="[ex:o]"
+	>
+</feed>

test-suite/tests/9005.sparql

+PREFIX ex: <http://www.example.com/>
+ASK WHERE {
+	?s ex:p ex:o ; ex:q ex:o .
+}

test-suite/tests/9006.atom

+<feed
+	xmlns="http://www.w3.org/2005/Atom"
+	xmlns:rdfa="http://www.w3.org/ns/rdfa#"
+	xmlns:ex="http://www.example.com/"
+>
+	<title>Example Feed</title>
+	<link href="http://example.org/"/>
+	<updated>2003-12-13T18:30:02Z</updated>
+	<author>
+		<name>John Doe</name>
+	</author>
+	<id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id>
+	<entry>
+		<title>Atom-Powered Robots Run Amok</title>
+		<link href="http://example.org/2003/12/13/atom03"/>
+		<id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
+		<updated>2003-12-13T18:30:02Z</updated>
+		<summary>Some text.</summary>
+		<rdfa:meta
+			rel="ex:p"
+			resource="[ex:o]"
+		>
+	</entry>
+	<entry>
+		<title>Atom-Powered Robots Back Under Control</title>
+		<link href="http://example.org/2003/12/13/atom10"/>
+		<id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6b</id>
+		<updated>2003-12-13T20:30:02Z</updated>
+		<summary>Some more text.</summary>
+		<rdfa:meta
+			rel="ex:q"
+			resource="[ex:o]"
+		>
+	</entry>
+</feed>

test-suite/tests/9006.sparql

+PREFIX ex: <http://www.example.com/>
+ASK WHERE {
+	?s1 ex:p ex:o .
+	?s2 ex:q ex:o .
+	FILTER( ?s1 != ?s2 )
+}

test-suite/tests/9007.atom

+<feed
+	xmlns="http://www.w3.org/2005/Atom"
+	xmlns:rdfa="http://www.w3.org/ns/rdfa#"
+	xmlns:ex="http://www.example.com/"
+>
+	<title>Example Feed</title>
+	<link href="http://example.org/"/>
+	<updated>2003-12-13T18:30:02Z</updated>
+	<author>
+		<name>John Doe</name>
+	</author>
+	<id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id>
+	<entry xml:base="http://www.example.net/base/">
+		<title>Atom-Powered Robots Run Amok</title>
+		<link href="http://example.org/2003/12/13/atom03"/>
+		<id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
+		<updated>2003-12-13T18:30:02Z</updated>
+		<summary>Some text.</summary>
+		<rdfa:meta
+			rel="ex:p"
+			resource="o"
+		>
+	</entry>
+</feed>

test-suite/tests/9007.sparql

+PREFIX ex: <http://www.example.com/>
+ASK WHERE {
+	?s ex:p <http://www.example.net/base/o> .
+}

test-suite/tests/9008.atom

+<feed
+	xmlns="http://www.w3.org/2005/Atom"
+	xmlns:rdfa="http://www.w3.org/ns/rdfa#"
+	xmlns:ex="http://www.example.com/"
+>
+	<title>Example Feed</title>
+	<link href="http://example.org/"/>
+	<updated>2003-12-13T18:30:02Z</updated>
+	<author>
+		<name>John Doe</name>
+	</author>
+	<id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id>
+	<entry xml:lang="fr">
+		<title>Atom-Powered Robots Run Amok</title>
+		<link href="http://example.org/2003/12/13/atom03"/>
+		<id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
+		<updated>2003-12-13T18:30:02Z</updated>
+		<summary>Some text.</summary>
+		<rdfa:meta
+			property="ex:p"
+			content="chat"
+		>
+	</entry>
+</feed>

test-suite/tests/9008.sparql

+PREFIX ex: <http://www.example.com/>
+ASK WHERE {
+	?s ex:p "chat"@fr .
+}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.