Test Case #76: @rel reserved values in XHTML

Purpose:

Tests to ensure that all reserved XHTML @rel words are supported by the
underlying parser implementation. These are the reserved words that are
supported:

alternate appendix bookmark chapter contents copyright glossary
help icon index meta next p3pv1 prev role section subsection
start license up

I realize that we -could- have a test case for every one of these, but
that seems like overkill.

====================== Test Case 76 =============================

---------------------Test Case 76 XHTML--------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
                      "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
      <title>Test 0076</title>
   </head>
   <body>
      <p>
         <a rel="alternate" href="http://example.org/alternate">
                 alternate</a>
         <a rel="appendix" href="http://example.org/appendix">
                 appendix</a>
         <a rel="bookmark" href="http://example.org/bookmark">
                 bookmark</a>
         <a rel="chapter" href="http://example.org/chapter">
                 chapter</a>
         <a rel="contents" href="http://example.org/contents">
                 contents</a>
         <a rel="copyright" href="http://example.org/copyright">
                 copyright</a>
         <a rel="glossary" href="http://example.org/glossary">
                 glossary</a>
         <a rel="help" href="http://example.org/help">
                 help</a>
         <a rel="icon" href="http://example.org/icon">
                 icon</a>
         <a rel="index" href="http://example.org/index">
                 index</a>
         <a rel="meta" href="http://example.org/meta">
                 meta</a>
         <a rel="next" href="http://example.org/next">
                 next</a>
         <a rel="p3pv1" href="http://example.org/p3pv1">
                 p3pv1</a>
         <a rel="prev" href="http://example.org/prev">
                 prev</a>
         <a rel="role" href="http://example.org/role">
                 role</a>
         <a rel="section" href="http://example.org/section">
                 section</a>
         <a rel="subsection" href="http://example.org/subsection">
                 subsection</a>
         <a rel="start" href="http://example.org/start">
                 start</a>
         <a rel="license" href="http://example.org/license">
                 license</a>
         <a rel="up" href="http://example.org/up">
                 up</a>
      </p>
   </body>
</html>
----------------------------------------------------------------

---------------------Test Case 76 SPARQL -----------------------
ASK WHERE {
<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0076.xhtml>
   <http://www.w3.org/1999/xhtml/vocab#alternate>
      <http://example.org/alternate> .
<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0076.xhtml>
   <http://www.w3.org/1999/xhtml/vocab#appendix>
      <http://example.org/appendix> .
<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0076.xhtml>
   <http://www.w3.org/1999/xhtml/vocab#bookmark>
      <http://example.org/bookmark> .
<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0076.xhtml>
   <http://www.w3.org/1999/xhtml/vocab#chapter>
      <http://example.org/chapter> .
<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0076.xhtml>
   <http://www.w3.org/1999/xhtml/vocab#contents>
      <http://example.org/contents> .
<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0076.xhtml>
   <http://www.w3.org/1999/xhtml/vocab#copyright>
      <http://example.org/copyright> .
<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0076.xhtml>
   <http://www.w3.org/1999/xhtml/vocab#glossary>
      <http://example.org/glossary> .
<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0076.xhtml>
   <http://www.w3.org/1999/xhtml/vocab#help>
      <http://example.org/help> .
<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0076.xhtml>
   <http://www.w3.org/1999/xhtml/vocab#icon>
      <http://example.org/icon> .
<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0076.xhtml>
   <http://www.w3.org/1999/xhtml/vocab#index>
      <http://example.org/index> .
<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0076.xhtml>
   <http://www.w3.org/1999/xhtml/vocab#meta>
      <http://example.org/meta> .
<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0076.xhtml>
   <http://www.w3.org/1999/xhtml/vocab#next>
      <http://example.org/next> .
<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0076.xhtml>
   <http://www.w3.org/1999/xhtml/vocab#p3pv1>
      <http://example.org/p3pv1> .
<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0076.xhtml>
   <http://www.w3.org/1999/xhtml/vocab#prev>
      <http://example.org/prev> .
<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0076.xhtml>
   <http://www.w3.org/1999/xhtml/vocab#role>
      <http://example.org/role> .
<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0076.xhtml>
   <http://www.w3.org/1999/xhtml/vocab#section>
      <http://example.org/section> .
<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0076.xhtml>
   <http://www.w3.org/1999/xhtml/vocab#subsection>
      <http://example.org/subsection> .
<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0076.xhtml>
   <http://www.w3.org/1999/xhtml/vocab#start>
      <http://example.org/start> .
<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0076.xhtml>
   <http://www.w3.org/1999/xhtml/vocab#license>
      <http://example.org/license> .
<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0076.xhtml>
   <http://www.w3.org/1999/xhtml/vocab#up>
      <http://example.org/up> .
}
-----------------------------------------------------------------

-- manu

PS: Bash scripts to generate the HTML and SPARQL for this test (in case
we need to change the markup above):

HTML:
for i in alternate appendix bookmark chapter contents copyright glossary
help icon index meta next p3pv1 prev role section subsection start
license up; do echo "         <a rel=\"$i\"
href=\"http://example.org/$i\">"; echo "                 $i</a>"; done

SPARQL:
for i in alternate appendix bookmark chapter contents copyright glossary
help icon index meta next p3pv1 prev role section subsection start
license up; do echo
"<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0076.xhtml>";
echo "   <http://www.w3.org/1999/xhtml/vocab#$i>"; echo "
<http://example.org/$i> ."; done

-- 
Manu Sporny
President/CEO - Digital Bazaar, Inc.
blog: Intro to the Semantic Web in 6 minutes (video)
http://blog.digitalbazaar.com/2007/12/26/semantic-web-intro

Received on Wednesday, 23 January 2008 21:02:24 UTC