All testcases are available at the test case repository.
Test Case Template
Used namespace:
test: http://www.w3.org/2006/03/test-description# dc: http://purl.org/dc/elements/1.1/
Test Case TYPE
rdf:ID |
dc:title |
dc:description |
|
test:Purpose |
|
test:specificationReference |
test:reviewStatus |
test:informationResourceInput |
test:informationResourceResults |
dc:contributor |
Discussion:
Should we have URI ref rather than literals for dc:contributor ?
We might want to skip dc:description and use test:Purpose, only (cf. http://www.w3.org/QA/2005/08/test-case-metadata.html)
For test:SpecificationReference we should use a XPath to the RDFa Syntax doc spec here (cf. http://www.w3.org/QA/2005/08/test-case-metadata.html)
Example
Using the test ontology (based on http://www.w3.org/QA/2005/08/test-case-metadata.html), an example test case description (TC metadata) looks as following:
<Test005> a test:TestCase ; dc:title "xml:base" ; dc:description "" ; dc:contributor "Elias Torres" ; test:Purpose "Tests explicitly setting xml:base attribute." ; test:reviewStatus test:unreviewed ; test:SpecificationReference "2.3"; test:informationResourceInput <http://code.wingerz.com/rdfatests/tests/000005.htm> ; test:informationResourceResults <http://code.wingerz.com/rdfatests/tests/000005.ttl> .
RDFa Test Assertions
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test005 |
@xml:base |
Tests explicitly setting @xml:base. |
|
2.3 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000005.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000005.sparql |
Elias Torres |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test002 |
Predicate establishment with @property |
Tests @property to establish the predicate; literal object is in the content of the element. |
|
4.2.1 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000002.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000002.sparql |
Elias Torres |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test101 |
@rel for predicate |
Tests @rel to establish predicate. |
|
4.2.2 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000101.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000101.sparql |
Wing Yung |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test007 |
@rel and @rev |
Tests @rev and @rel together, with the object being specified by @href, ignoring content |
|
4.2.4 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000007.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000007.sparql |
Elias Torres |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test008 |
@rel, @rev, @property, @content |
Tests @rel, @rev, @property, and @content together to generate several RDF triples. |
|
4.2.4 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000008.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000008.sparql |
Elias Torres |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test012 |
@rel, @rev, @href |
Tests @rel, @rev, and @href to generate two RDF triples. |
|
4.2.4 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000012.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000012.sparql |
Elias Torres |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test010 |
empty string @about |
Tests empty @about. |
|
4.3.1 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000011.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000011.sparql |
Elias Torres |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test102 |
@about for subject |
Tests @about to establish subject. |
|
4.3.1 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000102.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000102.sparql |
Wing Yung |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test103 |
Inheriting @about for subject |
Tests @about inheritance to establish subject. |
|
4.3.2 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000103.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000103.sparql |
Wing Yung |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test104 |
Subject inheritance with no @about |
Tests inheritance of subject when no @about can be found |
|
4.3.2 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000104.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000104.sparql |
Wing Yung |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test003 |
meta/@property |
Tests meta/@property to establish the predicate; subject comes from the parent's @about. |
|
4.3.3 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000003.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000003.sparql |
Elias Torres |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test004 |
meta/@property, no @about in parent |
Tests meta/@property to establish the predicate; subject will be a blank node. |
|
4.3.3 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000004.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000004.sparql |
Elias Torres |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test105 |
meta with parent @id |
Tests getting subject from parent @id |
|
4.3.3 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000105.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000105.sparql |
Wing Yung |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test106 |
Ignore @id in non-parent ancestor |
Tests @id is not inherited |
|
4.3.3 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000106.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000106.sparql |
Wing Yung |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test107 |
Ignore @id for non-meta and non-link |
Tests igoring @id for non-meta and non-link tag |
|
4.3.3 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000107.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000107.sparql |
Wing Yung |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test108 |
@id for object |
Tests @id for specifying the object in absence of @href |
|
4.3.3 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000108.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000108.sparql |
Wing Yung |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test109 |
@content |
Tests @content for literal object |
|
4.4.1 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000109.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000109.sparql |
Wing Yung |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test110 |
@content, ignore element content |
Tests @content for literal object, overriding element content. |
|
4.4.1 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000110.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000110.sparql |
Wing Yung |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test111 |
relative @href |
Tests @href with a relative URI. |
|
4.4.2 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000111.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000111.sparql |
Wing Yung |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test013 |
XMLLiteral |
Tests XMLLiteral content |
|
5.1.1 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000013.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000013.sparql |
Elias Torres |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test014 |
@xml:lang |
Tests @xml:lang |
|
5.1.1.2 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000014.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000014.sparql |
Elias Torres |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test015 |
@xml:lang inheritance |
Tests @xml:lang inheritance |
|
5.1.1.2 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000015.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000015.sparql |
Elias Torres |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test112 |
@xml:lang and @datatype |
Tests @xml:lang and @datatype. |
|
5.1.1.2 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000112.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000112.sparql |
Wing Yung |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test016 |
@datatype, xsd:integer |
Tests setting the @datatype to xsd:integer |
|
5.1.2 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000016.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000016.sparql |
Elias Torres |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test113 |
meta content |
Tests extracting a literal from string content of meta |
|
5.1.2.1 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000113.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000113.sparql |
Wing Yung |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test017 |
Blank node via meta and link |
Tests meta and link with no parent @about, blank node generated for subject |
|
5.2 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000017.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000017.sparql |
Elias Torres |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test019 |
Blank node, explicit |
Tests setting @about to an explicit blanknode _:a. |
|
5.2 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000019.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000019.sparql |
Elias Torres |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/Test020 |
Related blanknodes |
Tests creation of statements involving explicitly created blank nodes. |
|
5.2 |
|
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000020.htm |
http://www.w3.org/2006/07/SWD/RDFa/testsuite/testcases/000020.sparql |
Elias Torres |