Copyright © 2010-2013 W3C® (MIT, ERCIM, Keio, Beihang), All Rights Reserved. W3C liability, trademark and document use rules apply.
This document reports processor conformance for [RDFA-CORE] and related specifications according to the requirements of the Evaluation and Report Language (EARL) 1.0 Schema [EARL10-SCHEMA].
This document describes RDFa Test Suite running at http://rdfa.info/ . according to the requirements of the Evaluation and Report Language (EARL) 1.0 Schema [EARL10-SCHEMA].
This report is also available in alternate formats: Turtle and JSON-LD
This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at http://www.w3.org/TR/.
This document was published by the RDF Web Applications Working Group as a . If you wish to make comments regarding this document, please send them to public-rdfa@w3.org (subscribe, archives). All comments are welcome.
Publication as a does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.
This document was produced by a group operating under the 5 February 2004 W3C Patent Policy. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy.
RDFa Core 1.1 [RDFA-CORE] defines core processing rules for independent of host language, and provides default processing rules for XML-based host languages.
The HTML4 [HTML40] RDFa Host Language is defined in [HTML-RDFA]. HTML+RDFa extends RDFa Core 1.1 [RDFA-CORE] with host-language specific processing rules.
RDFa Core 1.1 [RDFA-CORE] defines core processing rules for independent of host language, and provides default processing rules for XML-based host languages.
The HTML5 [HTML5] RDFa Host Language is defined in [HTML-RDFA]. HTML+RDFa extends RDFa Core 1.1 [RDFA-CORE] with host-language specific processing rules.
RDFa Core 1.1 [RDFA-CORE] Processor Status is an optional RDFa feature used to add triples for reporting on errors, warnings and other information. The processor adds a @rdfagraph
attribute to indicate if the processor should return the output graph, processor graph, or both.
The HTML5 [HTML5] RDFa Host Language is defined in [HTML-RDFA]. HTML+RDFa extends RDFa Core 1.1 [RDFA-CORE] with host-language specific processing rules.
Test | pyRdfa | RDF::RDFa | Semargl |
---|---|---|---|
Test 0235: rdfagraph='processor' does not generate standard triples | PASS | PASS | PASS |
Test 0237: rdfagraph='processor' with invalid SafeCURIE generates rdfa:Warning | PASS | PASS | PASS |
Test 0238: rdfagraph='processor' with missing Term definition generates rdfa:Warning | PASS | PASS | PASS |
Test 0239: rdfagraph='processor' with undefined prefix generates rdfa:Warning | PASS | PASS | PASS |
Test 0313: rdfagraph='processor' redefining an initial context prefix generates rdfa:PrefixRedefinition warning | PASS | PASS | PASS |
Percentage passed out of 5 Tests | 100.0% | 100.0% | 100.0% |
RDFa Core 1.1 [RDFA-CORE] Vocabulary Expansion is an optional RDFa extension used to perform limited OWL and RDFS expansion of terms associated with a Vocabulary.
The HTML5 [HTML5] RDFa Host Language is defined in [HTML-RDFA]. HTML+RDFa extends RDFa Core 1.1 [RDFA-CORE] with host-language specific processing rules.
Test | clj-rdfa | pyRdfa | RDF::RDFa | Semargl |
---|---|---|---|---|
Test 0240: vocab_expansion='true' expands sub-property | PASS | PASS | PASS | PASS |
Test 0241: vocab_expansion='true' expands equivalent-property | PASS | PASS | PASS | PASS |
Test 0242: vocab_expansion='true' expands referenced equivalent-property | PASS | PASS | PASS | PASS |
Test 0243: vocab_expansion='true' expands sub-class | PASS | PASS | PASS | PASS |
Test 0244: vocab_expansion='true' expands equivalent-class | PASS | PASS | PASS | PASS |
Test 0245: vocab_expansion='true' expands referenced equivalent-class | PASS | PASS | PASS | PASS |
Percentage passed out of 6 Tests | 100.0% | 100.0% | 100.0% | 100.0% |
RDFa Core 1.1 [RDFA-CORE] defines core processing rules for independent of host language, and provides default processing rules for XML-based host languages.
The HTML5 [HTML5] RDFa Host Language is defined in [HTML-RDFA]. HTML+RDFa extends RDFa Core 1.1 [RDFA-CORE] with host-language specific processing rules.
This report was tested using the following processors:
HTML4+RDFa 1.1 | 167/168 (99.4%) |
HTML5+RDFa 1.1 | 185/195 (94.9%) |
HTML5+RDFa 1.1 Vocabulary | 6/6 (100.0%) |
XHTML5+RDFa 1.1 | 187/197 (94.9%) |
HTML4+RDFa 1.1 | 166/168 (98.8%) |
HTML5+RDFa 1.1 | 186/195 (95.4%) |
XHTML5+RDFa 1.1 | 188/197 (95.4%) |
HTML4+RDFa 1.1 | 168/168 (100.0%) |
HTML5+RDFa 1.1 | 195/195 (100.0%) |
XHTML5+RDFa 1.1 | 197/197 (100.0%) |
HTML4+RDFa 1.1 | 159/168 (94.6%) |
HTML5+RDFa 1.1 | 166/195 (85.1%) |
XHTML5+RDFa 1.1 | 168/197 (85.3%) |
HTML4+RDFa 1.1 | 168/168 (100.0%) |
HTML5+RDFa 1.1 | 195/195 (100.0%) |
HTML5+RDFa 1.1 Processor Graph | 5/5 (100.0%) |
HTML5+RDFa 1.1 Vocabulary | 6/6 (100.0%) |
XHTML5+RDFa 1.1 | 197/197 (100.0%) |
HTML4+RDFa 1.1 | 161/168 (95.8%) |
HTML5+RDFa 1.1 | 179/195 (91.8%) |
XHTML5+RDFa 1.1 | 171/197 (86.8%) |
HTML4+RDFa 1.1 | 168/168 (100.0%) |
HTML5+RDFa 1.1 | 195/195 (100.0%) |
HTML5+RDFa 1.1 Processor Graph | 5/5 (100.0%) |
HTML5+RDFa 1.1 Vocabulary | 6/6 (100.0%) |
XHTML5+RDFa 1.1 | 197/197 (100.0%) |
HTML4+RDFa 1.1 | 168/168 (100.0%) |
HTML5+RDFa 1.1 | 195/195 (100.0%) |
HTML5+RDFa 1.1 Processor Graph | 5/5 (100.0%) |
HTML5+RDFa 1.1 Vocabulary | 6/6 (100.0%) |
XHTML5+RDFa 1.1 | 197/197 (100.0%) |
Tests are repeated for each RDFa version and Host Language as necessary, but are based on common tests with minor rewriting based on host language specific attributes.
Input and SPARQL representations are shown for XHTML5, but will have some slight variation for different host languages.
Tests @property to establish the predicate; literal object is in the content of the element.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0001</title>
</head>
<body>
<p>This photo was taken by <span class="author" about="photo1.jpg" property="dc:creator">Mark Birbeck</span>.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0001</title>
</head>
<body>
<p>This photo was taken by <span class="author" about="photo1.jpg" property="dc:creator">Mark Birbeck</span>.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0001</title>
</head>
<body>
<p>This photo was taken by <span class="author" about="photo1.jpg" property="dc:creator">Mark Birbeck</span>.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Tests @rev and @rel together, with the object being specified by @href, ignoring content
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0006</title>
</head>
<body>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator" rev="foaf:img"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
</body>
</html>
ASK WHERE {
<http://www.blogger.com/profile/1109404> <http://xmlns.com/foaf/0.1/img> <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/photo1.jpg> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> <http://www.blogger.com/profile/1109404> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0006</title>
</head>
<body>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator" rev="foaf:img"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
</body>
</html>
ASK WHERE {
<http://www.blogger.com/profile/1109404> <http://xmlns.com/foaf/0.1/img> <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/photo1.jpg> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> <http://www.blogger.com/profile/1109404> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0006</title>
</head>
<body>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator" rev="foaf:img"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
</body>
</html>
ASK WHERE {
<http://www.blogger.com/profile/1109404> <http://xmlns.com/foaf/0.1/img> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/photo1.jpg> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> <http://www.blogger.com/profile/1109404> .
}
Tests @rel, @rev, @property, and @content together to generate several RDF triples.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0007</title>
</head>
<body>
<p>This photo was taken by
<a about="photo1.jpg" property="dc:title"
content="Portrait of Mark" rel="dc:creator"
rev="foaf:img" href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
</body>
</html>
ASK WHERE {
<http://www.blogger.com/profile/1109404> <http://xmlns.com/foaf/0.1/img> <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/photo1.jpg> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/photo1.jpg> <http://purl.org/dc/elements/1.1/title> "Portrait of Mark" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> <http://www.blogger.com/profile/1109404> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0007</title>
</head>
<body>
<p>This photo was taken by
<a about="photo1.jpg" property="dc:title"
content="Portrait of Mark" rel="dc:creator"
rev="foaf:img" href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
</body>
</html>
ASK WHERE {
<http://www.blogger.com/profile/1109404> <http://xmlns.com/foaf/0.1/img> <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/photo1.jpg> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/photo1.jpg> <http://purl.org/dc/elements/1.1/title> "Portrait of Mark" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> <http://www.blogger.com/profile/1109404> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0007</title>
</head>
<body>
<p>This photo was taken by
<a about="photo1.jpg" property="dc:title"
content="Portrait of Mark" rel="dc:creator"
rev="foaf:img" href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
</body>
</html>
ASK WHERE {
<http://www.blogger.com/profile/1109404> <http://xmlns.com/foaf/0.1/img> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/photo1.jpg> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/photo1.jpg> <http://purl.org/dc/elements/1.1/title> "Portrait of Mark" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> <http://www.blogger.com/profile/1109404> .
}
Tests empty @about.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:cc="http://creativecommons.org/ns#">
<head>
<title>Test 0008</title>
</head>
<body>
<p>This document is licensed under a
<a about="" rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons
</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0008.html> <http://creativecommons.org/ns#license> <http://creativecommons.org/licenses/by-nc-nd/2.5/> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:cc="http://creativecommons.org/ns#">
<head>
<title>Test 0008</title>
</head>
<body>
<p>This document is licensed under a
<a about="" rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons
</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0008.html> <http://creativecommons.org/ns#license> <http://creativecommons.org/licenses/by-nc-nd/2.5/> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:cc="http://creativecommons.org/ns#">
<head>
<title>Test 0008</title>
</head>
<body>
<p>This document is licensed under a
<a about="" rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons
</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0008.xhtml> <http://creativecommons.org/ns#license> <http://creativecommons.org/licenses/by-nc-nd/2.5/> .
}
Tests @rev.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0009</title>
<link about="http://example.org/people#Person1"
rev="foaf:knows" href="http://example.org/people#Person2" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/people#Person2> <http://xmlns.com/foaf/0.1/knows> <http://example.org/people#Person1> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0009</title>
<link about="http://example.org/people#Person1"
rev="foaf:knows" href="http://example.org/people#Person2" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/people#Person2> <http://xmlns.com/foaf/0.1/knows> <http://example.org/people#Person1> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0009</title>
<link about="http://example.org/people#Person1"
rev="foaf:knows" href="http://example.org/people#Person2" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/people#Person2> <http://xmlns.com/foaf/0.1/knows> <http://example.org/people#Person1> .
}
Tests @rel, @rev, and @href to generate two RDF triples.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0010</title>
<link about="http://example.org/people#Person1"
rel="foaf:knows" rev="foaf:knows" href="http://example.org/people#Person2" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/people#Person1> <http://xmlns.com/foaf/0.1/knows> <http://example.org/people#Person2> .
<http://example.org/people#Person2> <http://xmlns.com/foaf/0.1/knows> <http://example.org/people#Person1> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0010</title>
<link about="http://example.org/people#Person1"
rel="foaf:knows" rev="foaf:knows" href="http://example.org/people#Person2" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/people#Person1> <http://xmlns.com/foaf/0.1/knows> <http://example.org/people#Person2> .
<http://example.org/people#Person2> <http://xmlns.com/foaf/0.1/knows> <http://example.org/people#Person1> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0010</title>
<link about="http://example.org/people#Person1"
rel="foaf:knows" rev="foaf:knows" href="http://example.org/people#Person2" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/people#Person1> <http://xmlns.com/foaf/0.1/knows> <http://example.org/people#Person2> .
<http://example.org/people#Person2> <http://xmlns.com/foaf/0.1/knows> <http://example.org/people#Person1> .
}
Tests setting the @datatype to xsd:integer
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:ex="http://example.org/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0014</title>
</head>
<body>
<p>
<span about="http://example.org/foo"
property="ex:bar" content="10" datatype="xsd:integer">ten</span>
</p>
</body>
</html>
ASK WHERE {
<http://example.org/foo> <http://example.org/bar> "10"^^<http://www.w3.org/2001/XMLSchema#integer> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:ex="http://example.org/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0014</title>
</head>
<body>
<p>
<span about="http://example.org/foo"
property="ex:bar" content="10" datatype="xsd:integer">ten</span>
</p>
</body>
</html>
ASK WHERE {
<http://example.org/foo> <http://example.org/bar> "10"^^<http://www.w3.org/2001/XMLSchema#integer> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ex="http://example.org/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0014</title>
</head>
<body>
<p>
<span about="http://example.org/foo"
property="ex:bar" content="10" datatype="xsd:integer">ten</span>
</p>
</body>
</html>
ASK WHERE {
<http://example.org/foo> <http://example.org/bar> "10"^^<http://www.w3.org/2001/XMLSchema#integer> .
}
Tests meta and link with no parent @about
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0015</title>
<link rel="dc:source" href="urn:isbn:0140449132" />
<meta property="dc:creator" content="Fyodor Dostoevsky" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0015.html> <http://purl.org/dc/elements/1.1/creator> "Fyodor Dostoevsky" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0015.html> <http://purl.org/dc/elements/1.1/source> <urn:isbn:0140449132> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0015</title>
<link rel="dc:source" href="urn:isbn:0140449132" />
<meta property="dc:creator" content="Fyodor Dostoevsky" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0015.html> <http://purl.org/dc/elements/1.1/creator> "Fyodor Dostoevsky" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0015.html> <http://purl.org/dc/elements/1.1/source> <urn:isbn:0140449132> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0015</title>
<link rel="dc:source" href="urn:isbn:0140449132" />
<meta property="dc:creator" content="Fyodor Dostoevsky" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0015.xhtml> <http://purl.org/dc/elements/1.1/creator> "Fyodor Dostoevsky" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0015.xhtml> <http://purl.org/dc/elements/1.1/source> <urn:isbn:0140449132> .
}
Tests creation of statements involving explicitly created blank nodes.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0017</title>
</head>
<body>
<p>
<span about="[_:a]" property="foaf:name">Manu Sporny</span>
<span about="[_:a]" rel="foaf:knows"
resource="[_:b]">knows</span>
<span about="[_:b]" property="foaf:name">Ralph Swick</span>.
</p>
</body>
</html>
ASK WHERE {
?x <http://xmlns.com/foaf/0.1/name> "Manu Sporny" .
?x <http://xmlns.com/foaf/0.1/knows> ?y .
?y <http://xmlns.com/foaf/0.1/name> "Ralph Swick" .
FILTER (isBlank(?x) && isBlank(?y))
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0017</title>
</head>
<body>
<p>
<span about="[_:a]" property="foaf:name">Manu Sporny</span>
<span about="[_:a]" rel="foaf:knows"
resource="[_:b]">knows</span>
<span about="[_:b]" property="foaf:name">Ralph Swick</span>.
</p>
</body>
</html>
ASK WHERE {
?x <http://xmlns.com/foaf/0.1/name> "Manu Sporny" .
?x <http://xmlns.com/foaf/0.1/knows> ?y .
?y <http://xmlns.com/foaf/0.1/name> "Ralph Swick" .
FILTER (isBlank(?x) && isBlank(?y))
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0017</title>
</head>
<body>
<p>
<span about="[_:a]" property="foaf:name">Manu Sporny</span>
<span about="[_:a]" rel="foaf:knows"
resource="[_:b]">knows</span>
<span about="[_:b]" property="foaf:name">Ralph Swick</span>.
</p>
</body>
</html>
ASK WHERE {
?x <http://xmlns.com/foaf/0.1/name> "Manu Sporny" .
?x <http://xmlns.com/foaf/0.1/knows> ?y .
?y <http://xmlns.com/foaf/0.1/name> "Ralph Swick" .
FILTER (isBlank(?x) && isBlank(?y))
}
Tests @rel to establish predicate.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0018</title>
</head>
<body>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> <http://www.blogger.com/profile/1109404> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0018</title>
</head>
<body>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> <http://www.blogger.com/profile/1109404> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0018</title>
</head>
<body>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> <http://www.blogger.com/profile/1109404> .
}
Tests @about to establish subject.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0019</title>
</head>
<body>
<div about="mailto:manu.sporny@digitalbazaar.com"
rel="foaf:knows" href="mailto:michael.hausenblas@joanneum.at"></div>
</body>
</html>
ASK WHERE {
<mailto:manu.sporny@digitalbazaar.com> <http://xmlns.com/foaf/0.1/knows> <mailto:michael.hausenblas@joanneum.at> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0019</title>
</head>
<body>
<div about="mailto:manu.sporny@digitalbazaar.com"
rel="foaf:knows" href="mailto:michael.hausenblas@joanneum.at"></div>
</body>
</html>
ASK WHERE {
<mailto:manu.sporny@digitalbazaar.com> <http://xmlns.com/foaf/0.1/knows> <mailto:michael.hausenblas@joanneum.at> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0019</title>
</head>
<body>
<div about="mailto:manu.sporny@digitalbazaar.com"
rel="foaf:knows" href="mailto:michael.hausenblas@joanneum.at"></div>
</body>
</html>
ASK WHERE {
<mailto:manu.sporny@digitalbazaar.com> <http://xmlns.com/foaf/0.1/knows> <mailto:michael.hausenblas@joanneum.at> .
}
Tests @about inheritance to establish subject.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0020</title>
</head>
<body>
<div about="photo1.jpg">
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0020</title>
</head>
<body>
<div about="photo1.jpg">
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0020</title>
</head>
<body>
<div about="photo1.jpg">
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Tests inheritance of subject when no @about can be found
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0021</title>
</head>
<body>
<div>
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0021.html> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0021</title>
</head>
<body>
<div>
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0021.html> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0021</title>
</head>
<body>
<div>
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0021.xhtml> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Tests that @id does not generate subjects
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0023</title>
</head>
<body>
<div id="photo1">
This photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0023.html> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0023</title>
</head>
<body>
<div id="photo1">
This photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0023.html> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0023</title>
</head>
<body>
<div id="photo1">
This photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0023.xhtml> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Tests simple chaining with cascade of @resource and @property
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0025</title>
</head>
<body>
<p>
This paper was written by
<span rel="dc:creator" resource="#me">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0025.html> <http://purl.org/dc/elements/1.1/creator> <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0025.html#me> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0025.html#me> <http://xmlns.com/foaf/0.1/name> "Ben Adida" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0025</title>
</head>
<body>
<p>
This paper was written by
<span rel="dc:creator" resource="#me">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0025.html> <http://purl.org/dc/elements/1.1/creator> <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0025.html#me> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0025.html#me> <http://xmlns.com/foaf/0.1/name> "Ben Adida" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0025</title>
</head>
<body>
<p>
This paper was written by
<span rel="dc:creator" resource="#me">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0025.xhtml> <http://purl.org/dc/elements/1.1/creator> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0025.xhtml#me> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0025.xhtml#me> <http://xmlns.com/foaf/0.1/name> "Ben Adida" .
}
Tests @content for literal object
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0026</title>
</head>
<body>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck" />
</p>
</body>
</html>
ASK WHERE {
<http://internet-apps.blogspot.com/> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0026</title>
</head>
<body>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck" />
</p>
</body>
</html>
ASK WHERE {
<http://internet-apps.blogspot.com/> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0026</title>
</head>
<body>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck" />
</p>
</body>
</html>
ASK WHERE {
<http://internet-apps.blogspot.com/> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Tests @content for literal object, overriding element content.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0027</title>
</head>
<body>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck">Mark B.
</span>
</p>
</body>
</html>
ASK WHERE {
<http://internet-apps.blogspot.com/> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0027</title>
</head>
<body>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck">Mark B.
</span>
</p>
</body>
</html>
ASK WHERE {
<http://internet-apps.blogspot.com/> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0027</title>
</head>
<body>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck">Mark B.
</span>
</p>
</body>
</html>
ASK WHERE {
<http://internet-apps.blogspot.com/> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Tests markup stripping from a span element with @datatype=xsd:string
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0029</title>
</head>
<body>
<p>
<span about="http://example.org/foo"
property="dc:creator" datatype="xsd:string"><b>M</b>ark <b>B</b>irbeck</span>.
</p>
</body>
</html>
ASK WHERE {
<http://example.org/foo> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck"^^<http://www.w3.org/2001/XMLSchema#string> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0029</title>
</head>
<body>
<p>
<span about="http://example.org/foo"
property="dc:creator" datatype="xsd:string"><b>M</b>ark <b>B</b>irbeck</span>.
</p>
</body>
</html>
ASK WHERE {
<http://example.org/foo> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck"^^<http://www.w3.org/2001/XMLSchema#string> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0029</title>
</head>
<body>
<p>
<span about="http://example.org/foo"
property="dc:creator" datatype="xsd:string"><b>M</b>ark <b>B</b>irbeck</span>.
</p>
</body>
</html>
ASK WHERE {
<http://example.org/foo> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck"^^<http://www.w3.org/2001/XMLSchema#string> .
}
Tests omitted @about.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:cc="http://creativecommons.org/ns#">
<head>
<title>Test 0030</title>
</head>
<body>
<p>This document is licensed under a
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons License
</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0030.html> <http://creativecommons.org/ns#license> <http://creativecommons.org/licenses/by-nc-nd/2.5/> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:cc="http://creativecommons.org/ns#">
<head>
<title>Test 0030</title>
</head>
<body>
<p>This document is licensed under a
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons License
</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0030.html> <http://creativecommons.org/ns#license> <http://creativecommons.org/licenses/by-nc-nd/2.5/> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:cc="http://creativecommons.org/ns#">
<head>
<title>Test 0030</title>
</head>
<body>
<p>This document is licensed under a
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons License
</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0030.xhtml> <http://creativecommons.org/ns#license> <http://creativecommons.org/licenses/by-nc-nd/2.5/> .
}
Tests if @resource sets URIref object correct.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0031</title>
</head>
<body>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<span rel="dc:identifier" resource="urn:ISBN:0752820907">0752820907</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0031.html#wtw> <http://purl.org/dc/elements/1.1/identifier> <urn:ISBN:0752820907> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0031</title>
</head>
<body>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<span rel="dc:identifier" resource="urn:ISBN:0752820907">0752820907</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0031.html#wtw> <http://purl.org/dc/elements/1.1/identifier> <urn:ISBN:0752820907> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0031</title>
</head>
<body>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<span rel="dc:identifier" resource="urn:ISBN:0752820907">0752820907</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0031.xhtml#wtw> <http://purl.org/dc/elements/1.1/identifier> <urn:ISBN:0752820907> .
}
Tests if @resource overrides @href to set the URIref object.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0032</title>
</head>
<body>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<a rel="dc:identifier" resource="urn:ISBN:0752820907"
href="http://www.amazon.com/Weaving-Web-Tim-Berners-Lee/dp/0752820907">0752820907</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0032.html#wtw> <http://purl.org/dc/elements/1.1/identifier> <urn:ISBN:0752820907> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0032</title>
</head>
<body>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<a rel="dc:identifier" resource="urn:ISBN:0752820907"
href="http://www.amazon.com/Weaving-Web-Tim-Berners-Lee/dp/0752820907">0752820907</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0032.html#wtw> <http://purl.org/dc/elements/1.1/identifier> <urn:ISBN:0752820907> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0032</title>
</head>
<body>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<a rel="dc:identifier" resource="urn:ISBN:0752820907"
href="http://www.amazon.com/Weaving-Web-Tim-Berners-Lee/dp/0752820907">0752820907</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0032.xhtml#wtw> <http://purl.org/dc/elements/1.1/identifier> <urn:ISBN:0752820907> .
}
Tests simple chaining with cascade of bNode and @property
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0033</title>
</head>
<body>
<p>
This paper was written by
<span rel="dc:creator">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0033.html> <http://purl.org/dc/elements/1.1/creator> ?a .
?a <http://xmlns.com/foaf/0.1/name> "Ben Adida" .
FILTER isBlank(?a)
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0033</title>
</head>
<body>
<p>
This paper was written by
<span rel="dc:creator">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0033.html> <http://purl.org/dc/elements/1.1/creator> ?a .
?a <http://xmlns.com/foaf/0.1/name> "Ben Adida" .
FILTER isBlank(?a)
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0033</title>
</head>
<body>
<p>
This paper was written by
<span rel="dc:creator">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0033.xhtml> <http://purl.org/dc/elements/1.1/creator> ?a .
?a <http://xmlns.com/foaf/0.1/name> "Ben Adida" .
FILTER isBlank(?a)
}
Tests if a @src (in img element) correctly sets the URIref object
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0034</title>
</head>
<body>
<div about="http://sw-app.org/mic.xhtml#i" rel="foaf:img">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2007_01.jpg> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0034</title>
</head>
<body>
<div about="http://sw-app.org/mic.xhtml#i" rel="foaf:img">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2007_01.jpg> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0034</title>
</head>
<body>
<div about="http://sw-app.org/mic.xhtml#i" rel="foaf:img">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2007_01.jpg> .
}
Tests if @href overwrites @src
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0035</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2006_03.jpg> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0035</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2006_03.jpg> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0035</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2006_03.jpg> .
}
Tests if @resource overwrites @src
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0036</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2006_03.jpg> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0036</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2006_03.jpg> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0036</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2006_03.jpg> .
}
Tests if @resource overwrites both @href and @src
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0037</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/mic.xhtml#photo> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0037</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/mic.xhtml#photo> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0037</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/mic.xhtml#photo> .
}
Tests if a @src (in img element) correctly sets the URIref subject (due to @rev)
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0038</title>
</head>
<body>
<div about="http://sw-app.org/mic.xhtml#i" rev="foaf:depicts">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/img/mic_2007_01.jpg> <http://xmlns.com/foaf/0.1/depicts> <http://sw-app.org/mic.xhtml#i> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0038</title>
</head>
<body>
<div about="http://sw-app.org/mic.xhtml#i" rev="foaf:depicts">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/img/mic_2007_01.jpg> <http://xmlns.com/foaf/0.1/depicts> <http://sw-app.org/mic.xhtml#i> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0038</title>
</head>
<body>
<div about="http://sw-app.org/mic.xhtml#i" rev="foaf:depicts">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/img/mic_2007_01.jpg> <http://xmlns.com/foaf/0.1/depicts> <http://sw-app.org/mic.xhtml#i> .
}
Tests if @href overwrites @src correctly to set the URIref subject (due to @rev)
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0039</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/img/mic_2006_03.jpg> <http://xmlns.com/foaf/0.1/depicts> <http://sw-app.org/mic.xhtml#i> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0039</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/img/mic_2006_03.jpg> <http://xmlns.com/foaf/0.1/depicts> <http://sw-app.org/mic.xhtml#i> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0039</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/img/mic_2006_03.jpg> <http://xmlns.com/foaf/0.1/depicts> <http://sw-app.org/mic.xhtml#i> .
}
Tests if @resource overwrites both @href and @src correctly to set the URIref subject (due to @rev)
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0041</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#photo> <http://xmlns.com/foaf/0.1/depicts> <http://sw-app.org/mic.xhtml#i> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0041</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#photo> <http://xmlns.com/foaf/0.1/depicts> <http://sw-app.org/mic.xhtml#i> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0041</title>
</head>
<body>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/mic.xhtml#photo> <http://xmlns.com/foaf/0.1/depicts> <http://sw-app.org/mic.xhtml#i> .
}
Tests @typeof with @about and @rel present, no @resource
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0048</title>
</head>
<body>
<div about="http://www.example.org/#me" rel="foaf:knows" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#me> <http://xmlns.com/foaf/0.1/knows> ?a .
?a <http://xmlns.com/foaf/0.1/name> "John Doe" .
FILTER isBlank(?a)
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0048</title>
</head>
<body>
<div about="http://www.example.org/#me" rel="foaf:knows" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#me> <http://xmlns.com/foaf/0.1/knows> ?a .
?a <http://xmlns.com/foaf/0.1/name> "John Doe" .
FILTER isBlank(?a)
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0048</title>
</head>
<body>
<div about="http://www.example.org/#me" rel="foaf:knows" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#me> <http://xmlns.com/foaf/0.1/knows> ?a .
?a <http://xmlns.com/foaf/0.1/name> "John Doe" .
FILTER isBlank(?a)
}
Tests @typeof with @about, no @rel or @resource
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0049</title>
</head>
<body>
<div about="http://www.example.org/#me" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#me> <http://xmlns.com/foaf/0.1/name> "John Doe" .
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0049</title>
</head>
<body>
<div about="http://www.example.org/#me" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#me> <http://xmlns.com/foaf/0.1/name> "John Doe" .
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0049</title>
</head>
<body>
<div about="http://www.example.org/#me" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#me> <http://xmlns.com/foaf/0.1/name> "John Doe" .
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
}
Tests @typeof without anything else
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0050</title>
</head>
<body>
<div typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/name> "John Doe" .
?a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
FILTER isBlank(?a)
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0050</title>
</head>
<body>
<div typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/name> "John Doe" .
?a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
FILTER isBlank(?a)
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0050</title>
</head>
<body>
<div typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/name> "John Doe" .
?a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
FILTER isBlank(?a)
}
Tests @typeof with a single @property
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0051</title>
</head>
<body>
<p about="" typeof="foaf:Document" property="foaf:topic">John Doe</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0051.html> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Document> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0051.html> <http://xmlns.com/foaf/0.1/topic> "John Doe" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0051</title>
</head>
<body>
<p about="" typeof="foaf:Document" property="foaf:topic">John Doe</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0051.html> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Document> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0051.html> <http://xmlns.com/foaf/0.1/topic> "John Doe" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0051</title>
</head>
<body>
<p about="" typeof="foaf:Document" property="foaf:topic">John Doe</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0051.xhtml> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Document> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0051.xhtml> <http://xmlns.com/foaf/0.1/topic> "John Doe" .
}
Tests to ensure that @typeof does not apply to @resource
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0052</title>
</head>
<body>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
John Doe
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0052</title>
</head>
<body>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
John Doe
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0052</title>
</head>
<body>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
John Doe
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
}
Tests to make sure that @typeof does not apply to @resource, but @resource sets the subject for the next triple to be generated
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0053</title>
</head>
<body>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
<span property="foaf:name">John Doe</span>
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#me> <http://xmlns.com/foaf/0.1/name> "John Doe" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0053</title>
</head>
<body>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
<span property="foaf:name">John Doe</span>
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#me> <http://xmlns.com/foaf/0.1/name> "John Doe" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0053</title>
</head>
<body>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
<span property="foaf:name">John Doe</span>
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#me> <http://xmlns.com/foaf/0.1/name> "John Doe" .
}
Tests multiple @property separated by white spaces
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0054</title>
</head>
<body>
<p>
This document was authored and published by
<span about="" property="dc:creator dc:publisher">Fabien Gandon</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0054.html> <http://purl.org/dc/elements/1.1/creator> "Fabien Gandon" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0054.html> <http://purl.org/dc/elements/1.1/publisher> "Fabien Gandon" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0054</title>
</head>
<body>
<p>
This document was authored and published by
<span about="" property="dc:creator dc:publisher">Fabien Gandon</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0054.html> <http://purl.org/dc/elements/1.1/creator> "Fabien Gandon" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0054.html> <http://purl.org/dc/elements/1.1/publisher> "Fabien Gandon" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0054</title>
</head>
<body>
<p>
This document was authored and published by
<span about="" property="dc:creator dc:publisher">Fabien Gandon</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0054.xhtml> <http://purl.org/dc/elements/1.1/creator> "Fabien Gandon" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0054.xhtml> <http://purl.org/dc/elements/1.1/publisher> "Fabien Gandon" .
}
Tests multiple @rel separated by white spaces
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0055</title>
</head>
<body>
<p>
This document was authored and published by
<a about="" rel="dc:creator dc:publisher" href="http://www-sop.inria.fr/acacia/fabien/">Fabien Gandon</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0055.html> <http://purl.org/dc/elements/1.1/creator> <http://www-sop.inria.fr/acacia/fabien/> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0055.html> <http://purl.org/dc/elements/1.1/publisher> <http://www-sop.inria.fr/acacia/fabien/> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0055</title>
</head>
<body>
<p>
This document was authored and published by
<a about="" rel="dc:creator dc:publisher" href="http://www-sop.inria.fr/acacia/fabien/">Fabien Gandon</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0055.html> <http://purl.org/dc/elements/1.1/creator> <http://www-sop.inria.fr/acacia/fabien/> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0055.html> <http://purl.org/dc/elements/1.1/publisher> <http://www-sop.inria.fr/acacia/fabien/> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0055</title>
</head>
<body>
<p>
This document was authored and published by
<a about="" rel="dc:creator dc:publisher" href="http://www-sop.inria.fr/acacia/fabien/">Fabien Gandon</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0055.xhtml> <http://purl.org/dc/elements/1.1/creator> <http://www-sop.inria.fr/acacia/fabien/> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0055.xhtml> <http://purl.org/dc/elements/1.1/publisher> <http://www-sop.inria.fr/acacia/fabien/> .
}
Tests if @typeof applies to @about on same element with hanging @rel
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0056</title>
</head>
<body>
<div about="http://www.example.org/#ben" typeof="foaf:Person" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#ben> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#mark> .
<http://www.example.org/#mark> <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0056</title>
</head>
<body>
<div about="http://www.example.org/#ben" typeof="foaf:Person" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#ben> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#mark> .
<http://www.example.org/#mark> <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0056</title>
</head>
<body>
<div about="http://www.example.org/#ben" typeof="foaf:Person" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#ben> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#mark> .
<http://www.example.org/#mark> <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
}
Tests if hanging @rel creates multiple triples
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0057</title>
</head>
<body>
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
<p about="http://www.example.org/#ivan" property="foaf:name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#mark> .
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#ivan> .
<http://www.example.org/#mark> <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
<http://www.example.org/#ivan> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0057</title>
</head>
<body>
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
<p about="http://www.example.org/#ivan" property="foaf:name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#mark> .
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#ivan> .
<http://www.example.org/#mark> <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
<http://www.example.org/#ivan> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0057</title>
</head>
<body>
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
<p about="http://www.example.org/#ivan" property="foaf:name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#mark> .
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#ivan> .
<http://www.example.org/#mark> <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
<http://www.example.org/#ivan> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Tests multiple hanging @rels with multiple children
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0059</title>
</head>
<body>
<p>This document was authored and published by:</p>
<ul rel="dc:creator dc:publisher">
<li about="http://www.example.org/#manu" property="foaf:name">Manu Sporny</li>
<li about="http://www.example.org/#fabien" property="foaf:name">Fabien Gandon</li>
</ul>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0059.html> <http://purl.org/dc/elements/1.1/creator> <http://www.example.org/#manu> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0059.html> <http://purl.org/dc/elements/1.1/publisher> <http://www.example.org/#manu> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0059.html> <http://purl.org/dc/elements/1.1/creator> <http://www.example.org/#fabien> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0059.html> <http://purl.org/dc/elements/1.1/publisher> <http://www.example.org/#fabien> .
<http://www.example.org/#manu> <http://xmlns.com/foaf/0.1/name> "Manu Sporny" .
<http://www.example.org/#fabien> <http://xmlns.com/foaf/0.1/name> "Fabien Gandon" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0059</title>
</head>
<body>
<p>This document was authored and published by:</p>
<ul rel="dc:creator dc:publisher">
<li about="http://www.example.org/#manu" property="foaf:name">Manu Sporny</li>
<li about="http://www.example.org/#fabien" property="foaf:name">Fabien Gandon</li>
</ul>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0059.html> <http://purl.org/dc/elements/1.1/creator> <http://www.example.org/#manu> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0059.html> <http://purl.org/dc/elements/1.1/publisher> <http://www.example.org/#manu> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0059.html> <http://purl.org/dc/elements/1.1/creator> <http://www.example.org/#fabien> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0059.html> <http://purl.org/dc/elements/1.1/publisher> <http://www.example.org/#fabien> .
<http://www.example.org/#manu> <http://xmlns.com/foaf/0.1/name> "Manu Sporny" .
<http://www.example.org/#fabien> <http://xmlns.com/foaf/0.1/name> "Fabien Gandon" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0059</title>
</head>
<body>
<p>This document was authored and published by:</p>
<ul rel="dc:creator dc:publisher">
<li about="http://www.example.org/#manu" property="foaf:name">Manu Sporny</li>
<li about="http://www.example.org/#fabien" property="foaf:name">Fabien Gandon</li>
</ul>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0059.xhtml> <http://purl.org/dc/elements/1.1/creator> <http://www.example.org/#manu> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0059.xhtml> <http://purl.org/dc/elements/1.1/publisher> <http://www.example.org/#manu> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0059.xhtml> <http://purl.org/dc/elements/1.1/creator> <http://www.example.org/#fabien> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0059.xhtml> <http://purl.org/dc/elements/1.1/publisher> <http://www.example.org/#fabien> .
<http://www.example.org/#manu> <http://xmlns.com/foaf/0.1/name> "Manu Sporny" .
<http://www.example.org/#fabien> <http://xmlns.com/foaf/0.1/name> "Fabien Gandon" .
}
Tests conformance with UTF-8 encoding
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0060</title>
</head>
<body>
<div about="http://www.example.org/#matsumoto-kimiko"
typeof="foaf:Person">
<p property="foaf:name">松本 后子</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#matsumoto-kimiko> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#matsumoto-kimiko> <http://xmlns.com/foaf/0.1/name> "松本 后子" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0060</title>
</head>
<body>
<div about="http://www.example.org/#matsumoto-kimiko"
typeof="foaf:Person">
<p property="foaf:name">松本 后子</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#matsumoto-kimiko> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#matsumoto-kimiko> <http://xmlns.com/foaf/0.1/name> "松本 后子" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0060</title>
</head>
<body>
<div about="http://www.example.org/#matsumoto-kimiko"
typeof="foaf:Person">
<p property="foaf:name">松本 后子</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#matsumoto-kimiko> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/#matsumoto-kimiko> <http://xmlns.com/foaf/0.1/name> "松本 后子" .
}
Tests @rel in head using reserved XHTML value and empty-prefix CURIE syntax
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0063</title>
<link rel=":next" href="http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0064.html" />
</head>
<body>
<p>This is the 63<sup>rd</sup> test. The next test is #64.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0063.html> <http://www.w3.org/1999/xhtml/vocab#next> <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0064.html> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0063</title>
<link rel=":next" href="http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0064.html" />
</head>
<body>
<p>This is the 63<sup>rd</sup> test. The next test is #64.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0063.html> <http://www.w3.org/1999/xhtml/vocab#next> <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0064.html> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0063</title>
<link rel=":next" href="http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0064.xhtml" />
</head>
<body>
<p>This is the 63<sup>rd</sup> test. The next test is #64.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0063.xhtml> <http://www.w3.org/1999/xhtml/vocab#next> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0064.xhtml> .
}
Tests if @about generates a proper triple when a safe CURIE is used
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0064</title>
</head>
<body>
<p about="[_:michael]">Michael knows
<a rel="foaf:knows" href="http://digitalbazaar.com/people/manu">Manu</a>.
</p>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/knows> <http://digitalbazaar.com/people/manu> .
FILTER isBlank(?a)
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0064</title>
</head>
<body>
<p about="[_:michael]">Michael knows
<a rel="foaf:knows" href="http://digitalbazaar.com/people/manu">Manu</a>.
</p>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/knows> <http://digitalbazaar.com/people/manu> .
FILTER isBlank(?a)
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0064</title>
</head>
<body>
<p about="[_:michael]">Michael knows
<a rel="foaf:knows" href="http://digitalbazaar.com/people/manu">Manu</a>.
</p>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/knows> <http://digitalbazaar.com/people/manu> .
FILTER isBlank(?a)
}
Tests if @rel properly connects triples generated when safe CURIEs are used
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0065</title>
</head>
<body>
<div about="[_:manu]">
Manu Sporny can be reached via
<a rel="foaf:mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="foaf:knows" resource="[_:michael]">He knows Michael.</span>
</div>
<div about="[_:michael]">
Michael can be reached via
<a rel="foaf:mbox" href="mailto:michael.hausenblas@joanneum.at">email</a>.
</div>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/mbox> <mailto:manu.sporny@digitalbazaar.com> .
?b <http://xmlns.com/foaf/0.1/mbox> <mailto:michael.hausenblas@joanneum.at> .
?a <http://xmlns.com/foaf/0.1/knows> ?b .
FILTER ( isBlank(?a) && isBlank(?b) )
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0065</title>
</head>
<body>
<div about="[_:manu]">
Manu Sporny can be reached via
<a rel="foaf:mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="foaf:knows" resource="[_:michael]">He knows Michael.</span>
</div>
<div about="[_:michael]">
Michael can be reached via
<a rel="foaf:mbox" href="mailto:michael.hausenblas@joanneum.at">email</a>.
</div>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/mbox> <mailto:manu.sporny@digitalbazaar.com> .
?b <http://xmlns.com/foaf/0.1/mbox> <mailto:michael.hausenblas@joanneum.at> .
?a <http://xmlns.com/foaf/0.1/knows> ?b .
FILTER ( isBlank(?a) && isBlank(?b) )
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0065</title>
</head>
<body>
<div about="[_:manu]">
Manu Sporny can be reached via
<a rel="foaf:mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="foaf:knows" resource="[_:michael]">He knows Michael.</span>
</div>
<div about="[_:michael]">
Michael can be reached via
<a rel="foaf:mbox" href="mailto:michael.hausenblas@joanneum.at">email</a>.
</div>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/mbox> <mailto:manu.sporny@digitalbazaar.com> .
?b <http://xmlns.com/foaf/0.1/mbox> <mailto:michael.hausenblas@joanneum.at> .
?a <http://xmlns.com/foaf/0.1/knows> ?b .
FILTER ( isBlank(?a) && isBlank(?b) )
}
Test to make sure that @about (with current document) is implied in the head, and the proper triples are generated using @typeof
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head typeof="foaf:Document">
<title>Test 0066</title>
</head>
<body>
<p>This is test #66.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0066.html> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Document> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head typeof="foaf:Document">
<title>Test 0066</title>
</head>
<body>
<p>This is test #66.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0066.html> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Document> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head typeof="foaf:Document">
<title>Test 0066</title>
</head>
<body>
<p>This is test #66.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0066.xhtml> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Document> .
}
Test to make sure that @property in head uses the implied current document as the subject if no other subject is specified
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title property="foaf:topic">Test 0067</title>
</head>
<body>
<p>This is test #67.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0067.html> <http://xmlns.com/foaf/0.1/topic> "Test 0067" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title property="foaf:topic">Test 0067</title>
</head>
<body>
<p>This is test #67.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0067.html> <http://xmlns.com/foaf/0.1/topic> "Test 0067" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title property="foaf:topic">Test 0067</title>
</head>
<body>
<p>This is test #67.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0067.xhtml> <http://xmlns.com/foaf/0.1/topic> "Test 0067" .
}
Tests to ensure that relative URI is resolved correctly when used in @about
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0068</title>
</head>
<body>
<p about="0067.html">
The previous test was
<span property="dc:title">Test 0067</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0067.html> <http://purl.org/dc/elements/1.1/title> "Test 0067" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0068</title>
</head>
<body>
<p about="0067.html">
The previous test was
<span property="dc:title">Test 0067</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0067.html> <http://purl.org/dc/elements/1.1/title> "Test 0067" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0068</title>
</head>
<body>
<p about="0067.xhtml">
The previous test was
<span property="dc:title">Test 0067</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0067.xhtml> <http://purl.org/dc/elements/1.1/title> "Test 0067" .
}
Tests to ensure that relative URI is resolved correctly when used in @href
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0069</title>
</head>
<body>
<p>The next test will be
<a about="" rel="xhv:next" href="0070.html">Test 0070</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0069.html> <http://www.w3.org/1999/xhtml/vocab#next> <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0070.html> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0069</title>
</head>
<body>
<p>The next test will be
<a about="" rel="xhv:next" href="0070.html">Test 0070</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0069.html> <http://www.w3.org/1999/xhtml/vocab#next> <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0070.html> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0069</title>
</head>
<body>
<p>The next test will be
<a about="" rel="xhv:next" href="0070.xhtml">Test 0070</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0069.xhtml> <http://www.w3.org/1999/xhtml/vocab#next> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0070.xhtml> .
}
Tests to ensure that relative URI is resolved correctly when used in @resource
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0070</title>
</head>
<body>
<p>The previous test was
<span about="" rel="xhv:prev" resource="0069.html">Test 0069</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0070.html> <http://www.w3.org/1999/xhtml/vocab#prev> <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0069.html> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0070</title>
</head>
<body>
<p>The previous test was
<span about="" rel="xhv:prev" resource="0069.html">Test 0069</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0070.html> <http://www.w3.org/1999/xhtml/vocab#prev> <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0069.html> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0070</title>
</head>
<body>
<p>The previous test was
<span about="" rel="xhv:prev" resource="0069.xhtml">Test 0069</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0070.xhtml> <http://www.w3.org/1999/xhtml/vocab#prev> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0069.xhtml> .
}
Tests to ensure that a triple is generated even if @typeof and @about is not specified anywhere in the document
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:cc="http://creativecommons.org/ns#">
<head>
<title>Test 0071</title>
</head>
<body>
<p>This page is under a Creative Commons
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nd/3.0/">
Attribution-No Derivatives 3.0 license</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0071.html> <http://creativecommons.org/ns#license> <http://creativecommons.org/licenses/by-nd/3.0/> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:cc="http://creativecommons.org/ns#">
<head>
<title>Test 0071</title>
</head>
<body>
<p>This page is under a Creative Commons
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nd/3.0/">
Attribution-No Derivatives 3.0 license</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0071.html> <http://creativecommons.org/ns#license> <http://creativecommons.org/licenses/by-nd/3.0/> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:cc="http://creativecommons.org/ns#">
<head>
<title>Test 0071</title>
</head>
<body>
<p>This page is under a Creative Commons
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nd/3.0/">
Attribution-No Derivatives 3.0 license</a>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0071.xhtml> <http://creativecommons.org/ns#license> <http://creativecommons.org/licenses/by-nd/3.0/> .
}
Tests to ensure that relative URIs are resolved correctly when used in @about with XHTML base set in head
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"></base>
<title>Test 0072</title>
</head>
<body>
<p about="faq">
Learn more by reading the example.org
<span property="dc:title">Example FAQ</span>.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/faq> <http://purl.org/dc/elements/1.1/title> "Example FAQ" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"></base>
<title>Test 0072</title>
</head>
<body>
<p about="faq">
Learn more by reading the example.org
<span property="dc:title">Example FAQ</span>.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/faq> <http://purl.org/dc/elements/1.1/title> "Example FAQ" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"></base>
<title>Test 0072</title>
</head>
<body>
<p about="faq">
Learn more by reading the example.org
<span property="dc:title">Example FAQ</span>.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/faq> <http://purl.org/dc/elements/1.1/title> "Example FAQ" .
}
Tests to ensure that relative URIs are resolved correctly when used in @resource with XHTML base set in head
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"></base>
<title>Test 0073</title>
</head>
<body>
<p>
This article was written by
<span rel="dc:creator" resource="jane">Jane</span>.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/> <http://purl.org/dc/elements/1.1/creator> <http://www.example.org/jane> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"></base>
<title>Test 0073</title>
</head>
<body>
<p>
This article was written by
<span rel="dc:creator" resource="jane">Jane</span>.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/> <http://purl.org/dc/elements/1.1/creator> <http://www.example.org/jane> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"></base>
<title>Test 0073</title>
</head>
<body>
<p>
This article was written by
<span rel="dc:creator" resource="jane">Jane</span>.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/> <http://purl.org/dc/elements/1.1/creator> <http://www.example.org/jane> .
}
Tests to ensure that relative URIs are resolved correctly when used in @href with XHTML base set in head
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"></base>
<title>Test 0074</title>
</head>
<body>
<p>
This article was written by
<a rel="dc:creator" href="jane">Jane</a>.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/> <http://purl.org/dc/elements/1.1/creator> <http://www.example.org/jane> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"></base>
<title>Test 0074</title>
</head>
<body>
<p>
This article was written by
<a rel="dc:creator" href="jane">Jane</a>.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/> <http://purl.org/dc/elements/1.1/creator> <http://www.example.org/jane> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"></base>
<title>Test 0074</title>
</head>
<body>
<p>
This article was written by
<a rel="dc:creator" href="jane">Jane</a>.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/> <http://purl.org/dc/elements/1.1/creator> <http://www.example.org/jane> .
}
Tests to ensure that the XHTML+RDFa reserved word 'license' when used in @rel (with no @about) generates the proper triple
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"></base>
<title>Test 0075</title>
</head>
<body>
<p>
This page is under a Creative Commons
<a rel="license" href="http://creativecommons.org/licenses/by-nd/3.0/">Attribution-No Derivatives 3.0 license</a>.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/> <http://www.w3.org/1999/xhtml/vocab#license> <http://creativecommons.org/licenses/by-nd/3.0/> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"></base>
<title>Test 0075</title>
</head>
<body>
<p>
This page is under a Creative Commons
<a rel="license" href="http://creativecommons.org/licenses/by-nd/3.0/">Attribution-No Derivatives 3.0 license</a>.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/> <http://www.w3.org/1999/xhtml/vocab#license> <http://creativecommons.org/licenses/by-nd/3.0/> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"></base>
<title>Test 0075</title>
</head>
<body>
<p>
This page is under a Creative Commons
<a rel="license" href="http://creativecommons.org/licenses/by-nd/3.0/">Attribution-No Derivatives 3.0 license</a>.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/> <http://www.w3.org/1999/xhtml/vocab#license> <http://creativecommons.org/licenses/by-nd/3.0/> .
}
Tests role of @resource and @href in completing incomplete triples (including their mutual priorities)
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0079</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows>
<http://www.ivan-herman.org/Ivan_Herman> ,
<http://www.w3.org/People/Berners-Lee/card#i> ,
<http://danbri.org/foaf.rdf#danbri> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0079</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows>
<http://www.ivan-herman.org/Ivan_Herman> ,
<http://www.w3.org/People/Berners-Lee/card#i> ,
<http://danbri.org/foaf.rdf#danbri> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0079</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows>
<http://www.ivan-herman.org/Ivan_Herman> ,
<http://www.w3.org/People/Berners-Lee/card#i> ,
<http://danbri.org/foaf.rdf#danbri> .
}
Tests if @about has a higher priority than @resource in handling incomplete triples
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0080</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="http://danbri.org/foaf.rdf#danbri" resource="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> <http://danbri.org/foaf.rdf#danbri> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0080</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="http://danbri.org/foaf.rdf#danbri" resource="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> <http://danbri.org/foaf.rdf#danbri> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0080</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="http://danbri.org/foaf.rdf#danbri" resource="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> <http://danbri.org/foaf.rdf#danbri> .
}
Tests multiple ways of handling incomplete triples; the first two triples should use the same bNode as subject ('merged'); the third case should use @about
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0083</title>
</head>
<body>
<div about="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> <http://danbri.org/foaf.rdf#danbri> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
<http://danbri.org/foaf.rdf#danbri> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://danbri.org/foaf.rdf#danbri> <http://xmlns.com/foaf/0.1/name> "Dan Brickley" .
FILTER isBlank(?a)
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0083</title>
</head>
<body>
<div about="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> <http://danbri.org/foaf.rdf#danbri> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
<http://danbri.org/foaf.rdf#danbri> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://danbri.org/foaf.rdf#danbri> <http://xmlns.com/foaf/0.1/name> "Dan Brickley" .
FILTER isBlank(?a)
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0083</title>
</head>
<body>
<div about="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> <http://danbri.org/foaf.rdf#danbri> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
<http://danbri.org/foaf.rdf#danbri> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://danbri.org/foaf.rdf#danbri> <http://xmlns.com/foaf/0.1/name> "Dan Brickley" .
FILTER isBlank(?a)
}
Tests multiple ways of handling incomplete triples, this time with both @rel and @rev. There is an intermediate div that should be ignored by the process
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0084</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<div>
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> <http://danbri.org/foaf.rdf#danbri> .
?a <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
<http://danbri.org/foaf.rdf#danbri> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://danbri.org/foaf.rdf#danbri> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
<http://danbri.org/foaf.rdf#danbri> <http://xmlns.com/foaf/0.1/name> "Dan Brickley" .
FILTER isBlank(?a)
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0084</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<div>
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> <http://danbri.org/foaf.rdf#danbri> .
?a <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
<http://danbri.org/foaf.rdf#danbri> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://danbri.org/foaf.rdf#danbri> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
<http://danbri.org/foaf.rdf#danbri> <http://xmlns.com/foaf/0.1/name> "Dan Brickley" .
FILTER isBlank(?a)
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0084</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<div>
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> <http://danbri.org/foaf.rdf#danbri> .
?a <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
<http://danbri.org/foaf.rdf#danbri> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://danbri.org/foaf.rdf#danbri> <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
<http://danbri.org/foaf.rdf#danbri> <http://xmlns.com/foaf/0.1/name> "Dan Brickley" .
FILTER isBlank(?a)
}
Tests the role of @resource and @href in completing incomplete triples (including their mutual priorities), but with an intermediate layer (ie, bNode) added
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0085</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<div rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> _:a.
_:a <http://xmlns.com/foaf/0.1/knows> <http://www.ivan-herman.org/Ivan_Herman> ,
<http://www.w3.org/People/Berners-Lee/card#i> ,
<http://danbri.org/foaf.rdf#danbri> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0085</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<div rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> _:a.
_:a <http://xmlns.com/foaf/0.1/knows> <http://www.ivan-herman.org/Ivan_Herman> ,
<http://www.w3.org/People/Berners-Lee/card#i> ,
<http://danbri.org/foaf.rdf#danbri> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0085</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<div rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> _:a.
_:a <http://xmlns.com/foaf/0.1/knows> <http://www.ivan-herman.org/Ivan_Herman> ,
<http://www.w3.org/People/Berners-Lee/card#i> ,
<http://danbri.org/foaf.rdf#danbri> .
}
Tests to ensure that all reserved XHTML words are supported in @rel (with :xxx)
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0087</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=":cite" href="http://example.org/cite">cite</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=":first" href="http://example.org/first">first</a>
<a rel=":last" href="http://example.org/last">last</a>
<a rel=":license" href="http://example.org/license">license</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=":stylesheet" href="http://example.org/stylesheet">stylesheet</a>
<a rel=":up" href="http://example.org/up">up</a>
</p>
</body>
</html>
ASK WHERE { <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0087.html>
<http://www.w3.org/1999/xhtml/vocab#alternate>
<http://example.org/alternate> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0087.html>
<http://www.w3.org/1999/xhtml/vocab#appendix>
<http://example.org/appendix> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0087.html>
<http://www.w3.org/1999/xhtml/vocab#bookmark>
<http://example.org/bookmark> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0087.html>
<http://www.w3.org/1999/xhtml/vocab#cite>
<http://example.org/cite> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0087.html>
<http://www.w3.org/1999/xhtml/vocab#chapter>
<http://example.org/chapter> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0087.html>
<http://www.w3.org/1999/xhtml/vocab#contents>
<http://example.org/contents> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0087.html>
<http://www.w3.org/1999/xhtml/vocab#copyright>
<http://example.org/copyright> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0087.html>
<http://www.w3.org/1999/xhtml/vocab#glossary>
<http://example.org/glossary> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0087.html>
<http://www.w3.org/1999/xhtml/vocab#help>
<http://example.org/help> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0087.html>
<http://www.w3.org/1999/xhtml/vocab#icon>
<http://example.org/icon> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0087.html>
<http://www.w3.org/1999/xhtml/vocab#index>
<http://example.org/index> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0087.html>
<http://www.w3.org/1999/xhtml/vocab#meta>
<http://example.org/meta> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0087.html>
<http://www.w3.org/1999/xhtml/vocab#next>
<http://example.org/next> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0087.html>
<http://www.w3.org/1999/xhtml/vocab#p3pv1>
<http://example.org/p3pv1> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0087.html>
<http://www.w3.org/1999/xhtml/vocab#prev>
<http://example.org/prev> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0087.html>
<http://www.w3.org/1999/xhtml/vocab#role>
<http://example.org/role> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0087.html>
<http://www.w3.org/1999/xhtml/vocab#section>
<http://example.org/section> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0087.html>
<http://www.w3.org/1999/xhtml/vocab#subsection>
<http://example.org/subsection> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0087.html>
<http://www.w3.org/1999/xhtml/vocab#start>
<http://example.org/start> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0087.html>
<http://www.w3.org/1999/xhtml/vocab#license>
<http://example.org/license> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0087.html>
<http://www.w3.org/1999/xhtml/vocab#up>
<http://example.org/up> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0087.html>
<http://www.w3.org/1999/xhtml/vocab#first>
<http://example.org/first> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0087.html>
<http://www.w3.org/1999/xhtml/vocab#last>
<http://example.org/last> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0087.html>
<http://www.w3.org/1999/xhtml/vocab#stylesheet>
<http://example.org/stylesheet> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0087</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=":cite" href="http://example.org/cite">cite</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=":first" href="http://example.org/first">first</a>
<a rel=":last" href="http://example.org/last">last</a>
<a rel=":license" href="http://example.org/license">license</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=":stylesheet" href="http://example.org/stylesheet">stylesheet</a>
<a rel=":up" href="http://example.org/up">up</a>
</p>
</body>
</html>
ASK WHERE { <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#alternate>
<http://example.org/alternate> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#appendix>
<http://example.org/appendix> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#bookmark>
<http://example.org/bookmark> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#cite>
<http://example.org/cite> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#chapter>
<http://example.org/chapter> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#contents>
<http://example.org/contents> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#copyright>
<http://example.org/copyright> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#glossary>
<http://example.org/glossary> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#help>
<http://example.org/help> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#icon>
<http://example.org/icon> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#index>
<http://example.org/index> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#meta>
<http://example.org/meta> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#next>
<http://example.org/next> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#p3pv1>
<http://example.org/p3pv1> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#prev>
<http://example.org/prev> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#role>
<http://example.org/role> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#section>
<http://example.org/section> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#subsection>
<http://example.org/subsection> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#start>
<http://example.org/start> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#license>
<http://example.org/license> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#up>
<http://example.org/up> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#first>
<http://example.org/first> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#last>
<http://example.org/last> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0087.html>
<http://www.w3.org/1999/xhtml/vocab#stylesheet>
<http://example.org/stylesheet> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0087</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=":cite" href="http://example.org/cite">cite</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=":first" href="http://example.org/first">first</a>
<a rel=":last" href="http://example.org/last">last</a>
<a rel=":license" href="http://example.org/license">license</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=":stylesheet" href="http://example.org/stylesheet">stylesheet</a>
<a rel=":up" href="http://example.org/up">up</a>
</p>
</body>
</html>
ASK WHERE { <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#alternate>
<http://example.org/alternate> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#appendix>
<http://example.org/appendix> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#bookmark>
<http://example.org/bookmark> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#cite>
<http://example.org/cite> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#chapter>
<http://example.org/chapter> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#contents>
<http://example.org/contents> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#copyright>
<http://example.org/copyright> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#glossary>
<http://example.org/glossary> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#help>
<http://example.org/help> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#icon>
<http://example.org/icon> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#index>
<http://example.org/index> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#meta>
<http://example.org/meta> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#next>
<http://example.org/next> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#p3pv1>
<http://example.org/p3pv1> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#prev>
<http://example.org/prev> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#role>
<http://example.org/role> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#section>
<http://example.org/section> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#subsection>
<http://example.org/subsection> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#start>
<http://example.org/start> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#license>
<http://example.org/license> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#up>
<http://example.org/up> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#first>
<http://example.org/first> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#last>
<http://example.org/last> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0087.xhtml>
<http://www.w3.org/1999/xhtml/vocab#stylesheet>
<http://example.org/stylesheet> .
}
Test the interpretation of the CURIE "_:"
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0088</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="[_:]" property="foaf:name">Dan Brickley</p>
<p about="[_:]" typeof="foaf:Person">Dan Brickley again:-)</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
?a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?a <http://xmlns.com/foaf/0.1/name> "Dan Brickley" .
FILTER isBlank(?a)
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0088</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="[_:]" property="foaf:name">Dan Brickley</p>
<p about="[_:]" typeof="foaf:Person">Dan Brickley again:-)</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
?a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?a <http://xmlns.com/foaf/0.1/name> "Dan Brickley" .
FILTER isBlank(?a)
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0088</title>
</head>
<body>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="[_:]" property="foaf:name">Dan Brickley</p>
<p about="[_:]" typeof="foaf:Person">Dan Brickley again:-)</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
?a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?a <http://xmlns.com/foaf/0.1/name> "Dan Brickley" .
FILTER isBlank(?a)
}
Tests to ensure that @src sets a new subject (focuses on @typeof).
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0089</title>
</head>
<body>
<div>
<img src="http://example.org/example.png" typeof="foaf:Image" alt="example image" />
</div>
</body>
</html>
ASK WHERE {
<http://example.org/example.png> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Image> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0089</title>
</head>
<body>
<div>
<img src="http://example.org/example.png" typeof="foaf:Image" alt="example image" />
</div>
</body>
</html>
ASK WHERE {
<http://example.org/example.png> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Image> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0089</title>
</head>
<body>
<div>
<img src="http://example.org/example.png" typeof="foaf:Image" alt="example image" />
</div>
</body>
</html>
ASK WHERE {
<http://example.org/example.png> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Image> .
}
Tests to ensure that non-reserved, un-prefixed CURIEs, when used in @property, generate triples.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0091</title>
</head>
<body>
<p about="[_:human]">
A human is
<span property=":definition">a bi-pedal primate</span>.
They are quite possibly one of the most
<span property=":note">confused animal</span>s residing in the
<span property=":foo">Milky Way</span>.
</p>
</body>
</html>
ASK WHERE {
?a <http://www.w3.org/1999/xhtml/vocab#definition> "a bi-pedal primate" .
?a <http://www.w3.org/1999/xhtml/vocab#note> "confused animal" .
?a <http://www.w3.org/1999/xhtml/vocab#foo> "Milky Way" .
FILTER isBlank(?a)
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0091</title>
</head>
<body>
<p about="[_:human]">
A human is
<span property=":definition">a bi-pedal primate</span>.
They are quite possibly one of the most
<span property=":note">confused animal</span>s residing in the
<span property=":foo">Milky Way</span>.
</p>
</body>
</html>
ASK WHERE {
?a <http://www.w3.org/1999/xhtml/vocab#definition> "a bi-pedal primate" .
?a <http://www.w3.org/1999/xhtml/vocab#note> "confused animal" .
?a <http://www.w3.org/1999/xhtml/vocab#foo> "Milky Way" .
FILTER isBlank(?a)
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0091</title>
</head>
<body>
<p about="[_:human]">
A human is
<span property=":definition">a bi-pedal primate</span>.
They are quite possibly one of the most
<span property=":note">confused animal</span>s residing in the
<span property=":foo">Milky Way</span>.
</p>
</body>
</html>
ASK WHERE {
?a <http://www.w3.org/1999/xhtml/vocab#definition> "a bi-pedal primate" .
?a <http://www.w3.org/1999/xhtml/vocab#note> "confused animal" .
?a <http://www.w3.org/1999/xhtml/vocab#foo> "Milky Way" .
FILTER isBlank(?a)
}
Tests the explicit specification of an RDF XMLLiteral with @datatype using a non-RDF namespace, yielding a user-data-typed literal
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:ex="http://www.example.org/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0093</title>
</head>
<body>
<div about="">
Author: <span property="dc:creator">Albert Einstein</span>
<h2 property="dc:title" datatype="ex:XMLLiteral">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0093.html> <http://purl.org/dc/elements/1.1/creator> "Albert Einstein" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0093.html> <http://purl.org/dc/elements/1.1/title> "E = mc2: The Most Urgent Problem of Our Time"^^<http://www.example.org/XMLLiteral> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:ex="http://www.example.org/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0093</title>
</head>
<body>
<div about="">
Author: <span property="dc:creator">Albert Einstein</span>
<h2 property="dc:title" datatype="ex:XMLLiteral">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0093.html> <http://purl.org/dc/elements/1.1/creator> "Albert Einstein" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0093.html> <http://purl.org/dc/elements/1.1/title> "E = mc2: The Most Urgent Problem of Our Time"^^<http://www.example.org/XMLLiteral> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:ex="http://www.example.org/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0093</title>
</head>
<body>
<div about="">
Author: <span property="dc:creator">Albert Einstein</span>
<h2 property="dc:title" datatype="ex:XMLLiteral">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0093.xhtml> <http://purl.org/dc/elements/1.1/creator> "Albert Einstein" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0093.xhtml> <http://purl.org/dc/elements/1.1/title> "E = mc2: The Most Urgent Problem of Our Time"^^<http://www.example.org/XMLLiteral> .
}
Tests the preservation of white space in literals.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:example="http://www.example.org/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0099</title>
</head>
<body>
<p about="http://www.cwi.nl/~steven/" property="example:likes">
We put thirty spokes together and call it a wheel;
But it is on the space where there is nothing that the usefulness of the wheel depends.
We turn clay to make a vessel;
But it is on the space where there is nothing that the usefulness of the vessel depends.
We pierce doors and windows to make a house;
And it is on these spaces where there is nothing that the usefulness of the house depends.
Therefore just as we take advantage of what is, we should recognize the usefulness of what is not.
Lao Tzu: Tao Te Ching</p>
</body>
</html>
ASK WHERE {
<http://www.cwi.nl/~steven/> <http://www.example.org/likes> """
We put thirty spokes together and call it a wheel;
But it is on the space where there is nothing that the usefulness of the wheel depends.
We turn clay to make a vessel;
But it is on the space where there is nothing that the usefulness of the vessel depends.
We pierce doors and windows to make a house;
And it is on these spaces where there is nothing that the usefulness of the house depends.
Therefore just as we take advantage of what is, we should recognize the usefulness of what is not.
Lao Tzu: Tao Te Ching""" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:example="http://www.example.org/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0099</title>
</head>
<body>
<p about="http://www.cwi.nl/~steven/" property="example:likes">
We put thirty spokes together and call it a wheel;
But it is on the space where there is nothing that the usefulness of the wheel depends.
We turn clay to make a vessel;
But it is on the space where there is nothing that the usefulness of the vessel depends.
We pierce doors and windows to make a house;
And it is on these spaces where there is nothing that the usefulness of the house depends.
Therefore just as we take advantage of what is, we should recognize the usefulness of what is not.
Lao Tzu: Tao Te Ching</p>
</body>
</html>
ASK WHERE {
<http://www.cwi.nl/~steven/> <http://www.example.org/likes> """
We put thirty spokes together and call it a wheel;
But it is on the space where there is nothing that the usefulness of the wheel depends.
We turn clay to make a vessel;
But it is on the space where there is nothing that the usefulness of the vessel depends.
We pierce doors and windows to make a house;
And it is on these spaces where there is nothing that the usefulness of the house depends.
Therefore just as we take advantage of what is, we should recognize the usefulness of what is not.
Lao Tzu: Tao Te Ching""" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:example="http://www.example.org/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0099</title>
</head>
<body>
<p about="http://www.cwi.nl/~steven/" property="example:likes">
We put thirty spokes together and call it a wheel;
But it is on the space where there is nothing that the usefulness of the wheel depends.
We turn clay to make a vessel;
But it is on the space where there is nothing that the usefulness of the vessel depends.
We pierce doors and windows to make a house;
And it is on these spaces where there is nothing that the usefulness of the house depends.
Therefore just as we take advantage of what is, we should recognize the usefulness of what is not.
Lao Tzu: Tao Te Ching</p>
</body>
</html>
ASK WHERE {
<http://www.cwi.nl/~steven/> <http://www.example.org/likes> """
We put thirty spokes together and call it a wheel;
But it is on the space where there is nothing that the usefulness of the wheel depends.
We turn clay to make a vessel;
But it is on the space where there is nothing that the usefulness of the vessel depends.
We pierce doors and windows to make a house;
And it is on these spaces where there is nothing that the usefulness of the house depends.
Therefore just as we take advantage of what is, we should recognize the usefulness of what is not.
Lao Tzu: Tao Te Ching""" .
}
Tests rdf:value with blank nodes to give a value with a unit
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:example="http://www.example.org/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0104</title>
</head>
<body>
<p>
The word "interfenestration" has
<span about="#interfenestration" rel="example:size">
<span property="rdf:value">17</span>
<span property="example:unit">character</span>s.
</span>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0104.html#interfenestration> <http://www.example.org/size> _:a .
_:a <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "17" .
_:a <http://www.example.org/unit> "character" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:example="http://www.example.org/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0104</title>
</head>
<body>
<p>
The word "interfenestration" has
<span about="#interfenestration" rel="example:size">
<span property="rdf:value">17</span>
<span property="example:unit">character</span>s.
</span>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0104.html#interfenestration> <http://www.example.org/size> _:a .
_:a <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "17" .
_:a <http://www.example.org/unit> "character" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:example="http://www.example.org/">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Test 0104</title>
</head>
<body>
<p>
The word "interfenestration" has
<span about="#interfenestration" rel="example:size">
<span property="rdf:value">17</span>
<span property="example:unit">character</span>s.
</span>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0104.xhtml#interfenestration> <http://www.example.org/size> _:a .
_:a <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "17" .
_:a <http://www.example.org/unit> "character" .
}
Tests the behavior of triple generation in the case where the inner @rel is defined, but is blank, which halts chaining.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0106</title>
</head>
<body>
<div about="" rel="dc:creator">
<a rel="" href="manu.html">Manu</a> created this page.
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0106.html> <http://purl.org/dc/elements/1.1/creator> ?a .
OPTIONAL {
?x ?y <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/manu.html> .
}
FILTER (isBlank(?a) && !BOUND(?x) && !BOUND(?y))
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0106</title>
</head>
<body>
<div about="" rel="dc:creator">
<a rel="" href="manu.html">Manu</a> created this page.
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0106.html> <http://purl.org/dc/elements/1.1/creator> ?a .
OPTIONAL {
?x ?y <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/manu.html> .
}
FILTER (isBlank(?a) && !BOUND(?x) && !BOUND(?y))
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0106</title>
</head>
<body>
<div about="" rel="dc:creator">
<a rel="" href="manu.html">Manu</a> created this page.
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0106.xhtml> <http://purl.org/dc/elements/1.1/creator> ?a .
OPTIONAL {
?x ?y <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/manu.html> .
}
FILTER (isBlank(?a) && !BOUND(?x) && !BOUND(?y))
}
Checks to make sure that that while we shouldn't garbage collect bnodes no triples are generated.
Expected query to return false
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:ex="http://example.org/">
<head>
<title>Test 0107</title>
</head>
<body>
<div rel="next"></div>
</body>
</html>
# This test should result in a 'NO', i.e. no triples should be generated from the XHTML+RDFa input document.
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0107.html> <http://www.w3.org/1999/xhtml/vocab#next> ?a .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:ex="http://example.org/">
<head>
<title>Test 0107</title>
</head>
<body>
<div rel="next"></div>
</body>
</html>
# This test should result in a 'NO', i.e. no triples should be generated from the XHTML+RDFa input document.
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0107.html> <http://www.w3.org/1999/xhtml/vocab#next> ?a .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ex="http://example.org/">
<head>
<title>Test 0107</title>
</head>
<body>
<div rel="next"></div>
</body>
</html>
# This test should result in a 'NO', i.e. no triples should be generated from the XHTML+RDFa input document.
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0107.xhtml> <http://www.w3.org/1999/xhtml/vocab#next> ?a .
}
Tests to make sure that @xml:base is ignored in XHTML+RDFa 1.0. The input test document is invalid XHTML.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/"
xml:base="http://example.org/invalid/">
<head>
<title>Test 0109</title>
</head>
<body>
<!-- This a NOT a valid XHTML document (due to @xml:base) -->
<div xml:base="http://example.org/invalid/">
<p about="">This is <span property="dc:title">Test 0109</span>.</p>
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0109.html> <http://purl.org/dc/elements/1.1/title> "Test 0109" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/"
xml:base="http://example.org/invalid/">
<head>
<title>Test 0109</title>
</head>
<body>
<!-- This a NOT a valid XHTML document (due to @xml:base) -->
<div xml:base="http://example.org/invalid/">
<p about="">This is <span property="dc:title">Test 0109</span>.</p>
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0109.html> <http://purl.org/dc/elements/1.1/title> "Test 0109" .
}
Tests to make sure that a bNode is generated even though no nested @about exists.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0110</title>
</head>
<body>
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0110.html> <http://www.w3.org/1999/xhtml/vocab#next> ?a .
FILTER isBlank(?a)
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0110</title>
</head>
<body>
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0110.html> <http://www.w3.org/1999/xhtml/vocab#next> ?a .
FILTER isBlank(?a)
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0110</title>
</head>
<body>
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0110.xhtml> <http://www.w3.org/1999/xhtml/vocab#next> ?a .
FILTER isBlank(?a)
}
Tests to make sure that two bNodes are generated after three levels of nesting and that the last div does not generate a triple.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0111</title>
</head>
<body>
<div rel="xhv:next">
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0111.html> <http://www.w3.org/1999/xhtml/vocab#next> ?a .
?a <http://www.w3.org/1999/xhtml/vocab#next> ?b .
FILTER (isBlank(?a) && isBlank(?b) )
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0111</title>
</head>
<body>
<div rel="xhv:next">
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0111.html> <http://www.w3.org/1999/xhtml/vocab#next> ?a .
?a <http://www.w3.org/1999/xhtml/vocab#next> ?b .
FILTER (isBlank(?a) && isBlank(?b) )
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0111</title>
</head>
<body>
<div rel="xhv:next">
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0111.xhtml> <http://www.w3.org/1999/xhtml/vocab#next> ?a .
?a <http://www.w3.org/1999/xhtml/vocab#next> ?b .
FILTER (isBlank(?a) && isBlank(?b) )
}
Checks to make sure that the RDFa parser emits a plain literal when the datatype is specified as "".
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:ex="http://example.org/">
<head>
<title>Test 0112</title>
</head>
<body>
<p>
<span about="http://example.org/node" property="ex:property"
datatype="">not an XML Literal,
whitespace preserved
</span>
</p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "not an XML Literal,\nwhitespace preserved\n" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:ex="http://example.org/">
<head>
<title>Test 0112</title>
</head>
<body>
<p>
<span about="http://example.org/node" property="ex:property"
datatype="">not an XML Literal,
whitespace preserved
</span>
</p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "not an XML Literal,\nwhitespace preserved\n" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ex="http://example.org/">
<head>
<title>Test 0112</title>
</head>
<body>
<p>
<span about="http://example.org/node" property="ex:property"
datatype="">not an XML Literal,
whitespace preserved
</span>
</p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "not an XML Literal,\nwhitespace preserved\n" .
}
Checks to make sure that a relative URI is resolved correctly according to RFC3986, section 5 (even when the relative URI is invalid, in this case).
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:cc="http://creativecommons.org/ns#"
xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#"
xmlns:rdfatest="http://rdfa.info/vocabs/rdfa-test#">
<head>
<title>Test 0114</title>
</head>
<body>
<div>
<a rel="xhv:index" href="../../.././#">Test Suite</a>
<a rel="xhv:next" href="0115.html">Test Case 0115</a>
<a rel="xhv:up" href="./">Test Case 0114</a>
<a rel="cc:attributionURL" href="../../../../">RDFa Website</a>
<a rel="rdfatest:cornerCase1" href=".">Corner Case #1</a>
<a rel="rdfatest:cornerCase3" href="...">Corner Case #3</a>
<a rel="rdfatest:cornerCase4" href="?foo=bar../baz">Corner Case #4</a>
<a rel="rdfatest:cornerCase5" href="../..../../../.../.htaccess">Corner Case #5</a>
</div>
</body>
</html>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
PREFIX cc: <http://creativecommons.org/ns#>
PREFIX rdfatest: <http://rdfa.info/vocabs/rdfa-test#>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0114.html>
xhv:index <http://rdfa.info/test-suite/#>;
xhv:next <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0115.html>;
xhv:up <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/>;
cc:attributionURL <http://rdfa.info/>;
rdfatest:cornerCase1 <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/>;
rdfatest:cornerCase3 <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/...>;
rdfatest:cornerCase4 <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0114.html?foo=bar../baz>;
rdfatest:cornerCase5 <http://rdfa.info/test-suite/test-cases/.../.htaccess>.
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:cc="http://creativecommons.org/ns#"
xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#"
xmlns:rdfatest="http://rdfa.info/vocabs/rdfa-test#">
<head>
<title>Test 0114</title>
</head>
<body>
<div>
<a rel="xhv:index" href="../../.././#">Test Suite</a>
<a rel="xhv:next" href="0115.html">Test Case 0115</a>
<a rel="xhv:up" href="./">Test Case 0114</a>
<a rel="cc:attributionURL" href="../../../../">RDFa Website</a>
<a rel="rdfatest:cornerCase1" href=".">Corner Case #1</a>
<a rel="rdfatest:cornerCase3" href="...">Corner Case #3</a>
<a rel="rdfatest:cornerCase4" href="?foo=bar../baz">Corner Case #4</a>
<a rel="rdfatest:cornerCase5" href="../..../../../.../.htaccess">Corner Case #5</a>
</div>
</body>
</html>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
PREFIX cc: <http://creativecommons.org/ns#>
PREFIX rdfatest: <http://rdfa.info/vocabs/rdfa-test#>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0114.html>
xhv:index <http://rdfa.info/test-suite/#>;
xhv:next <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0115.html>;
xhv:up <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/>;
cc:attributionURL <http://rdfa.info/>;
rdfatest:cornerCase1 <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/>;
rdfatest:cornerCase3 <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/...>;
rdfatest:cornerCase4 <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0114.html?foo=bar../baz>;
rdfatest:cornerCase5 <http://rdfa.info/test-suite/test-cases/.../.htaccess>.
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:cc="http://creativecommons.org/ns#"
xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#"
xmlns:rdfatest="http://rdfa.info/vocabs/rdfa-test#">
<head>
<title>Test 0114</title>
</head>
<body>
<div>
<a rel="xhv:index" href="../../.././#">Test Suite</a>
<a rel="xhv:next" href="0115.xhtml">Test Case 0115</a>
<a rel="xhv:up" href="./">Test Case 0114</a>
<a rel="cc:attributionURL" href="../../../../">RDFa Website</a>
<a rel="rdfatest:cornerCase1" href=".">Corner Case #1</a>
<a rel="rdfatest:cornerCase3" href="...">Corner Case #3</a>
<a rel="rdfatest:cornerCase4" href="?foo=bar../baz">Corner Case #4</a>
<a rel="rdfatest:cornerCase5" href="../..../../../.../.htaccess">Corner Case #5</a>
</div>
</body>
</html>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
PREFIX cc: <http://creativecommons.org/ns#>
PREFIX rdfatest: <http://rdfa.info/vocabs/rdfa-test#>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0114.xhtml>
xhv:index <http://rdfa.info/test-suite/#>;
xhv:next <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0115.xhtml>;
xhv:up <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/>;
cc:attributionURL <http://rdfa.info/>;
rdfatest:cornerCase1 <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/>;
rdfatest:cornerCase3 <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/...>;
rdfatest:cornerCase4 <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0114.xhtml?foo=bar../baz>;
rdfatest:cornerCase5 <http://rdfa.info/test-suite/test-cases/.../.htaccess>.
}
Checks to make sure that XML Entities are treated properly by the RDFa parser.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:ex="http://www.example.com/">
<head>
<title>Test 0115</title>
</head>
<body>
<p>Description: XML entities in the RDFa content</p>
<p>
<span property="ex:entity1">></span>
<span property="ex:entity2">Ben & Co.</span>
<span property="ex:entity3">@</span>
<span property="ex:entity4">@</span>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0115.html>
<http://www.example.com/entity1>
">" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0115.html>
<http://www.example.com/entity2>
"Ben & Co." .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0115.html>
<http://www.example.com/entity3>
"@" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0115.html>
<http://www.example.com/entity4>
"@" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:ex="http://www.example.com/">
<head>
<title>Test 0115</title>
</head>
<body>
<p>Description: XML entities in the RDFa content</p>
<p>
<span property="ex:entity1">></span>
<span property="ex:entity2">Ben & Co.</span>
<span property="ex:entity3">@</span>
<span property="ex:entity4">@</span>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0115.html>
<http://www.example.com/entity1>
">" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0115.html>
<http://www.example.com/entity2>
"Ben & Co." .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0115.html>
<http://www.example.com/entity3>
"@" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0115.html>
<http://www.example.com/entity4>
"@" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ex="http://www.example.com/">
<head>
<title>Test 0115</title>
</head>
<body>
<p>Description: XML entities in the RDFa content</p>
<p>
<span property="ex:entity1">></span>
<span property="ex:entity2">Ben & Co.</span>
<span property="ex:entity3">@</span>
<span property="ex:entity4">@</span>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0115.xhtml>
<http://www.example.com/entity1>
">" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0115.xhtml>
<http://www.example.com/entity2>
"Ben & Co." .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0115.xhtml>
<http://www.example.com/entity3>
"@" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0115.xhtml>
<http://www.example.com/entity4>
"@" .
}
Checks to make sure that fragment identifiers are stripped from [base] when used to generate triples.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/tc117.xhtml#fragment"></base>
<title property="dc:title">Test 0117</title>
</head>
<body>
<p>
<span property="dc:contributor">Mark Birbeck</span>
added this triple test.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/tc117.xhtml> <http://purl.org/dc/elements/1.1/title> "Test 0117" .
<http://www.example.org/tc117.xhtml> <http://purl.org/dc/elements/1.1/contributor> "Mark Birbeck" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/tc117.xhtml#fragment"></base>
<title property="dc:title">Test 0117</title>
</head>
<body>
<p>
<span property="dc:contributor">Mark Birbeck</span>
added this triple test.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/tc117.xhtml> <http://purl.org/dc/elements/1.1/title> "Test 0117" .
<http://www.example.org/tc117.xhtml> <http://purl.org/dc/elements/1.1/contributor> "Mark Birbeck" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/tc117.xhtml#fragment"></base>
<title property="dc:title">Test 0117</title>
</head>
<body>
<p>
<span property="dc:contributor">Mark Birbeck</span>
added this triple test.
</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/tc117.xhtml> <http://purl.org/dc/elements/1.1/title> "Test 0117" .
<http://www.example.org/tc117.xhtml> <http://purl.org/dc/elements/1.1/contributor> "Mark Birbeck" .
}
Checks to make sure that the empty string "" isn't considered as NULL in languages such as Javascript when generating triples. This test sets the subject in a chain using @href and then immediately changes the subject using @about and generates a triple. A buggy parser may use the @href subject (http://example.org/javascript.html) instead of the one defined by @about.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0118</title>
</head>
<body>
<p>
Check to see if parsers get confused when "" is
interpreted as NULL in some chaining cases.
<a href="http://example.org/ben.html"><span
about="" property="dc:creator">Ben</span></a>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0118.html>
<http://purl.org/dc/elements/1.1/creator>
"Ben" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0118</title>
</head>
<body>
<p>
Check to see if parsers get confused when "" is
interpreted as NULL in some chaining cases.
<a href="http://example.org/ben.html"><span
about="" property="dc:creator">Ben</span></a>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0118.html>
<http://purl.org/dc/elements/1.1/creator>
"Ben" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0118</title>
</head>
<body>
<p>
Check to see if parsers get confused when "" is
interpreted as NULL in some chaining cases.
<a href="http://example.org/ben.html"><span
about="" property="dc:creator">Ben</span></a>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0118.xhtml>
<http://purl.org/dc/elements/1.1/creator>
"Ben" .
}
Checks to make sure that an RDFa processor expands CURIEs having only a prefix and a colon if a prefix is properly defined using xmlns.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:example="http://example.org/">
<head>
<title>Test 0119</title>
</head>
<body>
<div>
<p about="[example:]">
The
<span property="dc:title">Example Website</span>
is used in many W3C tutorials.
</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/>
<http://purl.org/dc/elements/1.1/title>
"Example Website" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:example="http://example.org/">
<head>
<title>Test 0119</title>
</head>
<body>
<div>
<p about="[example:]">
The
<span property="dc:title">Example Website</span>
is used in many W3C tutorials.
</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/>
<http://purl.org/dc/elements/1.1/title>
"Example Website" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:example="http://example.org/">
<head>
<title>Test 0119</title>
</head>
<body>
<div>
<p about="[example:]">
The
<span property="dc:title">Example Website</span>
is used in many W3C tutorials.
</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/>
<http://purl.org/dc/elements/1.1/title>
"Example Website" .
}
Checks to make sure that an RDFa processor expands CURIEs having only a colon to the default prefix "http://www.w3.org/1999/test-cases/vocab#".
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:example="http://example.org/">
<head>
<title>Test 0120</title>
</head>
<body>
<p about="[:]">
The
<span property="dc:title">The XHTML Vocabulary Document</span>
is the default prefix for XHTML+RDFa 1.0.
</p>
</body>
</html>
ASK WHERE {
<http://www.w3.org/1999/xhtml/vocab#>
<http://purl.org/dc/elements/1.1/title>
"The XHTML Vocabulary Document" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:example="http://example.org/">
<head>
<title>Test 0120</title>
</head>
<body>
<p about="[:]">
The
<span property="dc:title">The XHTML Vocabulary Document</span>
is the default prefix for XHTML+RDFa 1.0.
</p>
</body>
</html>
ASK WHERE {
<http://www.w3.org/1999/xhtml/vocab#>
<http://purl.org/dc/elements/1.1/title>
"The XHTML Vocabulary Document" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:example="http://example.org/">
<head>
<title>Test 0120</title>
</head>
<body>
<p about="[:]">
The
<span property="dc:title">The XHTML Vocabulary Document</span>
is the default prefix for XHTML+RDFa 1.0.
</p>
</body>
</html>
ASK WHERE {
<http://www.w3.org/1999/xhtml/vocab#>
<http://purl.org/dc/elements/1.1/title>
"The XHTML Vocabulary Document" .
}
Checks to make sure RDFa processors resolve the empty CURIE correctly. Note that this is not valid HTML due to recursive
elements.
Expected query to return true
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0121</title>
</head>
<body>
<div>
<p about="http://example.org/">
<span about="[]" property="dc:title">Test Case 0121</span>
checks to make sure RDFa processors resolve the empty CURIE correctly.
<p resource="[]">
<span property="dc:contributor">Shane McCarron</span>
contributed to this test.
</p>
</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/> <http://purl.org/dc/elements/1.1/title> "Test Case 0121" .
<http://example.org/> <http://purl.org/dc/elements/1.1/contributor> "Shane McCarron" .
}
Checks to make sure that resource="[]" does not set the object since RDFa does not allow non-prefixed CURIEs.
Expected query to return false
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0122</title>
</head>
<body>
<p about="http://example.org/section1.html">
This section is contained below <span rel="up" resource="[]">the main site</span>.
</p>
</body>
</html>
# This is a negative test. No triples should be generated from the XHTML+RDFa input document.
ASK WHERE {
<http://www.example.org/section1.html> <http://www.w3.org/1999/xhtml/vocab#up> ?obj .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0122</title>
</head>
<body>
<p about="http://example.org/section1.html">
This section is contained below <span rel="up" resource="[]">the main site</span>.
</p>
</body>
</html>
# This is a negative test. No triples should be generated from the XHTML+RDFa input document.
ASK WHERE {
<http://www.example.org/section1.html> <http://www.w3.org/1999/xhtml/vocab#up> ?obj .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0122</title>
</head>
<body>
<p about="http://example.org/section1.html">
This section is contained below <span rel="up" resource="[]">the main site</span>.
</p>
</body>
</html>
# This is a negative test. No triples should be generated from the XHTML+RDFa input document.
ASK WHERE {
<http://www.example.org/section1.html> <http://www.w3.org/1999/xhtml/vocab#up> ?obj .
}
Checks to ensure that multiple (white space separated) values in @typeof trigger multiple rdf:type triples.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dct="http://purl.org/dc/terms/"
xmlns:sioc="http://rdfs.org/sioc/ns#"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0126</title>
</head>
<body>
<div about="http://www.example.org/#article" typeof="foaf:Document sioc:Post">
<h1 property="dct:title">My article</h1>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#article> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Document> .
<http://www.example.org/#article> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://rdfs.org/sioc/ns#Post> .
<http://www.example.org/#article> <http://purl.org/dc/terms/title> "My article" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dct="http://purl.org/dc/terms/"
xmlns:sioc="http://rdfs.org/sioc/ns#"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0126</title>
</head>
<body>
<div about="http://www.example.org/#article" typeof="foaf:Document sioc:Post">
<h1 property="dct:title">My article</h1>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#article> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Document> .
<http://www.example.org/#article> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://rdfs.org/sioc/ns#Post> .
<http://www.example.org/#article> <http://purl.org/dc/terms/title> "My article" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dct="http://purl.org/dc/terms/"
xmlns:sioc="http://rdfs.org/sioc/ns#"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0126</title>
</head>
<body>
<div about="http://www.example.org/#article" typeof="foaf:Document sioc:Post">
<h1 property="dct:title">My article</h1>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#article> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Document> .
<http://www.example.org/#article> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://rdfs.org/sioc/ns#Post> .
<http://www.example.org/#article> <http://purl.org/dc/terms/title> "My article" .
}
Ensures that multiple whitespace alternatives in attributes are allowed.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test</title>
<link rel="xhv:next xhv:prev	xhv:first
xhv:last
xhv:subsection" href="http://example.org/test.css" />
</head>
<body>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0131.html> <http://www.w3.org/1999/xhtml/vocab#next> <http://example.org/test.css> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0131.html> <http://www.w3.org/1999/xhtml/vocab#prev> <http://example.org/test.css> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0131.html> <http://www.w3.org/1999/xhtml/vocab#first> <http://example.org/test.css> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0131.html> <http://www.w3.org/1999/xhtml/vocab#last> <http://example.org/test.css> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0131.html> <http://www.w3.org/1999/xhtml/vocab#subsection> <http://example.org/test.css> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test</title>
<link rel="xhv:next xhv:prev	xhv:first
xhv:last
xhv:subsection" href="http://example.org/test.css" />
</head>
<body>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0131.html> <http://www.w3.org/1999/xhtml/vocab#next> <http://example.org/test.css> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0131.html> <http://www.w3.org/1999/xhtml/vocab#prev> <http://example.org/test.css> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0131.html> <http://www.w3.org/1999/xhtml/vocab#first> <http://example.org/test.css> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0131.html> <http://www.w3.org/1999/xhtml/vocab#last> <http://example.org/test.css> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0131.html> <http://www.w3.org/1999/xhtml/vocab#subsection> <http://example.org/test.css> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test</title>
<link rel="xhv:next xhv:prev	xhv:first
xhv:last
xhv:subsection" href="http://example.org/test.css" />
</head>
<body>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0131.xhtml> <http://www.w3.org/1999/xhtml/vocab#next> <http://example.org/test.css> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0131.xhtml> <http://www.w3.org/1999/xhtml/vocab#prev> <http://example.org/test.css> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0131.xhtml> <http://www.w3.org/1999/xhtml/vocab#first> <http://example.org/test.css> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0131.xhtml> <http://www.w3.org/1999/xhtml/vocab#last> <http://example.org/test.css> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0131.xhtml> <http://www.w3.org/1999/xhtml/vocab#subsection> <http://example.org/test.css> .
}
Ensures that mixed-case reserved words generate triples.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test</title>
<link rel="LICENSE" href="http://example.org/test.css" />
</head>
<body>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0134.html> <http://www.w3.org/1999/xhtml/vocab#license> <http://example.org/test.css> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<link rel="LICENSE" href="http://example.org/test.css" />
</head>
<body>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0134.html> <http://www.w3.org/1999/xhtml/vocab#license> <http://example.org/test.css> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test</title>
<link rel="LICENSE" href="http://example.org/test.css" />
</head>
<body>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0134.xhtml> <http://www.w3.org/1999/xhtml/vocab#license> <http://example.org/test.css> .
}
The RDF data model does not allow blank node identifiers in predicates. This test ensures that RDFa processors do not emit invalid triples.
Expected query to return false
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Blank-node as Predicate Test</title>
</head>
<body>
<p>Blank Nodes are not allowed to be predicate identifiers in RDF:</p>
<p property="_:invalid">Test</p>
</body>
</html>
# This is a negative test, no triples containing "Test" should be generated.
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0140.html> ?p "Test".
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Blank-node as Predicate Test</title>
</head>
<body>
<p>Blank Nodes are not allowed to be predicate identifiers in RDF:</p>
<p property="_:invalid">Test</p>
</body>
</html>
# This is a negative test, no triples containing "Test" should be generated.
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0140.html> ?p "Test".
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Blank-node as Predicate Test</title>
</head>
<body>
<p>Blank Nodes are not allowed to be predicate identifiers in RDF:</p>
<p property="_:invalid">Test</p>
</body>
</html>
# This is a negative test, no triples containing "Test" should be generated.
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0140.xhtml> ?p "Test".
}
Ensures that RDFa processors allow the prefix 'xmlzzz', even though it is a reserved prefix in XML.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test</title>
</head>
<body>
<p xmlns:xmlzzz="http://example.org/" property="xmlzzz:test">Test</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0147.html> <http://example.org/test> "Test".
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
</head>
<body>
<p xmlns:xmlzzz="http://example.org/" property="xmlzzz:test">Test</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0147.html> <http://example.org/test> "Test".
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test</title>
</head>
<body>
<p xmlns:xmlzzz="http://example.org/" property="xmlzzz:test">Test</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0147.xhtml> <http://example.org/test> "Test".
}
Checks to ensure that the RDFa processor correctly processes single character prefixes when processing CURIEs.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:v="http://www.w3.org/2006/vcard/ns#">
<head>
<title>Test 0174</title>
</head>
<body>
<p>
This test ensures that single-character prefixes are allowed.
My name is:
<span about="http://example.org/jd" property="v:fn">John Doe</span>
</p>
</body>
</html>
ASK WHERE {
<http://example.org/jd> <http://www.w3.org/2006/vcard/ns#fn> "John Doe" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:v="http://www.w3.org/2006/vcard/ns#">
<head>
<title>Test 0174</title>
</head>
<body>
<p>
This test ensures that single-character prefixes are allowed.
My name is:
<span about="http://example.org/jd" property="v:fn">John Doe</span>
</p>
</body>
</html>
ASK WHERE {
<http://example.org/jd> <http://www.w3.org/2006/vcard/ns#fn> "John Doe" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="http://www.w3.org/2006/vcard/ns#">
<head>
<title>Test 0174</title>
</head>
<body>
<p>
This test ensures that single-character prefixes are allowed.
My name is:
<span about="http://example.org/jd" property="v:fn">John Doe</span>
</p>
</body>
</html>
ASK WHERE {
<http://example.org/jd> <http://www.w3.org/2006/vcard/ns#fn> "John Doe" .
}
Checks to make sure that a URI may be used as a @property value
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0175</title>
</head>
<body>
<p about="_:gregg">My name is
<em property="http://xmlns.com/foaf/0.1/name">Gregg Kellogg</em>.
</p>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/name> "Gregg Kellogg" .
FILTER isBlank(?a)
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0175</title>
</head>
<body>
<p about="_:gregg">My name is
<em property="http://xmlns.com/foaf/0.1/name">Gregg Kellogg</em>.
</p>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/name> "Gregg Kellogg" .
FILTER isBlank(?a)
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0175</title>
</head>
<body>
<p about="_:gregg">My name is
<em property="http://xmlns.com/foaf/0.1/name">Gregg Kellogg</em>.
</p>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/name> "Gregg Kellogg" .
FILTER isBlank(?a)
}
Checks to make sure that a URI may be used as @rel and @rev values
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0176</title>
</head>
<body>
<div about="_:manu">
Manu can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">He knows Gregg.</span>
<span rev="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">Who knows Manu.</span>
</div>
<div about="_:gregg">
Gregg can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:gregg@kellogg-assoc.com">email</a>.
</div>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/mbox> <mailto:manu.sporny@digitalbazaar.com> .
?b <http://xmlns.com/foaf/0.1/mbox> <mailto:gregg@kellogg-assoc.com> .
?a <http://xmlns.com/foaf/0.1/knows> ?b .
?b <http://xmlns.com/foaf/0.1/knows> ?a .
FILTER ( isBlank(?a) && isBlank(?b) )
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0176</title>
</head>
<body>
<div about="_:manu">
Manu can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">He knows Gregg.</span>
<span rev="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">Who knows Manu.</span>
</div>
<div about="_:gregg">
Gregg can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:gregg@kellogg-assoc.com">email</a>.
</div>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/mbox> <mailto:manu.sporny@digitalbazaar.com> .
?b <http://xmlns.com/foaf/0.1/mbox> <mailto:gregg@kellogg-assoc.com> .
?a <http://xmlns.com/foaf/0.1/knows> ?b .
?b <http://xmlns.com/foaf/0.1/knows> ?a .
FILTER ( isBlank(?a) && isBlank(?b) )
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0176</title>
</head>
<body>
<div about="_:manu">
Manu can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">He knows Gregg.</span>
<span rev="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">Who knows Manu.</span>
</div>
<div about="_:gregg">
Gregg can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:gregg@kellogg-assoc.com">email</a>.
</div>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/mbox> <mailto:manu.sporny@digitalbazaar.com> .
?b <http://xmlns.com/foaf/0.1/mbox> <mailto:gregg@kellogg-assoc.com> .
?a <http://xmlns.com/foaf/0.1/knows> ?b .
?b <http://xmlns.com/foaf/0.1/knows> ?a .
FILTER ( isBlank(?a) && isBlank(?b) )
}
Checks to make sure @prefix with a single entry creates a URI mapping
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0177</title>
<base href="http://example.org/"/>
</head>
<body>
<div about ="#me" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0177</title>
<base href="http://example.org/"/>
</head>
<body>
<div about ="#me" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0177</title>
<base href="http://example.org/"/>
</head>
<body>
<div about ="#me" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Checks to make sure @prefix with multiple entires creates multiple URI mappings
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0178</title>
<base href="http://example.org/"/>
</head>
<body>
<div about ="#this" prefix="foaf: http://xmlns.com/foaf/0.1/ dc: http://purl.org/dc/terms/" typeof="dc:Agent">
<p property="foaf:name">A particular agent</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#this> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/dc/terms/Agent> .
<http://example.org/#this> <http://xmlns.com/foaf/0.1/name> "A particular agent" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0178</title>
<base href="http://example.org/"/>
</head>
<body>
<div about ="#this" prefix="foaf: http://xmlns.com/foaf/0.1/ dc: http://purl.org/dc/terms/" typeof="dc:Agent">
<p property="foaf:name">A particular agent</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#this> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/dc/terms/Agent> .
<http://example.org/#this> <http://xmlns.com/foaf/0.1/name> "A particular agent" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0178</title>
<base href="http://example.org/"/>
</head>
<body>
<div about ="#this" prefix="foaf: http://xmlns.com/foaf/0.1/ dc: http://purl.org/dc/terms/" typeof="dc:Agent">
<p property="foaf:name">A particular agent</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#this> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/dc/terms/Agent> .
<http://example.org/#this> <http://xmlns.com/foaf/0.1/name> "A particular agent" .
}
Checks to make sure @prefix has a higher priority than @xmlns
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0179</title>
<base href="http://example.org/"/>
</head>
<body>
<!-- prefix has a higher priority than xmlns -->
<div about ="#me" xmlns:foaf="http://www.example.com/wrong/foaf/uri" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0179</title>
<base href="http://example.org/"/>
</head>
<body>
<!-- prefix has a higher priority than xmlns -->
<div about ="#me" xmlns:foaf="http://www.example.com/wrong/foaf/uri" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0179</title>
<base href="http://example.org/"/>
</head>
<body>
<!-- prefix has a higher priority than xmlns -->
<div about ="#me" xmlns:foaf="http://www.example.com/wrong/foaf/uri" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Checks to make sure @prefix with empty prefix does not create a mapping.
Expected query to return false
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0180</title>
<base href="http://example.org/"/>
</head>
<body>
<div about ="#me" prefix=": http://xmlns.com/foaf/0.1/" >
<p property=":name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0180</title>
<base href="http://example.org/"/>
</head>
<body>
<div about ="#me" prefix=": http://xmlns.com/foaf/0.1/" >
<p property=":name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0180</title>
<base href="http://example.org/"/>
</head>
<body>
<div about ="#me" prefix=": http://xmlns.com/foaf/0.1/" >
<p property=":name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Checks Tests a CURIE with default namespace uses XHTML Vocabulary namespace.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0181</title>
</head>
<body>
<div about ="http://www.example.org/software">
<p rel=":license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/software>
<http://www.w3.org/1999/xhtml/vocab#license>
<http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0181</title>
</head>
<body>
<div about ="http://www.example.org/software">
<p rel=":license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/software>
<http://www.w3.org/1999/xhtml/vocab#license>
<http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0181</title>
</head>
<body>
<div about ="http://www.example.org/software">
<p rel=":license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/software>
<http://www.w3.org/1999/xhtml/vocab#license>
<http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
}
Checks to be sure that prefixes are defined within the element hierarchy.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0182</title>
<base href="http://example.org/"/>
</head>
<body>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#this> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/dc/terms/Agent> .
<http://example.org/#this> <http://xmlns.com/foaf/0.1/name> "A particular agent"
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0182</title>
<base href="http://example.org/"/>
</head>
<body>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#this> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/dc/terms/Agent> .
<http://example.org/#this> <http://xmlns.com/foaf/0.1/name> "A particular agent"
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0182</title>
<base href="http://example.org/"/>
</head>
<body>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#this> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/dc/terms/Agent> .
<http://example.org/#this> <http://xmlns.com/foaf/0.1/name> "A particular agent"
}
A new @xmlns definition should override a previous @prefix definition at this element.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0183</title>
<base href="http://example.org/"/>
</head>
<body>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" xmlns:foaf="http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#this> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/dc/terms/Agent> .
<http://example.org/#this> <http://xmlns.com/foaf/0.1/name> "A particular agent"
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0183</title>
<base href="http://example.org/"/>
</head>
<body>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" xmlns:foaf="http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#this> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/dc/terms/Agent> .
<http://example.org/#this> <http://xmlns.com/foaf/0.1/name> "A particular agent"
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0183</title>
<base href="http://example.org/"/>
</head>
<body>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" xmlns:foaf="http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#this> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/dc/terms/Agent> .
<http://example.org/#this> <http://xmlns.com/foaf/0.1/name> "A particular agent"
}
Check that @vocab establishes a new default vocabulary when declared on the same element as a subject declaration via @about.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0186</title>
<base href="http://example.org/"/>
</head>
<body>
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0186</title>
<base href="http://example.org/"/>
</head>
<body>
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0186</title>
<base href="http://example.org/"/>
</head>
<body>
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Check that a more deeply nested @vocab attribute overloads a previous @vocab definition.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0187</title>
<base href="http://example.org/"/>
</head>
<body>
<div vocab="http://example.org/wrong/foaf/uri/">
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0187</title>
<base href="http://example.org/"/>
</head>
<body>
<div vocab="http://example.org/wrong/foaf/uri/">
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0187</title>
<base href="http://example.org/"/>
</head>
<body>
<div vocab="http://example.org/wrong/foaf/uri/">
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Check that @vocab definitions on parent elements only affect predicate establishment.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0188</title>
<base href="http://example.org/"/>
</head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/">
<div about ="#me">
<p property="name">Ivan Herman</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0188</title>
<base href="http://example.org/"/>
</head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/">
<div about ="#me">
<p property="name">Ivan Herman</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0188</title>
<base href="http://example.org/"/>
</head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/">
<div about ="#me">
<p property="name">Ivan Herman</p>
</div>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Check that @vocab changes a default term from XHV. Lookup checks default vocabulary before local term mappings.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0189</title>
</head>
<body>
<div about ="http://www.example.org/software" vocab="http://www.example.org/vocab#">
<p rel="license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/software>
<http://www.example.org/vocab#license>
<http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0189</title>
</head>
<body>
<div about ="http://www.example.org/software" vocab="http://www.example.org/vocab#">
<p rel="license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/software>
<http://www.example.org/vocab#license>
<http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0189</title>
</head>
<body>
<div about ="http://www.example.org/software" vocab="http://www.example.org/vocab#">
<p rel="license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/software>
<http://www.example.org/vocab#license>
<http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
}
Check to ensure a mixed case term matches a case insensitive definition
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0190</title>
</head>
<body>
<div about ="http://www.example.org/software">
<p rel="liCeNse" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/software>
<http://www.w3.org/1999/xhtml/vocab#license>
<http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0190</title>
</head>
<body>
<div about ="http://www.example.org/software">
<p rel="liCeNse" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/software>
<http://www.w3.org/1999/xhtml/vocab#license>
<http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0190</title>
</head>
<body>
<div about ="http://www.example.org/software">
<p rel="liCeNse" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/software>
<http://www.w3.org/1999/xhtml/vocab#license>
<http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
}
XMLLiteral must be explicitly specified, otherwise a normal untyped literal is created
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:ex="http://example.org/rdf/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0196</title>
</head>
<body>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is an XMLLiteral</p>
<p property="ex:plainlit">This is a <em>plain</em> literal</p>
</div>
</body>
</html>
# Some parsers may generate XML Literals that differ from the ones
# shown below. The only requirement for XML Literal tests is that
# the RDF graph that is generated is equivalent to the one expressed
# in the XHTML (preservation of whitespace and namespaces that are
# utilized in the XML Literal).
ASK WHERE {
<http://www.example.org> <http://example.org/rdf/xmllit> "This is an XMLLiteral"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
<http://www.example.org> <http://example.org/rdf/plainlit> "This is a plain literal" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:ex="http://example.org/rdf/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0196</title>
</head>
<body>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is an XMLLiteral</p>
<p property="ex:plainlit">This is a <em>plain</em> literal</p>
</div>
</body>
</html>
# Some parsers may generate XML Literals that differ from the ones
# shown below. The only requirement for XML Literal tests is that
# the RDF graph that is generated is equivalent to the one expressed
# in the XHTML (preservation of whitespace and namespaces that are
# utilized in the XML Literal).
ASK WHERE {
<http://www.example.org> <http://example.org/rdf/xmllit> "This is an XMLLiteral"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
<http://www.example.org> <http://example.org/rdf/plainlit> "This is a plain literal" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ex="http://example.org/rdf/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0196</title>
</head>
<body>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is an XMLLiteral</p>
<p property="ex:plainlit">This is a <em>plain</em> literal</p>
</div>
</body>
</html>
# Some parsers may generate XML Literals that differ from the ones
# shown below. The only requirement for XML Literal tests is that
# the RDF graph that is generated is equivalent to the one expressed
# in the XHTML (preservation of whitespace and namespaces that are
# utilized in the XML Literal).
ASK WHERE {
<http://www.example.org> <http://example.org/rdf/xmllit> "This is an XMLLiteral"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
<http://www.example.org> <http://example.org/rdf/plainlit> "This is a plain literal" .
}
TERMorCURIEorAbsURI requires an absolute URI
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/terms/">
<head>
<title>Test 0197</title>
<base href="http://www.example.org/me" />
</head>
<body>
<p about="" typeof="class/Person" property="pred/name">Gregg Kellogg</p>
<p property="dc:language" datatype="pred/lang">Ruby</p>
<p rel="pred/rel" resource="http://kellogg-assoc.com/">Kellogg Associates</p>
<p rev="pred/rev" resource="http://github.org/gkellogg/rdf_context">Ruby Gem</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/me> <http://purl.org/dc/terms/language> "Ruby" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/terms/">
<head>
<title>Test 0197</title>
<base href="http://www.example.org/me" />
</head>
<body>
<p about="" typeof="class/Person" property="pred/name">Gregg Kellogg</p>
<p property="dc:language" datatype="pred/lang">Ruby</p>
<p rel="pred/rel" resource="http://kellogg-assoc.com/">Kellogg Associates</p>
<p rev="pred/rev" resource="http://github.org/gkellogg/rdf_context">Ruby Gem</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/me> <http://purl.org/dc/terms/language> "Ruby" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/terms/">
<head>
<title>Test 0197</title>
<base href="http://www.example.org/me" />
</head>
<body>
<p about="" typeof="class/Person" property="pred/name">Gregg Kellogg</p>
<p property="dc:language" datatype="pred/lang">Ruby</p>
<p rel="pred/rel" resource="http://kellogg-assoc.com/">Kellogg Associates</p>
<p rev="pred/rev" resource="http://github.org/gkellogg/rdf_context">Ruby Gem</p>
</body>
</html>
ASK WHERE {
<http://www.example.org/me> <http://purl.org/dc/terms/language> "Ruby" .
}
Checks to ensure that when datatype is the default the parser generates triples for embedded content.
Expected query to return true
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0198</title>
<base href="http://www.example.org/me" />
</head>
<body>
<div id="mark" about="#mark" typeof="foaf:Person">
<h2 property="foaf:name" datatype="rdf:XMLLiteral"><span
property="foaf:firstName">Mark</span> <span
property="foaf:surname">Birbeck</span></h2>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/me#mark> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://www.example.org/me#mark> <http://xmlns.com/foaf/0.1/name>
"<span property=\"foaf:firstName\" xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:foaf=\"http://xmlns.com/foaf/0.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">Mark</span> <span property=\"foaf:surname\" xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:foaf=\"http://xmlns.com/foaf/0.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">Birbeck</span>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
<http://www.example.org/me#mark> <http://xmlns.com/foaf/0.1/firstName> "Mark" .
<http://www.example.org/me#mark> <http://xmlns.com/foaf/0.1/surname> "Birbeck" .
}
Tests whether the default RDFa 1.1 context (which contains prefix definitions, among others, to the Semantic Web Standard vocabularies) is properly handled.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Default context test 0206</title>
</head>
<body>
<p about ="xsd:maxExclusive" rel="rdf:type" resource="owl:DatatypeProperty">
An OWL Axiom: "xsd:maxExclusive" is a Datatype Property in OWL.
</p>
</body>
</html>
ASK WHERE {
<http://www.w3.org/2001/XMLSchema#maxExclusive> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#DatatypeProperty> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Default context test 0206</title>
</head>
<body>
<p about ="xsd:maxExclusive" rel="rdf:type" resource="owl:DatatypeProperty">
An OWL Axiom: "xsd:maxExclusive" is a Datatype Property in OWL.
</p>
</body>
</html>
ASK WHERE {
<http://www.w3.org/2001/XMLSchema#maxExclusive> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#DatatypeProperty> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Default context test 0206</title>
</head>
<body>
<p about ="xsd:maxExclusive" rel="rdf:type" resource="owl:DatatypeProperty">
An OWL Axiom: "xsd:maxExclusive" is a Datatype Property in OWL.
</p>
</body>
</html>
ASK WHERE {
<http://www.w3.org/2001/XMLSchema#maxExclusive> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#DatatypeProperty> .
}
Tests Vevent using @typeof (inlc. dtstart, dtend, etc.)
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:cal="http://www.w3.org/2002/12/cal/icaltzd#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0207</title>
</head>
<body>
<p about="#event1" typeof="cal:Vevent">
<b property="cal:summary">Weekend off in Iona</b>:
<span property="cal:dtstart" content="2006-10-21" datatype="xsd:date">Oct 21st</span>
to <span property="cal:dtend" content="2006-10-23" datatype="xsd:date">Oct 23rd</span>.
See <a rel="cal:url" href="http://freetime.example.org/">FreeTime.Example.org</a> for
info on <span property="cal:location">Iona, UK</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0207.html#event1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/12/cal/icaltzd#Vevent> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0207.html#event1> <http://www.w3.org/2002/12/cal/icaltzd#summary> "Weekend off in Iona" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0207.html#event1> <http://www.w3.org/2002/12/cal/icaltzd#dtstart> "2006-10-21"^^<http://www.w3.org/2001/XMLSchema#date> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0207.html#event1> <http://www.w3.org/2002/12/cal/icaltzd#dtend> "2006-10-23"^^<http://www.w3.org/2001/XMLSchema#date> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0207.html#event1> <http://www.w3.org/2002/12/cal/icaltzd#url> <http://freetime.example.org/> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0207.html#event1> <http://www.w3.org/2002/12/cal/icaltzd#location> "Iona, UK" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:cal="http://www.w3.org/2002/12/cal/icaltzd#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0207</title>
</head>
<body>
<p about="#event1" typeof="cal:Vevent">
<b property="cal:summary">Weekend off in Iona</b>:
<span property="cal:dtstart" content="2006-10-21" datatype="xsd:date">Oct 21st</span>
to <span property="cal:dtend" content="2006-10-23" datatype="xsd:date">Oct 23rd</span>.
See <a rel="cal:url" href="http://freetime.example.org/">FreeTime.Example.org</a> for
info on <span property="cal:location">Iona, UK</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0207.html#event1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/12/cal/icaltzd#Vevent> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0207.html#event1> <http://www.w3.org/2002/12/cal/icaltzd#summary> "Weekend off in Iona" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0207.html#event1> <http://www.w3.org/2002/12/cal/icaltzd#dtstart> "2006-10-21"^^<http://www.w3.org/2001/XMLSchema#date> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0207.html#event1> <http://www.w3.org/2002/12/cal/icaltzd#dtend> "2006-10-23"^^<http://www.w3.org/2001/XMLSchema#date> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0207.html#event1> <http://www.w3.org/2002/12/cal/icaltzd#url> <http://freetime.example.org/> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0207.html#event1> <http://www.w3.org/2002/12/cal/icaltzd#location> "Iona, UK" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:cal="http://www.w3.org/2002/12/cal/icaltzd#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0207</title>
</head>
<body>
<p about="#event1" typeof="cal:Vevent">
<b property="cal:summary">Weekend off in Iona</b>:
<span property="cal:dtstart" content="2006-10-21" datatype="xsd:date">Oct 21st</span>
to <span property="cal:dtend" content="2006-10-23" datatype="xsd:date">Oct 23rd</span>.
See <a rel="cal:url" href="http://freetime.example.org/">FreeTime.Example.org</a> for
info on <span property="cal:location">Iona, UK</span>.
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0207.xhtml#event1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/12/cal/icaltzd#Vevent> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0207.xhtml#event1> <http://www.w3.org/2002/12/cal/icaltzd#summary> "Weekend off in Iona" .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0207.xhtml#event1> <http://www.w3.org/2002/12/cal/icaltzd#dtstart> "2006-10-21"^^<http://www.w3.org/2001/XMLSchema#date> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0207.xhtml#event1> <http://www.w3.org/2002/12/cal/icaltzd#dtend> "2006-10-23"^^<http://www.w3.org/2001/XMLSchema#date> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0207.xhtml#event1> <http://www.w3.org/2002/12/cal/icaltzd#url> <http://freetime.example.org/> .
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0207.xhtml#event1> <http://www.w3.org/2002/12/cal/icaltzd#location> "Iona, UK" .
}
In RDFa 1.1, even if a literal contains XML elements, and no explicit datatype is set, the result is plain literal
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0213</title>
</head>
<body>
<!-- In RDFa 1.1, by default a plain literal is generated even if it contains XML elements -->
<div about="http://www.example.org/">
<h2 property="dc:title">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/> <http://purl.org/dc/elements/1.1/title> "E = mc2: The Most Urgent Problem of Our Time" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0213</title>
</head>
<body>
<!-- In RDFa 1.1, by default a plain literal is generated even if it contains XML elements -->
<div about="http://www.example.org/">
<h2 property="dc:title">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/> <http://purl.org/dc/elements/1.1/title> "E = mc2: The Most Urgent Problem of Our Time" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0213</title>
</head>
<body>
<!-- In RDFa 1.1, by default a plain literal is generated even if it contains XML elements -->
<div about="http://www.example.org/">
<h2 property="dc:title">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/> <http://purl.org/dc/elements/1.1/title> "E = mc2: The Most Urgent Problem of Our Time" .
}
All documents have an implicit @about=""
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" typeof="foaf:Document">
<head>
<title property="dc:title">Test 0214</title>
</head>
<body>
<p>This document has a title.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0214.html> a <http://xmlns.com/foaf/0.1/Document>;
<http://purl.org/dc/terms/title> "Test 0214" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html typeof="foaf:Document">
<head>
<title property="dc:title">Test 0214</title>
</head>
<body>
<p>This document has a title.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0214.html> a <http://xmlns.com/foaf/0.1/Document>;
<http://purl.org/dc/terms/title> "Test 0214" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" typeof="foaf:Document">
<head>
<title property="dc:title">Test 0214</title>
</head>
<body>
<p>This document has a title.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0214.xhtml> a <http://xmlns.com/foaf/0.1/Document>;
<http://purl.org/dc/terms/title> "Test 0214" .
}
Character encoding should work even in view of a large set of characters as attributes in the header, ie, when content sniffing may not work to establish encoding.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" prefix = "
air: http://www.daml.org/2001/10/html/airport-ont#
bio: http://vocab.org/bio/0.1/
contact: http://www.w3.org/2000/10/swap/pim/contact#
dc: http://purl.org/dc/terms/
foaf: http://xmlns.com/foaf/0.1/
ical: http://www.w3.org/2002/12/cal/icaltzd#
owl: http://www.w3.org/2002/07/owl#
rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs: http://www.w3.org/2000/01/rdf-schema#
rel: http://vocab.org/relationship/
openid: http://xmlns.openid.net/auth#
rss: http://web.resource.org/rss/1.0/
sioc: http://rdfs.org/sioc/ns#
xsd: http://www.w3.org/2001/XMLSchema#
google: http://rdf.data-vocabulary.org/#
rsa: http://www.w3.org/ns/auth/rsa#
cert: http://www.w3.org/ns/auth/cert#
wot: http://xmlns.com/wot/0.1/
">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
</head>
<body>
<!-- Tests whether the Unicode (UTF-8 encoded) characters are properly handled even with a large set of properties
in the html element, ie, when the content sniffing to find out the character encoding may not work -->
<p about="http://www.ivan-herman.net/foaf#me" property="foaf:name">Iván</p>
</body>
</html>
ASK WHERE {
<http://www.ivan-herman.net/foaf#me> <http://xmlns.com/foaf/0.1/name> "Iván" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html prefix = "
air: http://www.daml.org/2001/10/html/airport-ont#
bio: http://vocab.org/bio/0.1/
contact: http://www.w3.org/2000/10/swap/pim/contact#
dc: http://purl.org/dc/terms/
foaf: http://xmlns.com/foaf/0.1/
ical: http://www.w3.org/2002/12/cal/icaltzd#
owl: http://www.w3.org/2002/07/owl#
rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs: http://www.w3.org/2000/01/rdf-schema#
rel: http://vocab.org/relationship/
openid: http://xmlns.openid.net/auth#
rss: http://web.resource.org/rss/1.0/
sioc: http://rdfs.org/sioc/ns#
xsd: http://www.w3.org/2001/XMLSchema#
google: http://rdf.data-vocabulary.org/#
rsa: http://www.w3.org/ns/auth/rsa#
cert: http://www.w3.org/ns/auth/cert#
wot: http://xmlns.com/wot/0.1/
">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
</head>
<body>
<!-- Tests whether the Unicode (UTF-8 encoded) characters are properly handled even with a large set of properties
in the html element, ie, when the content sniffing to find out the character encoding may not work -->
<p about="http://www.ivan-herman.net/foaf#me" property="foaf:name">Iván</p>
</body>
</html>
ASK WHERE {
<http://www.ivan-herman.net/foaf#me> <http://xmlns.com/foaf/0.1/name> "Iván" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix = "
air: http://www.daml.org/2001/10/html/airport-ont#
bio: http://vocab.org/bio/0.1/
contact: http://www.w3.org/2000/10/swap/pim/contact#
dc: http://purl.org/dc/terms/
foaf: http://xmlns.com/foaf/0.1/
ical: http://www.w3.org/2002/12/cal/icaltzd#
owl: http://www.w3.org/2002/07/owl#
rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs: http://www.w3.org/2000/01/rdf-schema#
rel: http://vocab.org/relationship/
openid: http://xmlns.openid.net/auth#
rss: http://web.resource.org/rss/1.0/
sioc: http://rdfs.org/sioc/ns#
xsd: http://www.w3.org/2001/XMLSchema#
google: http://rdf.data-vocabulary.org/#
rsa: http://www.w3.org/ns/auth/rsa#
cert: http://www.w3.org/ns/auth/cert#
wot: http://xmlns.com/wot/0.1/
">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
</head>
<body>
<!-- Tests whether the Unicode (UTF-8 encoded) characters are properly handled even with a large set of properties
in the html element, ie, when the content sniffing to find out the character encoding may not work -->
<p about="http://www.ivan-herman.net/foaf#me" property="foaf:name">Iván</p>
</body>
</html>
ASK WHERE {
<http://www.ivan-herman.net/foaf#me> <http://xmlns.com/foaf/0.1/name> "Iván" .
}
When encountering @vocab, a processor generates a triple with the base URI, rdfa:usesVocabulary and the IRI of the added vocabulary.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0217</title>
<base href="http://example.org/"/>
</head>
<body>
<div about="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Gregg Kellogg</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Gregg Kellogg" .
<http://example.org/> <http://www.w3.org/ns/rdfa#usesVocabulary> <http://xmlns.com/foaf/0.1/> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0217</title>
<base href="http://example.org/"/>
</head>
<body>
<div about="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Gregg Kellogg</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Gregg Kellogg" .
<http://example.org/> <http://www.w3.org/ns/rdfa#usesVocabulary> <http://xmlns.com/foaf/0.1/> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0217</title>
<base href="http://example.org/"/>
</head>
<body>
<div about="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Gregg Kellogg</p>
</div>
</body>
</html>
ASK WHERE {
<http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Gregg Kellogg" .
<http://example.org/> <http://www.w3.org/ns/rdfa#usesVocabulary> <http://xmlns.com/foaf/0.1/> .
}
@inlist on @rel with no incomplete triples creates an empty list.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0218</title>
</head>
<body>
<div about ="">
<p rel="rdf:value" inlist=""/>
</div>
</body>
</html>
ASK WHERE {
?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0218</title>
</head>
<body>
<div about ="">
<p rel="rdf:value" inlist=""/>
</div>
</body>
</html>
ASK WHERE {
?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0218</title>
</head>
<body>
<div about ="">
<p rel="rdf:value" inlist=""/>
</div>
</body>
</html>
ASK WHERE {
?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
}
@inlist with @property creates a list having a literal as a single element.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0219</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
</div>
</body>
</html>
ASK WHERE {
?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo") .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0219</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
</div>
</body>
</html>
ASK WHERE {
?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo") .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0219</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
</div>
</body>
</html>
ASK WHERE {
?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo") .
}
@inlist with @rel and @href creates a list having an IRI as a single element.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0220</title>
</head>
<body>
<div about="">
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0220.html>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> (<foo>) .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0220</title>
</head>
<body>
<div about="">
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0220.html>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> (<foo>) .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0220</title>
</head>
<body>
<div about="">
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0220.xhtml>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> (<foo>) .
}
@inlist with @rel and @property creates a list with both IRI and Literal elements.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0221</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0221.html>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo" <foo>) .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0221</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0221.html>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo" <foo>) .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0221</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0221.xhtml>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo" <foo>) .
}
@inlist with @property at different levels of descendence creates single list.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0222</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0222.html>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo" "Bar") .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0222</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0222.html>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo" "Bar") .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0222</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0222.xhtml>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo" "Bar") .
}
Use of predicate with @inlist and without @inlist creates both list and non-list triples.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0223</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
<p property="rdf:value">Baz</p>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0223.html>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo" "Bar"), "Baz" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0223</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
<p property="rdf:value">Baz</p>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0223.html>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo" "Bar"), "Baz" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0223</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
<p property="rdf:value">Baz</p>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0223.xhtml>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo" "Bar"), "Baz" .
}
Use of @rel and @inlist with decendent IRI elements creates list
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0224</title>
</head>
<body>
<div about="">
<ol rel="rdf:value" inlist="">
<li><a href="foo">Foo</a></li>
<li><a href="bar">Bar</a></li>
</ol>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0224.html>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> (<foo> <bar>) .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0224</title>
</head>
<body>
<div about="">
<ol rel="rdf:value" inlist="">
<li><a href="foo">Foo</a></li>
<li><a href="bar">Bar</a></li>
</ol>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0224.html>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> (<foo> <bar>) .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0224</title>
</head>
<body>
<div about="">
<ol rel="rdf:value" inlist="">
<li><a href="foo">Foo</a></li>
<li><a href="bar">Bar</a></li>
</ol>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0224.xhtml>
ASK WHERE {
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> (<foo> <bar>) .
}
@inlist with same property and subject on different elements creates multiple lists
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0225</title>
</head>
<body>
<div about="foo">
<p property="rdf:value" inlist="">Foo</p>
</div>
<div about="foo">
<p property="rdf:value" inlist="">Bar</p>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0225.html>
ASK WHERE {
<foo> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo"), ("Bar") .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0225</title>
</head>
<body>
<div about="foo">
<p property="rdf:value" inlist="">Foo</p>
</div>
<div about="foo">
<p property="rdf:value" inlist="">Bar</p>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0225.html>
ASK WHERE {
<foo> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo"), ("Bar") .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0225</title>
</head>
<body>
<div about="foo">
<p property="rdf:value" inlist="">Foo</p>
</div>
<div about="foo">
<p property="rdf:value" inlist="">Bar</p>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0225.xhtml>
ASK WHERE {
<foo> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> ("Foo"), ("Bar") .
}
Use of @inlist with implicit subject uses different list
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0226</title>
</head>
<body prefix="ex: http://www.example.org/">
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="ex:inlist" resource="res">
<p property="rdf:value" inlist="">Bar</p>
</span>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0226.html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX ex: <http://www.example.org/>
ASK WHERE {
<> rdf:value ("Foo");
ex:inlist <res> .
<res> rdf:value ("Bar") .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0226</title>
</head>
<body prefix="ex: http://www.example.org/">
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="ex:inlist" resource="res">
<p property="rdf:value" inlist="">Bar</p>
</span>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0226.html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX ex: <http://www.example.org/>
ASK WHERE {
<> rdf:value ("Foo");
ex:inlist <res> .
<res> rdf:value ("Bar") .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0226</title>
</head>
<body prefix="ex: http://www.example.org/">
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="ex:inlist" resource="res">
<p property="rdf:value" inlist="">Bar</p>
</span>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0226.xhtml>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX ex: <http://www.example.org/>
ASK WHERE {
<> rdf:value ("Foo");
ex:inlist <res> .
<res> rdf:value ("Bar") .
}
Use of @inlist with implicit subject uses different list
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0227</title>
</head>
<body prefix="ex: http://www.example.org/">
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="ex:inlist">
<p about="res" property="rdf:value" inlist="">Bar</p>
</span>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0227.html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX ex: <http://www.example.org/>
ASK WHERE {
<> rdf:value ("Foo");
ex:inlist <res> .
<res> rdf:value ("Bar") .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0227</title>
</head>
<body prefix="ex: http://www.example.org/">
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="ex:inlist">
<p about="res" property="rdf:value" inlist="">Bar</p>
</span>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0227.html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX ex: <http://www.example.org/>
ASK WHERE {
<> rdf:value ("Foo");
ex:inlist <res> .
<res> rdf:value ("Bar") .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0227</title>
</head>
<body prefix="ex: http://www.example.org/">
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="ex:inlist">
<p about="res" property="rdf:value" inlist="">Bar</p>
</span>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0227.xhtml>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX ex: <http://www.example.org/>
ASK WHERE {
<> rdf:value ("Foo");
ex:inlist <res> .
<res> rdf:value ("Bar") .
}
@src is a lower priority than @resource
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0228</title>
<!-- Based on 1.1 semantics for 0040 -->
</head>
<body>
<div>
<img src="http://sw-app.org/img/mic_2007_01.jpg"
rev="xhv:alternate"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/img/mic_2006_03.jpg> <http://www.w3.org/1999/xhtml/vocab#alternate> <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0228.html> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0228</title>
<!-- Based on 1.1 semantics for 0040 -->
</head>
<body>
<div>
<img src="http://sw-app.org/img/mic_2007_01.jpg"
rev="xhv:alternate"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/img/mic_2006_03.jpg> <http://www.w3.org/1999/xhtml/vocab#alternate> <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0228.html> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0228</title>
<!-- Based on 1.1 semantics for 0040 -->
</head>
<body>
<div>
<img src="http://sw-app.org/img/mic_2007_01.jpg"
rev="xhv:alternate"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://sw-app.org/img/mic_2006_03.jpg> <http://www.w3.org/1999/xhtml/vocab#alternate> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0228.xhtml> .
}
Tests if a @src (in img element) does not set the URIref object (with omitted @about) -- from 0042
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0042</title>
</head>
<body>
<div>
<img rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0229.html> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2007_01.jpg> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0042</title>
</head>
<body>
<div>
<img rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0229.html> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2007_01.jpg> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0042</title>
</head>
<body>
<div>
<img rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0229.xhtml> <http://xmlns.com/foaf/0.1/img> <http://sw-app.org/img/mic_2007_01.jpg> .
}
Tests to ensure that @src does not set a new subject (oposite of 0090 for 1.0).
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0230</title>
</head>
<body>
<div>
<img
src="http://example.org/example.png"
rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/2.0/"
alt="example image" />
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0230.html> <http://www.w3.org/1999/xhtml/vocab#license> <http://creativecommons.org/licenses/by-nc-sa/2.0/> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0230</title>
</head>
<body>
<div>
<img
src="http://example.org/example.png"
rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/2.0/"
alt="example image" />
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0230.html> <http://www.w3.org/1999/xhtml/vocab#license> <http://creativecommons.org/licenses/by-nc-sa/2.0/> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0230</title>
</head>
<body>
<div>
<img
src="http://example.org/example.png"
rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/2.0/"
alt="example image" />
</div>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0230.xhtml> <http://www.w3.org/1999/xhtml/vocab#license> <http://creativecommons.org/licenses/by-nc-sa/2.0/> .
}
Tests new behavior of @src in 1.1
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0231</title>
</head>
<body>
<div about="http://creativecommons.org/licenses/by-nc-sa/2.0/" rev="license">
<img src="http://example.org/example.png" alt="example image" />
</div>
</body>
</html>
ASK WHERE {
<http://example.org/example.png> <http://www.w3.org/1999/xhtml/vocab#license> <http://creativecommons.org/licenses/by-nc-sa/2.0/> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0231</title>
</head>
<body>
<div about="http://creativecommons.org/licenses/by-nc-sa/2.0/" rev="license">
<img src="http://example.org/example.png" alt="example image" />
</div>
</body>
</html>
ASK WHERE {
<http://example.org/example.png> <http://www.w3.org/1999/xhtml/vocab#license> <http://creativecommons.org/licenses/by-nc-sa/2.0/> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0231</title>
</head>
<body>
<div about="http://creativecommons.org/licenses/by-nc-sa/2.0/" rev="license">
<img src="http://example.org/example.png" alt="example image" />
</div>
</body>
</html>
ASK WHERE {
<http://example.org/example.png> <http://www.w3.org/1999/xhtml/vocab#license> <http://creativecommons.org/licenses/by-nc-sa/2.0/> .
}
Tests @typeof with @rel present, no @href, @resource, or @about creates a BNode object
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0232</title>
</head>
<body>
<div rel="foaf:maker" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0232.html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<> foaf:maker ?a .
?a a foaf:Person;
foaf:name "John Doe" .
FILTER ( isBlank(?a) )
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0232</title>
</head>
<body>
<div rel="foaf:maker" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0232.html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<> foaf:maker ?a .
?a a foaf:Person;
foaf:name "John Doe" .
FILTER ( isBlank(?a) )
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0232</title>
</head>
<body>
<div rel="foaf:maker" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0232.xhtml>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<> foaf:maker ?a .
?a a foaf:Person;
foaf:name "John Doe" .
FILTER ( isBlank(?a) )
}
Tests @typeof with @rel and @resource present, no @about adds type to object
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0233</title>
</head>
<body>
<div rel="foaf:maker" typeof="foaf:Person" resource="http://www.example.org/#me">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0233.html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<> foaf:maker <http://www.example.org/#me> .
<http://www.example.org/#me> a foaf:Person;
foaf:name "John Doe" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0233</title>
</head>
<body>
<div rel="foaf:maker" typeof="foaf:Person" resource="http://www.example.org/#me">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0233.html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<> foaf:maker <http://www.example.org/#me> .
<http://www.example.org/#me> a foaf:Person;
foaf:name "John Doe" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0233</title>
</head>
<body>
<div rel="foaf:maker" typeof="foaf:Person" resource="http://www.example.org/#me">
<p property="foaf:name">John Doe</p>
</div>
</body>
</html>
BASE <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0233.xhtml>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<> foaf:maker <http://www.example.org/#me> .
<http://www.example.org/#me> a foaf:Person;
foaf:name "John Doe" .
}
Tests to ensure that all defined linked relations expand
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0234</title>
</head>
<body>
<p>
<a rel="describedby" href="http://example.org/describedby">describedby</a>
<a rel="license" href="http://example.org/license">license</a>
<a rel="role" href="http://example.org/role">role</a>
</p>
</body>
</html>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
PREFIX powder: <http://www.w3.org/2007/05/powder-s#>
PREFIX ex: <http://example.org/>
ASK WHERE {
?s powder:describedby ex:describedby;
xhv:license ex:license;
xhv:role ex:role
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0234</title>
</head>
<body>
<p>
<a rel="describedby" href="http://example.org/describedby">describedby</a>
<a rel="license" href="http://example.org/license">license</a>
<a rel="role" href="http://example.org/role">role</a>
</p>
</body>
</html>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
PREFIX powder: <http://www.w3.org/2007/05/powder-s#>
PREFIX ex: <http://example.org/>
ASK WHERE {
?s powder:describedby ex:describedby;
xhv:license ex:license;
xhv:role ex:role
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0234</title>
</head>
<body>
<p>
<a rel="describedby" href="http://example.org/describedby">describedby</a>
<a rel="license" href="http://example.org/license">license</a>
<a rel="role" href="http://example.org/role">role</a>
</p>
</body>
</html>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
PREFIX powder: <http://www.w3.org/2007/05/powder-s#>
PREFIX ex: <http://example.org/>
ASK WHERE {
?s powder:describedby ex:describedby;
xhv:license ex:license;
xhv:role ex:role
}
Setting rdfagraph query parameter to 'processor' does not output standard triples
Expected query to return false
Test files for HTML5+RDFa 1.1 Processor Graph:
<!DOCTYPE html>
<html>
<head>
<title>Test 0235</title>
</head>
<body>
<p>
The <span property="dc:title">rdfagraph</span> should not generate triples when
looking only at the processor graph.
</p>
</body>
</html>
PREFIX dc: <http://purl.org/dc/terms/>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5> dc:title "rdfagraph" .
}
Setting rdfagraph query parameter to 'processor' generates an rdf:Warning when given a SafeCURIE with an invalid prefix.
Expected query to return true
Test files for HTML5+RDFa 1.1 Processor Graph:
<!DOCTYPE html>
<html>
<head>
<title>Test 0237</title>
</head>
<body prefix="$malformed http://example.com"
property="rdf:value"
resource="[$malformed:curie]">
Malformed Prefix
</body>
</html>
PREFIX rdfa: <http://www.w3.org/ns/rdfa#>
ASK WHERE { ?s a rdfa:UnresolvedCURIE }
Setting rdfagraph query parameter to 'processor' generates an rdf:Warning when given a missing Term definition.
Expected query to return true
Test files for HTML5+RDFa 1.1 Processor Graph:
<!DOCTYPE html>
<html>
<head>
<title>Test 0238</title>
</head>
<body property="undefined_term">
Undefined Term
</body>
</html>
PREFIX rdfa: <http://www.w3.org/ns/rdfa#>
ASK WHERE { ?s a rdfa:UnresolvedTerm }
Setting rdfagraph query parameter to 'processor' generates an rdf:Warning when given a SafeCURIE with an undefined prefix.
Expected query to return true
Test files for HTML5+RDFa 1.1 Processor Graph:
<!DOCTYPE html>
<html>
<head>
<title>Test 0239</title>
</head>
<body property="rdf:value"
resource="[undefined:curie]">
Undefined Prefix
</body>
</html>
PREFIX rdfa: <http://www.w3.org/ns/rdfa#>
ASK WHERE { ?s a rdfa:UnresolvedCURIE }
A property having an rdfs:subPropertyOf relationship defined in an in-use vocabulary causes triples to be added to the referenced property.
Expected query to return true
Test files for HTML5+RDFa 1.1 Vocabulary:
<!DOCTYPE html>
<html>
<head>
<title>Test 0240</title>
</head>
<body prefix="rdfatest: http://rdfa.info/vocabs/rdfa-test#" vocab="http://rdfa.info/vocabs/rdfa-test#">
Using the property <code property="subProp" resource="rdfatest:subProp">subProp</code>
should cause a triple with <code>baseProp</code> to be added.
</body>
</html>
PREFIX rdfatest: <http://rdfa.info/vocabs/rdfa-test#>
ASK WHERE {
?s rdfatest:subProp rdfatest:subProp;
rdfatest:baseProp rdfatest:subProp
}
A property having an owl:equivalentProperty relationship defined in an in-use vocabulary causes triples to be added to the referenced property.
Expected query to return true
Test files for HTML5+RDFa 1.1 Vocabulary:
<!DOCTYPE html>
<html>
<head>
<title>Test 0241</title>
</head>
<body prefix="rdfatest: http://rdfa.info/vocabs/rdfa-test#" vocab="http://rdfa.info/vocabs/rdfa-test#">
Using the property <code property="eqProp" resource="rdfatest:eqProp">eqProp</code>
should cause a triple with <code>baseProp</code> to be added.
</body>
</html>
PREFIX rdfatest: <http://rdfa.info/vocabs/rdfa-test#>
ASK WHERE {
?s rdfatest:eqProp rdfatest:eqProp;
rdfatest:baseProp rdfatest:eqProp
}
A property which is the target of another property having an owl:equivalentProperty relationship defined in an in-use vocabulary causes triples to be added to the defining property.
Expected query to return true
Test files for HTML5+RDFa 1.1 Vocabulary:
<!DOCTYPE html>
<html>
<head>
<title>Test 0242</title>
</head>
<body prefix="rdfatest: http://rdfa.info/vocabs/rdfa-test#" vocab="http://rdfa.info/vocabs/rdfa-test#">
Using the property <code property="baseProp" resource="rdfatest:eqProp">eqProp</code>
should cause a triple with <code>eqProp</code> to be added.
</body>
</html>
PREFIX rdfatest: <http://rdfa.info/vocabs/rdfa-test#>
ASK WHERE {
?s rdfatest:eqProp rdfatest:eqProp;
rdfatest:baseProp rdfatest:eqProp
}
A property having an rdfs:subClassOf relationship defined in an in-use vocabulary causes triples to be added to the referenced class.
Expected query to return true
Test files for HTML5+RDFa 1.1 Vocabulary:
<!DOCTYPE html>
<html>
<head>
<title>Test 0243</title>
</head>
<body prefix="rdfatest: http://rdfa.info/vocabs/rdfa-test#" vocab="http://rdfa.info/vocabs/rdfa-test#">
Using the type <code about="_:a" typeof="SubClass">SubClass</code>
should cause a triple with <code>BaseClass</code> to be added.
</body>
</html>
PREFIX rdfatest: <http://rdfa.info/vocabs/rdfa-test#>
ASK WHERE {
?s a rdfatest:SubClass, rdfatest:BaseClass
}
A class having an owl:equivalentClass relationship defined in an in-use vocabulary causes triples to be added to the referenced class.
Expected query to return true
Test files for HTML5+RDFa 1.1 Vocabulary:
<!DOCTYPE html>
<html>
<head>
<title>Test 0244</title>
</head>
<body prefix="rdfatest: http://rdfa.info/vocabs/rdfa-test#" vocab="http://rdfa.info/vocabs/rdfa-test#">
Using the type <code about="_:a" typeof="EqClass">EqClass</code>
should cause a triple with <code>BaseClass</code> to be added.
</body>
</html>
PREFIX rdfatest: <http://rdfa.info/vocabs/rdfa-test#>
ASK WHERE {
?s a rdfatest:EqClass, rdfatest:BaseClass
}
A class which is the target of another class having an owl:equivalentClass relationship defined in an in-use vocabulary causes triples to be added to the defining class.
Expected query to return true
Test files for HTML5+RDFa 1.1 Vocabulary:
<!DOCTYPE html>
<html>
<head>
<title>Test 0245</title>
</head>
<body prefix="rdfatest: http://rdfa.info/vocabs/rdfa-test#" vocab="http://rdfa.info/vocabs/rdfa-test#">
Using the type <code about="_:a" typeof="BaseClass">BaseClass</code>
should cause a triple with <code>EqClass</code> to be added.
</body>
</html>
PREFIX rdfatest: <http://rdfa.info/vocabs/rdfa-test#>
ASK WHERE {
?s a rdfatest:EqClass, rdfatest:BaseClass
}
Tests if hanging @rel creates multiple triples with @typeof permutation
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0246</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
<p typeof="foaf:Person"><span property="foaf:name">Ivan Herman</span></p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> ?b .
?a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?a <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
?b <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?b <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
FILTER ( isBlank(?a) && isBlank(?b) )
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0246</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
<p typeof="foaf:Person"><span property="foaf:name">Ivan Herman</span></p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> ?b .
?a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?a <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
?b <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?b <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
FILTER ( isBlank(?a) && isBlank(?b) )
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0246</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
<p typeof="foaf:Person"><span property="foaf:name">Ivan Herman</span></p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#ben> <http://xmlns.com/foaf/0.1/knows> ?b .
?a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?a <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
?b <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?b <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
FILTER ( isBlank(?a) && isBlank(?b) )
}
Tests multiple ways of handling incomplete triples; the first two triples should use the same bnode as subject ('merged'). The third should have a separate bNode.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0247</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows>
[ <http://xmlns.com/foaf/0.1/name> "Ivan Herman";
<http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> ],
[ <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person>;
<http://xmlns.com/foaf/0.1/name> "Mark Birbeck" ] .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0247</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows>
[ <http://xmlns.com/foaf/0.1/name> "Ivan Herman";
<http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> ],
[ <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person>;
<http://xmlns.com/foaf/0.1/name> "Mark Birbeck" ] .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0247</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows>
[ <http://xmlns.com/foaf/0.1/name> "Ivan Herman";
<http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> ],
[ <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person>;
<http://xmlns.com/foaf/0.1/name> "Mark Birbeck" ] .
}
Tests multiple ways of handling incomplete triples, this time with @rev
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0248</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about ="http://www.example.org/#somebody" rev="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
</div>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
?b <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?b <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?b <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
FILTER ( isBlank(?a) && isBlank(?b) )
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0248</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about ="http://www.example.org/#somebody" rev="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
</div>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
?b <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?b <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?b <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
FILTER ( isBlank(?a) && isBlank(?b) )
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0248</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about ="http://www.example.org/#somebody" rev="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
</div>
</body>
</html>
ASK WHERE {
?a <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
?b <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?b <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?b <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
FILTER ( isBlank(?a) && isBlank(?b) )
}
Tests multiple ways of handling incomplete triples, this time with both @rel and @rev
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0249</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?b .
?a <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
?b <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?b <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?b <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
FILTER ( isBlank(?a) && isBlank(?b) )
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0249</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?b .
?a <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
?b <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?b <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?b <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
FILTER ( isBlank(?a) && isBlank(?b) )
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0249</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person"><span property="foaf:name">Mark Birbeck</span></p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?a .
<http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> ?b .
?a <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?a <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> .
?a <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
?b <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
?b <http://xmlns.com/foaf/0.1/knows> <http://www.example.org/#somebody> .
?b <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .
FILTER ( isBlank(?a) && isBlank(?b) )
}
Tests that @typeof is clearly bound to @about, and @property therefore creates a Literal object
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0250</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<p about ="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="foaf:name">Ivan Herman</p>
</body>
</html>
ASK WHERE {
<http://www.ivan-herman.net/foaf#me> a <http://xmlns.com/foaf/0.1/Person>;
<http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0250</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<p about ="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="foaf:name">Ivan Herman</p>
</body>
</html>
ASK WHERE {
<http://www.ivan-herman.net/foaf#me> a <http://xmlns.com/foaf/0.1/Person>;
<http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0250</title>
</head>
<body prefix="foaf: http://xmlns.com/foaf/0.1/">
<p about ="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="foaf:name">Ivan Herman</p>
</body>
</html>
ASK WHERE {
<http://www.ivan-herman.net/foaf#me> a <http://xmlns.com/foaf/0.1/Person>;
<http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
}
Tests lang
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" prefix="ex: http://example.org/">
<head about="">
<title>Test 251</title>
<meta about="http://example.org/node" property="ex:property" lang="fr" content="chat" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "chat"@fr .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html prefix="ex: http://example.org/">
<head about="">
<title>Test 251</title>
<meta about="http://example.org/node" property="ex:property" lang="fr" content="chat" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "chat"@fr .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="ex: http://example.org/">
<head about="">
<title>Test 251</title>
<meta about="http://example.org/node" property="ex:property" lang="fr" content="chat" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "chat"@fr .
}
Tests lang inheritance
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" prefix="ex: http://example.org/">
<head about="" lang="fr">
<title lang="en">Test 0252</title>
<meta about="http://example.org/node" property="ex:property" content="chat" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "chat"@fr .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html prefix="ex: http://example.org/">
<head about="" lang="fr">
<title lang="en">Test 0252</title>
<meta about="http://example.org/node" property="ex:property" content="chat" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "chat"@fr .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="ex: http://example.org/">
<head about="" lang="fr">
<title lang="en">Test 0252</title>
<meta about="http://example.org/node" property="ex:property" content="chat" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "chat"@fr .
}
Checks to make sure that the RDFa parser emits a plain literal when the datatype is specified as "" and preserves the xml:lang value. The text, with control characters and whitespace preserved, reads "Greek white space ".
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" prefix="ex: http://example.org/">
<head>
<title>Test 0108</title>
</head>
<body>
<p about="http://example.org/node" property="ex:property"
datatype="" lang="el">ελληνικό
άσπρο διάστημα
</p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "ελληνικό\nάσπρο διάστημα\n"@el .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html prefix="ex: http://example.org/">
<head>
<title>Test 0108</title>
</head>
<body>
<p about="http://example.org/node" property="ex:property"
datatype="" lang="el">ελληνικό
άσπρο διάστημα
</p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "ελληνικό\nάσπρο διάστημα\n"@el .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="ex: http://example.org/">
<head>
<title>Test 0108</title>
</head>
<body>
<p about="http://example.org/node" property="ex:property"
datatype="" lang="el">ελληνικό
άσπρο διάστημα
</p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "ελληνικό\nάσπρο διάστημα\n"@el .
}
Checks to ensure that when @datatype="" is used on an element that contains child nodes, that the literal that is generated is a plain literal.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" prefix="ex: http://example.org/terms#">
<head>
<title>Test 0254</title>
<base href="http://example.org/"/>
</head>
<body lang="en">
<p property="ex:prop" datatype="">A <strong>plain literal</strong> with a lang tag.</p>
</body>
</html>
ASK WHERE {
<http://example.org/> <http://example.org/terms#prop> "A plain literal with a lang tag."@en .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html prefix="ex: http://example.org/terms#">
<head>
<title>Test 0254</title>
<base href="http://example.org/"/>
</head>
<body lang="en">
<p property="ex:prop" datatype="">A <strong>plain literal</strong> with a lang tag.</p>
</body>
</html>
ASK WHERE {
<http://example.org/> <http://example.org/terms#prop> "A plain literal with a lang tag."@en .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="ex: http://example.org/terms#">
<head>
<title>Test 0254</title>
<base href="http://example.org/"/>
</head>
<body lang="en">
<p property="ex:prop" datatype="">A <strong>plain literal</strong> with a lang tag.</p>
</body>
</html>
ASK WHERE {
<http://example.org/> <http://example.org/terms#prop> "A plain literal with a lang tag."@en .
}
Checks to ensure that when lang="" is used that any parent element language setting is cleared and a language-less literal is generated.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" prefix="ex: http://example.org/terms#">
<head>
<title>Test 0255</title>
<base href="http://example.org/"/>
</head>
<body lang="en">
<p property="ex:prop" lang="">Just a plain literal.</p>
</body>
</html>
ASK WHERE {
<http://example.org/> <http://example.org/terms#prop> "Just a plain literal." .
<http://example.org/> <http://example.org/terms#prop> ?plain .
FILTER(lang(?plain) = "")
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html prefix="ex: http://example.org/terms#">
<head>
<title>Test 0255</title>
<base href="http://example.org/"/>
</head>
<body lang="en">
<p property="ex:prop" lang="">Just a plain literal.</p>
</body>
</html>
ASK WHERE {
<http://example.org/> <http://example.org/terms#prop> "Just a plain literal." .
<http://example.org/> <http://example.org/terms#prop> ?plain .
FILTER(lang(?plain) = "")
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="ex: http://example.org/terms#">
<head>
<title>Test 0255</title>
<base href="http://example.org/"/>
</head>
<body lang="en">
<p property="ex:prop" lang="">Just a plain literal.</p>
</body>
</html>
ASK WHERE {
<http://example.org/> <http://example.org/terms#prop> "Just a plain literal." .
<http://example.org/> <http://example.org/terms#prop> ?plain .
FILTER(lang(?plain) = "")
}
Tests @xml:lang and @lang on the same element with different values; @xml:lang should prevail.
Expected query to return true
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="ex: http://example.org/">
<head about="">
<title>Test 0256</title>
<meta about="http://example.org/node" property="ex:property" xml:lang="fr" lang="hu" content="chat" />
</head>
<body>
<p></p>
</body>
</html>
ASK WHERE {
<http://example.org/node> <http://example.org/property> "chat"@fr .
}
Checks to make sure that an element with @property and no child nodes generates empty plain literal.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0257</title>
</head>
<body>
<span about="#a" property="dc:title"></span>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0257.html#a> <http://purl.org/dc/elements/1.1/title> "" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0257</title>
</head>
<body>
<span about="#a" property="dc:title"></span>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0257.html#a> <http://purl.org/dc/elements/1.1/title> "" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0257</title>
</head>
<body>
<span about="#a" property="dc:title"></span>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0257.xhtml#a> <http://purl.org/dc/elements/1.1/title> "" .
}
Ensures that a prefix cannot start with an underscore character when specified using xmlns or prefix.
Expected query to return false
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Undescore Prefix is Ignored Test</title>
</head>
<body>
<p>Ensure that the "_" prefix is ignored.</p>
<p xmlns:_="http://example.org/"
prefix="_: http://example.org/"
xmlns:earl="http://www.w3.org/ns/earl#"
rel="earl:testcase" resource="_:test">Test</p>
</body>
</html>
# This is a negative test, the triple shown below should not be generated.
PREFIX earl: <http://www.w3.org/ns/earl#>
PREFIX ex: <http://example.org/>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0258.html> ?p ex:test .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Undescore Prefix is Ignored Test</title>
</head>
<body>
<p>Ensure that the "_" prefix is ignored.</p>
<p xmlns:_="http://example.org/"
prefix="_: http://example.org/"
xmlns:earl="http://www.w3.org/ns/earl#"
rel="earl:testcase" resource="_:test">Test</p>
</body>
</html>
# This is a negative test, the triple shown below should not be generated.
PREFIX earl: <http://www.w3.org/ns/earl#>
PREFIX ex: <http://example.org/>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0258.html> ?p ex:test .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Undescore Prefix is Ignored Test</title>
</head>
<body>
<p>Ensure that the "_" prefix is ignored.</p>
<p xmlns:_="http://example.org/"
prefix="_: http://example.org/"
xmlns:earl="http://www.w3.org/ns/earl#"
rel="earl:testcase" resource="_:test">Test</p>
</body>
</html>
# This is a negative test, the triple shown below should not be generated.
PREFIX earl: <http://www.w3.org/ns/earl#>
PREFIX ex: <http://example.org/>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0258.xhtml> ?p ex:test .
}
All processors must load the RDFa Core Initial Context.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0259</title>
</head>
<body>
<div>
Vocabulary Prefixes
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="owl:">OWL</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="skos:">SKOS</span>
<span property="skosxl:">SKOS-XL</span>
<span property="wdr:">WDR</span>
<span property="void:">VOID</span>
<span property="wdrs:">WDRS</span>
<span property="xhv:">XHV</span>
<span property="xml:">XML</span>
<span property="xsd:">XSD</span>
</div>
<div>
Widely Used prefixes
<span property="cc:">CC</span>
<span property="ctag:">CTAG</span>
<span property="dc:">DC</span>
<span property="dcterms:">DCTERMS</span>
<span property="foaf:">FOAF</span>
<span property="gr:">GR</span>
<span property="ical:">ICAL</span>
<span property="og:">OG</span>
<span property="rev:">REV</span>
<span property="sioc:">SIOC</span>
<span property="v:">V</span>
<span property="vcard:">VCARD</span>
<span property="schema:">Schema</span>
</div>
<div>
Vocabulary Terms
<span property="describedby">DescribedBy</span>
<span property="license">License</span>
<span property="role">Role</span>
</div>
</body></html>
ASK WHERE {
?s <http://www.w3.org/2003/g/data-view#> "GRDDL";
<http://www.w3.org/ns/ma-ont#> "MA";
<http://www.w3.org/2002/07/owl#> "OWL";
<http://www.w3.org/1999/02/22-rdf-syntax-ns#> "RDF";
<http://www.w3.org/ns/rdfa#> "RDFa";
<http://www.w3.org/2000/01/rdf-schema#> "RDFS";
<http://www.w3.org/2007/rif#> "RIF";
<http://www.w3.org/2004/02/skos/core#> "SKOS";
<http://www.w3.org/2008/05/skos-xl#> "SKOS-XL";
<http://www.w3.org/2007/05/powder#> "WDR";
<http://rdfs.org/ns/void#> "VOID";
<http://www.w3.org/2007/05/powder-s#> "WDRS";
<http://www.w3.org/1999/xhtml/vocab#> "XHV";
<http://www.w3.org/XML/1998/namespace> "XML";
<http://www.w3.org/2001/XMLSchema#> "XSD";
# Widely Used prefixes
<http://creativecommons.org/ns#> "CC";
<http://commontag.org/ns#> "CTAG";
<http://purl.org/dc/terms/> "DC", "DCTERMS";
<http://xmlns.com/foaf/0.1/> "FOAF";
<http://purl.org/goodrelations/v1#> "GR";
<http://www.w3.org/2002/12/cal/icaltzd#> "ICAL";
<http://ogp.me/ns#> "OG";
<http://purl.org/stuff/rev#> "REV";
<http://rdfs.org/sioc/ns#> "SIOC";
<http://rdf.data-vocabulary.org/#> "V";
<http://www.w3.org/2006/vcard/ns#> "VCARD";
<http://schema.org/> "Schema";
# Vocabulary Terms
<http://www.w3.org/2007/05/powder-s#describedby> "DescribedBy";
<http://www.w3.org/1999/xhtml/vocab#license> "License";
<http://www.w3.org/1999/xhtml/vocab#role> "Role";
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0259</title>
</head>
<body>
<div>
Vocabulary Prefixes
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="owl:">OWL</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="skos:">SKOS</span>
<span property="skosxl:">SKOS-XL</span>
<span property="wdr:">WDR</span>
<span property="void:">VOID</span>
<span property="wdrs:">WDRS</span>
<span property="xhv:">XHV</span>
<span property="xml:">XML</span>
<span property="xsd:">XSD</span>
</div>
<div>
Widely Used prefixes
<span property="cc:">CC</span>
<span property="ctag:">CTAG</span>
<span property="dc:">DC</span>
<span property="dcterms:">DCTERMS</span>
<span property="foaf:">FOAF</span>
<span property="gr:">GR</span>
<span property="ical:">ICAL</span>
<span property="og:">OG</span>
<span property="rev:">REV</span>
<span property="sioc:">SIOC</span>
<span property="v:">V</span>
<span property="vcard:">VCARD</span>
<span property="schema:">Schema</span>
</div>
<div>
Vocabulary Terms
<span property="describedby">DescribedBy</span>
<span property="license">License</span>
<span property="role">Role</span>
</div>
</body></html>
ASK WHERE {
?s <http://www.w3.org/2003/g/data-view#> "GRDDL";
<http://www.w3.org/ns/ma-ont#> "MA";
<http://www.w3.org/2002/07/owl#> "OWL";
<http://www.w3.org/1999/02/22-rdf-syntax-ns#> "RDF";
<http://www.w3.org/ns/rdfa#> "RDFa";
<http://www.w3.org/2000/01/rdf-schema#> "RDFS";
<http://www.w3.org/2007/rif#> "RIF";
<http://www.w3.org/2004/02/skos/core#> "SKOS";
<http://www.w3.org/2008/05/skos-xl#> "SKOS-XL";
<http://www.w3.org/2007/05/powder#> "WDR";
<http://rdfs.org/ns/void#> "VOID";
<http://www.w3.org/2007/05/powder-s#> "WDRS";
<http://www.w3.org/1999/xhtml/vocab#> "XHV";
<http://www.w3.org/XML/1998/namespace> "XML";
<http://www.w3.org/2001/XMLSchema#> "XSD";
# Widely Used prefixes
<http://creativecommons.org/ns#> "CC";
<http://commontag.org/ns#> "CTAG";
<http://purl.org/dc/terms/> "DC", "DCTERMS";
<http://xmlns.com/foaf/0.1/> "FOAF";
<http://purl.org/goodrelations/v1#> "GR";
<http://www.w3.org/2002/12/cal/icaltzd#> "ICAL";
<http://ogp.me/ns#> "OG";
<http://purl.org/stuff/rev#> "REV";
<http://rdfs.org/sioc/ns#> "SIOC";
<http://rdf.data-vocabulary.org/#> "V";
<http://www.w3.org/2006/vcard/ns#> "VCARD";
<http://schema.org/> "Schema";
# Vocabulary Terms
<http://www.w3.org/2007/05/powder-s#describedby> "DescribedBy";
<http://www.w3.org/1999/xhtml/vocab#license> "License";
<http://www.w3.org/1999/xhtml/vocab#role> "Role";
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0259</title>
</head>
<body>
<div>
Vocabulary Prefixes
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="owl:">OWL</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="skos:">SKOS</span>
<span property="skosxl:">SKOS-XL</span>
<span property="wdr:">WDR</span>
<span property="void:">VOID</span>
<span property="wdrs:">WDRS</span>
<span property="xhv:">XHV</span>
<span property="xml:">XML</span>
<span property="xsd:">XSD</span>
</div>
<div>
Widely Used prefixes
<span property="cc:">CC</span>
<span property="ctag:">CTAG</span>
<span property="dc:">DC</span>
<span property="dcterms:">DCTERMS</span>
<span property="foaf:">FOAF</span>
<span property="gr:">GR</span>
<span property="ical:">ICAL</span>
<span property="og:">OG</span>
<span property="rev:">REV</span>
<span property="sioc:">SIOC</span>
<span property="v:">V</span>
<span property="vcard:">VCARD</span>
<span property="schema:">Schema</span>
</div>
<div>
Vocabulary Terms
<span property="describedby">DescribedBy</span>
<span property="license">License</span>
<span property="role">Role</span>
</div>
</body></html>
ASK WHERE {
?s <http://www.w3.org/2003/g/data-view#> "GRDDL";
<http://www.w3.org/ns/ma-ont#> "MA";
<http://www.w3.org/2002/07/owl#> "OWL";
<http://www.w3.org/1999/02/22-rdf-syntax-ns#> "RDF";
<http://www.w3.org/ns/rdfa#> "RDFa";
<http://www.w3.org/2000/01/rdf-schema#> "RDFS";
<http://www.w3.org/2007/rif#> "RIF";
<http://www.w3.org/2004/02/skos/core#> "SKOS";
<http://www.w3.org/2008/05/skos-xl#> "SKOS-XL";
<http://www.w3.org/2007/05/powder#> "WDR";
<http://rdfs.org/ns/void#> "VOID";
<http://www.w3.org/2007/05/powder-s#> "WDRS";
<http://www.w3.org/1999/xhtml/vocab#> "XHV";
<http://www.w3.org/XML/1998/namespace> "XML";
<http://www.w3.org/2001/XMLSchema#> "XSD";
# Widely Used prefixes
<http://creativecommons.org/ns#> "CC";
<http://commontag.org/ns#> "CTAG";
<http://purl.org/dc/terms/> "DC", "DCTERMS";
<http://xmlns.com/foaf/0.1/> "FOAF";
<http://purl.org/goodrelations/v1#> "GR";
<http://www.w3.org/2002/12/cal/icaltzd#> "ICAL";
<http://ogp.me/ns#> "OG";
<http://purl.org/stuff/rev#> "REV";
<http://rdfs.org/sioc/ns#> "SIOC";
<http://rdf.data-vocabulary.org/#> "V";
<http://www.w3.org/2006/vcard/ns#> "VCARD";
<http://schema.org/> "Schema";
# Vocabulary Terms
<http://www.w3.org/2007/05/powder-s#describedby> "DescribedBy";
<http://www.w3.org/1999/xhtml/vocab#license> "License";
<http://www.w3.org/1999/xhtml/vocab#role> "Role";
}
Whitespace must be maintained in an XMLLiteral, too
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:ex="http://example.org/rdf/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0261</title>
</head>
<body>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is
an XMLLiteral</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org> <http://example.org/rdf/xmllit> """This is
an XMLLiteral"""^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:ex="http://example.org/rdf/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0261</title>
</head>
<body>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is
an XMLLiteral</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org> <http://example.org/rdf/xmllit> """This is
an XMLLiteral"""^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ex="http://example.org/rdf/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0261</title>
</head>
<body>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is
an XMLLiteral</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org> <http://example.org/rdf/xmllit> """This is
an XMLLiteral"""^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
}
Tests @property to establish the predicate; literal object is in the content of the element. There are extra whitespaces before and after the property attribute value which should be ignored
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0262</title>
</head>
<body>
<p>This photo was taken by <span class="author" about="photo1.jpg" property=" dc:creator
">Mark Birbeck</span>.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0262</title>
</head>
<body>
<p>This photo was taken by <span class="author" about="photo1.jpg" property=" dc:creator
">Mark Birbeck</span>.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0262</title>
</head>
<body>
<p>This photo was taken by <span class="author" about="photo1.jpg" property=" dc:creator
">Mark Birbeck</span>.</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/photo1.jpg> <http://purl.org/dc/elements/1.1/creator> "Mark Birbeck" .
}
@property appearing on the html element without @content or @datatype yields the base as the subject
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" property="rdfs:seeAlso" resource="http://www.example.org">
<head >
<title>Test 0263</title>
</head>
<body>
<p> </p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0263.html> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.example.org> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html property="rdfs:seeAlso" resource="http://www.example.org">
<head >
<title>Test 0263</title>
</head>
<body>
<p> </p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0263.html> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.example.org> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" property="rdfs:seeAlso" resource="http://www.example.org">
<head >
<title>Test 0263</title>
</head>
<body>
<p> </p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0263.xhtml> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.example.org> .
}
@property appearing on the head element gets the subject from , ie, parent
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head property="rdfs:seeAlso" resource="http://www.example.org">
<title>Test 0264</title>
</head>
<body>
<p> </p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0264.html> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.example.org> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head property="rdfs:seeAlso" resource="http://www.example.org">
<title>Test 0264</title>
</head>
<body>
<p> </p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0264.html> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.example.org> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head property="rdfs:seeAlso" resource="http://www.example.org">
<title>Test 0264</title>
</head>
<body>
<p> </p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0264.xhtml> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.example.org> .
}
@property appearing on the head element gets the subject from , ie, parent; in this case the parent subject is explicitly set via @about
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" about="http://www.example.com">
<head property="rdfs:seeAlso" resource="http://www.example.org">
<title>Test 0265</title>
</head>
<body>
<p> </p>
</body>
</html>
ASK WHERE {
<http://www.example.com> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.example.org> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html about="http://www.example.com">
<head property="rdfs:seeAlso" resource="http://www.example.org">
<title>Test 0265</title>
</head>
<body>
<p> </p>
</body>
</html>
ASK WHERE {
<http://www.example.com> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.example.org> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" about="http://www.example.com">
<head property="rdfs:seeAlso" resource="http://www.example.org">
<title>Test 0265</title>
</head>
<body>
<p> </p>
</body>
</html>
ASK WHERE {
<http://www.example.com> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.example.org> .
}
@property without @content or @datatype, typed object set by @href and @typeof
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0266</title>
</head>
<body>
<div about="http://www.w3.org/Person/Ivan#me">
<a href="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</a>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
ASK WHERE {
<http://www.w3.org/Person/Ivan#me> owl:sameAs <http://www.ivan-herman.net/foaf#me> .
<http://www.ivan-herman.net/foaf#me> a foaf:Person .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0266</title>
</head>
<body>
<div about="http://www.w3.org/Person/Ivan#me">
<a href="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</a>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
ASK WHERE {
<http://www.w3.org/Person/Ivan#me> owl:sameAs <http://www.ivan-herman.net/foaf#me> .
<http://www.ivan-herman.net/foaf#me> a foaf:Person .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0266</title>
</head>
<body>
<div about="http://www.w3.org/Person/Ivan#me">
<a href="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</a>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
ASK WHERE {
<http://www.w3.org/Person/Ivan#me> owl:sameAs <http://www.ivan-herman.net/foaf#me> .
<http://www.ivan-herman.net/foaf#me> a foaf:Person .
}
@property without @content or @datatype, typed object set by @resource and @typeof
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0267</title>
</head>
<body>
<div about="http://www.w3.org/Person/Ivan#me">
<p resource="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</p>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
ASK WHERE {
<http://www.w3.org/Person/Ivan#me> owl:sameAs <http://www.ivan-herman.net/foaf#me> .
<http://www.ivan-herman.net/foaf#me> a foaf:Person .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0267</title>
</head>
<body>
<div about="http://www.w3.org/Person/Ivan#me">
<p resource="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</p>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
ASK WHERE {
<http://www.w3.org/Person/Ivan#me> owl:sameAs <http://www.ivan-herman.net/foaf#me> .
<http://www.ivan-herman.net/foaf#me> a foaf:Person .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0267</title>
</head>
<body>
<div about="http://www.w3.org/Person/Ivan#me">
<p resource="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</p>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
ASK WHERE {
<http://www.w3.org/Person/Ivan#me> owl:sameAs <http://www.ivan-herman.net/foaf#me> .
<http://www.ivan-herman.net/foaf#me> a foaf:Person .
}
@property without @content or @datatype, typed object set by @src and @typeof
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0268</title>
</head>
<body>
<div about="http://www.ivan-herman.net/foaf#me">
<img src="http://www.ivan-herman.net/Images/me2003-small.png" typeof="foaf:Image" property="foaf:depiction" />
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
ASK WHERE {
<http://www.ivan-herman.net/foaf#me> foaf:depiction <http://www.ivan-herman.net/Images/me2003-small.png> .
<http://www.ivan-herman.net/Images/me2003-small.png> a foaf:Image .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0268</title>
</head>
<body>
<div about="http://www.ivan-herman.net/foaf#me">
<img src="http://www.ivan-herman.net/Images/me2003-small.png" typeof="foaf:Image" property="foaf:depiction" />
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
ASK WHERE {
<http://www.ivan-herman.net/foaf#me> foaf:depiction <http://www.ivan-herman.net/Images/me2003-small.png> .
<http://www.ivan-herman.net/Images/me2003-small.png> a foaf:Image .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0268</title>
</head>
<body>
<div about="http://www.ivan-herman.net/foaf#me">
<img src="http://www.ivan-herman.net/Images/me2003-small.png" typeof="foaf:Image" property="foaf:depiction" />
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
ASK WHERE {
<http://www.ivan-herman.net/foaf#me> foaf:depiction <http://www.ivan-herman.net/Images/me2003-small.png> .
<http://www.ivan-herman.net/Images/me2003-small.png> a foaf:Image .
}
@property appearing on the html element without @content or @datatype yields the base as the subject, also with @content
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" property="rdfs:comment" content="This is an RDFa test">
<head >
<title>Test 0269</title>
</head>
<body>
<p> </p>
</body>
</html>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0269.html> rdfs:comment "This is an RDFa test" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html property="rdfs:comment" content="This is an RDFa test">
<head >
<title>Test 0269</title>
</head>
<body>
<p> </p>
</body>
</html>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0269.html> rdfs:comment "This is an RDFa test" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" property="rdfs:comment" content="This is an RDFa test">
<head >
<title>Test 0269</title>
</head>
<body>
<p> </p>
</body>
</html>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0269.xhtml> rdfs:comment "This is an RDFa test" .
}
@property appearing on the head element gets the subject from parent, also with @content and explicit @about at the top
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" about="http://www.example.org/">
<head property="rdfs:comment" content="This is an RDFa test">
<title>Test 0269</title>
</head>
<body>
<p> </p>
</body>
</html>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
ASK WHERE {
<http://www.example.org/> rdfs:comment "This is an RDFa test" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html about="http://www.example.org/">
<head property="rdfs:comment" content="This is an RDFa test">
<title>Test 0269</title>
</head>
<body>
<p> </p>
</body>
</html>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
ASK WHERE {
<http://www.example.org/> rdfs:comment "This is an RDFa test" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" about="http://www.example.org/">
<head property="rdfs:comment" content="This is an RDFa test">
<title>Test 0269</title>
</head>
<body>
<p> </p>
</body>
</html>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
ASK WHERE {
<http://www.example.org/> rdfs:comment "This is an RDFa test" .
}
The @datetime attribute is used when generating output with valid xsd:date.
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0272</title>
</head>
<body>
<time property="rdf:value" datetime="2012-03-18Z">18 March 2012</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value "2012-03-18Z"^^xsd:date ] .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0272</title>
</head>
<body>
<time property="rdf:value" datetime="2012-03-18Z">18 March 2012</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value "2012-03-18Z"^^xsd:date ] .
}
The @datetime attribute is used when generating output with valid xsd:time.
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0273</title>
</head>
<body>
<time property="rdf:value" datetime="00:00:00Z">midnight</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value "00:00:00Z"^^xsd:time ] .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0273</title>
</head>
<body>
<time property="rdf:value" datetime="00:00:00Z">midnight</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value "00:00:00Z"^^xsd:time ] .
}
The @datetime attribute is used when generating output with valid xsd:dateTime.
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0274</title>
</head>
<body>
<time property="rdf:value" datetime="2012-03-18T00:00:00Z">18 March 2012 at midnight</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value "2012-03-18T00:00:00Z"^^xsd:dateTime ] .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0274</title>
</head>
<body>
<time property="rdf:value" datetime="2012-03-18T00:00:00Z">18 March 2012 at midnight</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value "2012-03-18T00:00:00Z"^^xsd:dateTime ] .
}
The time element value is used when generating output with valid xsd:date.
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0275</title>
</head>
<body>
<time property="rdf:value">2012-03-18Z</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value "2012-03-18Z"^^xsd:date ] .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0275</title>
</head>
<body>
<time property="rdf:value">2012-03-18Z</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value "2012-03-18Z"^^xsd:date ] .
}
The time element value is used when generating output with valid xsd:time.
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0275</title>
</head>
<body>
<time property="rdf:value">00:00:00Z</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value "00:00:00Z"^^xsd:time ] .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0275</title>
</head>
<body>
<time property="rdf:value">00:00:00Z</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value "00:00:00Z"^^xsd:time ] .
}
The time element value is used when generating output with valid xsd:dateTime.
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0277</title>
</head>
<body>
<time property="rdf:value">2012-03-18T00:00:00Z</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value "2012-03-18T00:00:00Z"^^xsd:dateTime ] .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0277</title>
</head>
<body>
<time property="rdf:value">2012-03-18T00:00:00Z</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value "2012-03-18T00:00:00Z"^^xsd:dateTime ] .
}
The @content attribute has a higher priority than @datetime.
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0278</title>
</head>
<body>
<p>The value of @content has a higher priority than @datetime</p>
<time property="rdf:value" datetime="2012-03-18" content="this should be the value">18 March 2012</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value "this should be the value" ] .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0278</title>
</head>
<body>
<p>The value of @content has a higher priority than @datetime</p>
<time property="rdf:value" datetime="2012-03-18" content="this should be the value">18 March 2012</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value "this should be the value" ] .
}
If @datatype is specified, it must override the automatic datatype.
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0279</title>
</head>
<body>
<time property="rdf:value" datetime="2012-03-18T00:00:00Z" datatype="xsd:date">18 March 2012 at midnight</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value "2012-03-18T00:00:00Z"^^xsd:date ] .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0279</title>
</head>
<body>
<time property="rdf:value" datetime="2012-03-18T00:00:00Z" datatype="xsd:date">18 March 2012 at midnight</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value "2012-03-18T00:00:00Z"^^xsd:date ] .
}
The @datetime attribute is used when generating output with valid xsd:duration.
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0280</title>
</head>
<body>
<time property="rdf:value" datetime="P2011Y06M28DT00H00M00S">2011 years 6 months 28 days</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value "P2011Y06M28DT00H00M00S"^^xsd:duration ] .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0280</title>
</head>
<body>
<time property="rdf:value" datetime="P2011Y06M28DT00H00M00S">2011 years 6 months 28 days</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value "P2011Y06M28DT00H00M00S"^^xsd:duration ] .
}
The @datetime attribute is used when generating output with valid xsd:gYear.
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0281</title>
</head>
<body>
<time property="rdf:value" datetime="2012">Two Thousand Twelve</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value "2012"^^xsd:gYear ] .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0281</title>
</head>
<body>
<time property="rdf:value" datetime="2012">Two Thousand Twelve</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value "2012"^^xsd:gYear ] .
}
The @datetime attribute is used when generating output with valid xsd:gYearMonth.
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0282</title>
</head>
<body>
<time property="rdf:value" datetime="2012-03">March, Two Thousand Twelve</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value "2012-03"^^xsd:gYearMonth ] .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0282</title>
</head>
<body>
<time property="rdf:value" datetime="2012-03">March, Two Thousand Twelve</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value "2012-03"^^xsd:gYearMonth ] .
}
If the lexical scope of @datetime does not exactly match a known datatype a plain literal is generated.
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0283</title>
</head>
<body>
<time property="rdf:value"> 2012-03-18Z</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value " 2012-03-18Z" ] .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0283</title>
</head>
<body>
<time property="rdf:value"> 2012-03-18Z</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value " 2012-03-18Z" ] .
}
A time element with an unmatched value still generates a typed literal without modification given a @datatype attribute.
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0284</title>
</head>
<body>
<time property="rdf:value" datatype="xsd:dateTime"> 2012-03-18Z</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value " 2012-03-18Z"^^xsd:dateTime ] .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0284</title>
</head>
<body>
<time property="rdf:value" datatype="xsd:dateTime"> 2012-03-18Z</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value " 2012-03-18Z"^^xsd:dateTime ] .
}
If no @datatype is specified and the value does not match a xsd:dateTime, xsd:date, or xsd:time pattern, a plain literal must be generated with the associated language of the node, if available.
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0285</title>
</head>
<body>
<time property="rdf:value" lang="en" datetime="D-Day">
Non matching lexical value with language.
</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
ASK WHERE {
[ rdf:value "D-Day"@en ] .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0285</title>
</head>
<body>
<time property="rdf:value" lang="en" datetime="D-Day">
Non matching lexical value with language.
</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
ASK WHERE {
[ rdf:value "D-Day"@en ] .
}
The @datetime attribute is used when generating output with valid xsd:dateTime and a Time Zone offset.
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0287</title>
</head>
<body>
<time property="rdf:value" datetime="2012-03-18T00:00:00-08:00">18 March 2012 at midnight in San Francisco</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value "2012-03-18T00:00:00-08:00"^^xsd:dateTime ] .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0287</title>
</head>
<body>
<time property="rdf:value" datetime="2012-03-18T00:00:00-08:00">18 March 2012 at midnight in San Francisco</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value "2012-03-18T00:00:00-08:00"^^xsd:dateTime ] .
}
When @property and @content are present but @about, @rel and @rev are not, @href is used as subject.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0289</title>
</head>
<body>
<h1>@href becomes subject when @property and @content are present</h1>
<a href="http://example.org/" property="rdf:value" content="value">ignored</a>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
ASK WHERE {
<http://example.org/> rdf:value "value" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0289</title>
</head>
<body>
<h1>@href becomes subject when @property and @content are present</h1>
<a href="http://example.org/" property="rdf:value" content="value">ignored</a>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
ASK WHERE {
<http://example.org/> rdf:value "value" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0289</title>
</head>
<body>
<h1>@href becomes subject when @property and @content are present</h1>
<a href="http://example.org/" property="rdf:value" content="value">ignored</a>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
ASK WHERE {
<http://example.org/> rdf:value "value" .
}
When @property and @datatype are present but @about, @rel and @rev are not, @href is used as subject and element content is used as an object literal.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0290</title>
</head>
<body>
<h1>@href becomes subject when @property and @datatype are present</h1>
<a href="http://example.org/" property="rdf:value" datatype="">value</a>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
ASK WHERE {
#<http://example.org/> rdf:value <http://example.org/> .
<http://example.org/> rdf:value "value" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0290</title>
</head>
<body>
<h1>@href becomes subject when @property and @datatype are present</h1>
<a href="http://example.org/" property="rdf:value" datatype="">value</a>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
ASK WHERE {
#<http://example.org/> rdf:value <http://example.org/> .
<http://example.org/> rdf:value "value" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0290</title>
</head>
<body>
<h1>@href becomes subject when @property and @datatype are present</h1>
<a href="http://example.org/" property="rdf:value" datatype="">value</a>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
ASK WHERE {
#<http://example.org/> rdf:value <http://example.org/> .
<http://example.org/> rdf:value "value" .
}
When @property, @datatype, @href and @about are present but @rel and @rev are not, @about is used as subject.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0291</title>
</head>
<body>
<h1>@href as subject overridden by @about</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value">ignored</a>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
ASK WHERE {
<http://example.net/> rdf:value "value" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0291</title>
</head>
<body>
<h1>@href as subject overridden by @about</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value">ignored</a>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
ASK WHERE {
<http://example.net/> rdf:value "value" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0291</title>
</head>
<body>
<h1>@href as subject overridden by @about</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value">ignored</a>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
ASK WHERE {
<http://example.net/> rdf:value "value" .
}
When @property, @datatype, @href and @about are present but @rel and @rev are not, @about is used as subject and is also applied to nested descriptions.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0292</title>
</head>
<body>
<h1>@about overriding @href as subject is used as parent resource</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value one">
<span property="rdf:value">value two</span>
</a>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
ASK WHERE {
<http://example.net/> rdf:value "value one", "value two" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0292</title>
</head>
<body>
<h1>@about overriding @href as subject is used as parent resource</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value one">
<span property="rdf:value">value two</span>
</a>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
ASK WHERE {
<http://example.net/> rdf:value "value one", "value two" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<head>
<title>Test 0292</title>
</head>
<body>
<h1>@about overriding @href as subject is used as parent resource</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value one">
<span property="rdf:value">value two</span>
</a>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
ASK WHERE {
<http://example.net/> rdf:value "value one", "value two" .
}
RDFa 1.1 CURIE allows the ':' to appear in the reference part of a CURIE.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0293</title>
</head>
<body>
<h1>Testing the ':' character usage in a CURIE</h1>
<div prefix="ex: http://www.example.org/">
<p about="http://www.example.org" property="ex:column:test">Test</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org> <http://www.example.org/column:test> "Test" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0293</title>
</head>
<body>
<h1>Testing the ':' character usage in a CURIE</h1>
<div prefix="ex: http://www.example.org/">
<p about="http://www.example.org" property="ex:column:test">Test</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org> <http://www.example.org/column:test> "Test" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0293</title>
</head>
<body>
<h1>Testing the ':' character usage in a CURIE</h1>
<div prefix="ex: http://www.example.org/">
<p about="http://www.example.org" property="ex:column:test">Test</p>
</div>
</body>
</html>
ASK WHERE {
<http://www.example.org> <http://www.example.org/column:test> "Test" .
}
Complex benchmark document.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:air="http://www.daml.org/2001/10/html/airport-ont#"
xmlns:bio="http://vocab.org/bio/0.1/"
xmlns:cal="http://www.w3.org/2002/12/cal/icaltzd#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:cert="http://www.w3.org/ns/auth/cert#"
xmlns:contact="http://www.w3.org/2000/10/swap/pim/contact#"
xmlns:dc="http://purl.org/dc/terms/"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:earl="http://www.w3.org/ns/earl#"
xmlns:example="http://example.org/"
xmlns:ex="http://example.org/"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:google="http://rdf.data-vocabulary.org/#"
xmlns:ical="http://www.w3.org/2002/12/cal/icaltzd#"
xmlns:openid="http://xmlns.openid.net/auth#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:rdfatest="http://rdfa.info/vocabs/rdfa-test#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:rel="http://vocab.org/relationship/"
xmlns:rsa="http://www.w3.org/ns/auth/rsa#"
xmlns:rss="http://web.resource.org/rss/1.0/"
xmlns:sioc="http://rdfs.org/sioc/ns#"
xmlns:v="http://www.w3.org/2006/vcard/ns#"
xmlns:wot="http://xmlns.com/wot/0.1/"
xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>RDFa 1.1 Benchmark File #1</title>
</head>
<body>
<p>This photo was taken by <span class="author" about="photo1.jpg" property="dc:creator">Mark Birbeck</span>.</p>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator" rev="foaf:img"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
<p>This photo was taken by
<a about="photo1.jpg" property="dc:title"
content="Portrait of Mark" rel="dc:creator"
rev="foaf:img" href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
<p>This document is licensed under a
<a about="" rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons
</a>.
</p>
<p></p>
<p></p>
<p></p>
<p></p>
<p>
<span about="http://example.org/foo"
property="ex:bar" content="10" datatype="xsd:integer">ten</span>
</p>
<p></p>
<p>
<span about="[_:a]" property="foaf:name">Manu Sporny</span>
<span about="[_:a]" rel="foaf:knows"
resource="[_:b]">knows</span>
<span about="[_:b]" property="foaf:name">Ralph Swick</span>.
</p>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
<div about="mailto:manu.sporny@digitalbazaar.com"
rel="foaf:knows" href="mailto:michael.hausenblas@joanneum.at"></div>
<div about="photo1.jpg">
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
<div>
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
<div id="photo1">
This photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</div>
<p>
This paper was written by
<span rel="dc:creator" resource="#me">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck" />
</p>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck">Mark B.
</span>
</p>
<p>
<span about="http://example.org/foo"
property="dc:creator" datatype="xsd:string"><b>M</b>ark <b>B</b>irbeck</span>.
</p>
<p>This document is licensed under a
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons License
</a>.
</p>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<span rel="dc:identifier" resource="urn:ISBN:0752820907">0752820907</span>.
</p>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<a rel="dc:identifier" resource="urn:ISBN:0752820907"
href="http://www.amazon.com/Weaving-Web-Tim-Berners-Lee/dp/0752820907">0752820907</a>.
</p>
<p>
This paper was written by
<span rel="dc:creator">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
<div about="http://sw-app.org/mic.xhtml#i" rel="foaf:img">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
<div about="http://sw-app.org/mic.xhtml#i" rev="foaf:depicts">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img src="http://sw-app.org/img/mic_2007_01.jpg"
rev="alternate"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
<div>
<img rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div rel="foaf:maker" typeof="foaf:Document">
<p property="foaf:name">John Doe</p>
</div>
<div rel="foaf:maker" typeof="foaf:Document" resource="http://www.example.org/#me">
<p property="foaf:name">John Doe</p>
</div>
<div about="http://www.example.org/#me" rel="foaf:knows" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<div about="http://www.example.org/#me" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<div typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<p about="" typeof="foaf:Document" property="foaf:topic">John Doe</p>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
John Doe
</p>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
<span property="foaf:name">John Doe</span>
</p>
<p>
This document was authored and published by
<span about="" property="dc:creator dc:publisher">Fabien Gandon</span>.
</p>
<p>
This document was authored and published by
<a about="" rel="dc:creator dc:publisher" href="http://www-sop.inria.fr/acacia/fabien/">Fabien Gandon</a>.
</p>
<div about="http://www.example.org/#ben" typeof="foaf:Person" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
</div>
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
<p about="http://www.example.org/#ivan" property="foaf:name">Ivan Herman</p>
</div>
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
<p typeof="foaf:Person" property="foaf:name">Ivan Herman</p>
</div>
<p>This document was authored and published by:</p>
<ul rel="dc:creator dc:publisher">
<li about="http://www.example.org/#manu" property="foaf:name">Manu Sporny</li>
<li about="http://www.example.org/#fabien" property="foaf:name">Fabien Gandon</li>
</ul>
<div about="http://www.example.org/#matsumoto-kimiko"
typeof="foaf:Person">
<p property="foaf:name">松本 后子</p>
</div>
<p>This is the first chapter in a series of chapters.</p>
<p>This is unit test #62. The next unit test is #63.</p>
<p>This is the 63<sup>rd</sup> test. The next test is #64.</p>
<p about="[_:michael]">Michael knows
<a rel="foaf:knows" href="http://digitalbazaar.com/people/manu">Manu</a>.
</p>
<div about="[_:manu]">
Manu Sporny can be reached via
<a rel="foaf:mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="foaf:knows" resource="[_:michael]">He knows Michael.</span>
</div>
<div about="[_:michael]">
Michael can be reached via
<a rel="foaf:mbox" href="mailto:michael.hausenblas@joanneum.at">email</a>.
</div>
<p>This is test #66.</p>
<p>This is test #67.</p>
<p about="0067.html">
The previous test was
<span property="dc:title">Test 0067</span>.
</p>
<p>The next test will be
<a about="" rel="xhv:next" href="0070.html">Test 0070</a>.
</p>
<p>The previous test was
<span about="" rel="xhv:prev" resource="0069.html">Test 0069</span>.
</p>
<p>This page is under a Creative Commons
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nd/3.0/">
Attribution-No Derivatives 3.0 license</a>.
</p>
<p about="faq">
Learn more by reading the example.org
<span property="dc:title">Example FAQ</span>.
</p>
<p>
This article was written by
<span rel="dc:creator" resource="jane">Jane</span>.
</p>
<p>
This article was written by
<a rel="dc:creator" href="jane">Jane</a>.
</p>
<p>
This page is under a Creative Commons
<a rel="license" href="http://creativecommons.org/licenses/by-nd/3.0/">Attribution-No Derivatives 3.0 license</a>.
</p>
<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="cite" href="http://example.org/cite">cite</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="last" href="http://example.org/last">last</a>
<a rel="license" href="http://example.org/license">license</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="stylesheet" href="http://example.org/stylesheet">stylesheet</a>
<a rel="up" href="http://example.org/up">up</a>
</p>
<p>
<span about="http://example.org/alternate" rev="alternate"
href="0077.html">alternate</span>
<span about="http://example.org/appendix" rev="appendix"
href="0077.html">appendix</span>
<span about="http://example.org/bookmark" rev="bookmark"
href="0077.html">bookmark</span>
<span about="http://example.org/cite" rev="cite"
href="0077.html">cite</span>
<span about="http://example.org/chapter" rev="chapter"
href="0077.html">chapter</span>
<span about="http://example.org/contents" rev="contents"
href="0077.html">contents</span>
<span about="http://example.org/copyright" rev="copyright"
href="0077.html">copyright</span>
<span about="http://example.org/glossary" rev="glossary"
href="0077.html">glossary</span>
<span about="http://example.org/help" rev="help"
href="0077.html">help</span>
<span about="http://example.org/icon" rev="icon"
href="0077.html">icon</span>
<span about="http://example.org/index" rev="index"
href="0077.html">index</span>
<span about="http://example.org/first" rev="first"
href="0077.html">first</span>
<span about="http://example.org/last" rev="last"
href="0077.html">last</span>
<span about="http://example.org/license" rev="license"
href="0077.html">license</span>
<span about="http://example.org/meta" rev="meta"
href="0077.html">meta</span>
<span about="http://example.org/next" rev="next"
href="0077.html">next</span>
<span about="http://example.org/p3pv1" rev="p3pv1"
href="0077.html">p3pv1</span>
<span about="http://example.org/prev" rev="prev"
href="0077.html">prev</span>
<span about="http://example.org/role" rev="role"
href="0077.html">role</span>
<span about="http://example.org/section" rev="section"
href="0077.html">section</span>
<span about="http://example.org/subsection" rev="subsection"
href="0077.html">subsection</span>
<span about="http://example.org/start" rev="start"
href="0077.html">start</span>
<span about="http://example.org/stylesheet" rev="stylesheet"
href="0077.html">stylesheet</span>
<span about="http://example.org/up" rev="up"
href="0077.html">up</span>
</p>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
</div>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="http://danbri.org/foaf.rdf#danbri" resource="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
<div about ="http://www.example.org/#somebody" rev="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
</div>
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
</div>
<div about="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>
</div>
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<div>
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>
</div>
</div>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<div rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</div>
<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=":cite" href="http://example.org/cite">cite</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=":first" href="http://example.org/first">first</a>
<a rel=":last" href="http://example.org/last">last</a>
<a rel=":license" href="http://example.org/license">license</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=":stylesheet" href="http://example.org/stylesheet">stylesheet</a>
<a rel=":up" href="http://example.org/up">up</a>
</p>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="[_:]" property="foaf:name">Dan Brickley</p>
<p about="[_:]" typeof="foaf:Person">Dan Brickley again:-)</p>
</div>
<div>
<img src="http://example.org/example.png" typeof="foaf:Image" alt="example image" />
</div>
<div>
<img src="http://example.org/example.png"
rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/2.0/"
alt="example image" />
</div>
<p about="[_:human]">
A human is
<span property=":definition">a bi-pedal primate</span>.
They are quite possibly one of the most
<span property=":note">confused animal</span>s residing in the
<span property=":foo">Milky Way</span>.
</p>
<div about="">
Author: <span property="dc:creator">Albert Einstein</span>
<h2 property="dc:title" datatype="ex:XMLLiteral">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
<p about="http://www.cwi.nl/~steven/" property="example:likes">
We put thirty spokes together and call it a wheel;
But it is on the space where there is nothing that the usefulness of the wheel depends.
We turn clay to make a vessel;
But it is on the space where there is nothing that the usefulness of the vessel depends.
We pierce doors and windows to make a house;
And it is on these spaces where there is nothing that the usefulness of the house depends.
Therefore just as we take advantage of what is, we should recognize the usefulness of what is not.
Lao Tzu: Tao Te Ching</p>
<p>
The word "interfenestration" has
<span about="#interfenestration" rel="example:size">
<span property="rdf:value">17</span>
<span property="example:unit">character</span>s.
</span>
</p>
<div about="" rel="dc:creator">
<a rel="" href="manu.html">Manu</a> created this page.
</div>
<div rel="next"></div>
<p about="http://example.org/node" property="ex:property"
datatype="" xml:lang="el">ελληνικό
άσπρο διάστημα
</p>
<!-- This a NOT a valid XHTML document (due to @xml:base) -->
<div xml:base="http://example.org/invalid/">
<p about="">This is <span property="dc:title">Test 0109</span>.</p>
</div>
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
<div rel="xhv:next">
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
</div>
<p>
<span about="http://example.org/node" property="ex:property"
datatype="">not an XML Literal,
whitespace preserved
</span>
</p>
<span about="#a" property="dc:title"></span>
<span about="#b" property="dc:title" />
<div>
<a rel="xhv:index" href="../../.././#">Test Suite</a>
<a rel="xhv:next" href="0115.html">Test Case 0115</a>
<a rel="xhv:up" href="./">Test Case 0114</a>
<a rel="cc:attributionURL" href="../../../../">RDFa Website</a>
<a rel="rdfatest:cornerCase1" href=".">Corner Case #1</a>
<a rel="rdfatest:cornerCase2" href="http://example.org/foo/..">Corner Case #2</a>
<a rel="rdfatest:cornerCase3" href="...">Corner Case #3</a>
<a rel="rdfatest:cornerCase4" href="?foo=bar../baz">Corner Case #4</a>
<a rel="rdfatest:cornerCase5" href="../..../../../.../.htaccess">Corner Case #5</a>
</div>
<p>Description: XML entities in the RDFa content</p>
<p>
<span property="ex:entity1">></span>
<span property="ex:entity2">Ben & Co.</span>
<span property="ex:entity3">@</span>
<span property="ex:entity4">@</span>
</p>
<p>
<span property="dc:contributor">Mark Birbeck</span>
added this triple test.
</p>
<p>
Check to see if parsers get confused when "" is
interpreted as NULL in some chaining cases.
<a href="http://example.org/ben.html"><span
about="" property="dc:creator">Ben</span></a>
</p>
<div>
<p about="[example:]">
The
<span property="dc:title">Example Website</span>
is used in many W3C tutorials.
</p>
</div>
<p about="[:]">
The
<span property="dc:title">The XHTML Vocabulary Document</span>
is the default prefix for XHTML+RDFa 1.0.
</p>
<div>
<p about="http://example.org/">
<span about="[]" property="dc:title">Test Case 0121</span>
checks to make sure RDFa processors resolve the empty CURIE correctly.
<p resource="[]">
<span property="dc:contributor">Shane McCarron</span>
contributed to this test.
</p>
</p>
</div>
<p about="http://example.org/section1.html">
This section is contained below <span rel="up" resource="[]">the main site</span>.
</p>
<div about="http://www.example.org/#article" typeof="foaf:Document sioc:Post">
<h1 property="dct:title">My article</h1>
</div>
<p>Blank Nodes are not allowed to be predicate identifiers in RDF:</p>
<p property="_:invalid">Test</p>
<p xmlns:xmlzzz="http://example.org/" property="xmlzzz:test">Test</p>
<p>
This test ensures that single-character prefixes are allowed.
My name is:
<span about="http://example.org/jd" property="v:fn">John Doe</span>
</p>
<p about="_:gregg">My name is
<em property="http://xmlns.com/foaf/0.1/name">Gregg Kellogg</em>.
</p>
<div about="_:manu">
Manu can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">He knows Gregg.</span>
<span rev="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">Who knows Manu.</span>
</div>
<div about="_:gregg">
Gregg can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:gregg@kellogg-assoc.com">email</a>.
</div>
<div about ="#me" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<div about ="#this" prefix="foaf: http://xmlns.com/foaf/0.1/ dc: http://purl.org/dc/terms/" typeof="dc:Agent">
<p property="foaf:name">A particular agent</p>
</div>
<!-- prefix has a higher priority than xmlns -->
<div about ="#me" xmlns:foaf="http://www.example.com/wrong/foaf/uri" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<div about ="#me" prefix=": http://xmlns.com/foaf/0.1/" >
<p property=":name">Ivan Herman</p>
</div>
<div about ="http://www.example.org/software">
<p rel=":license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" xmlns:foaf="http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
<div vocab="http://example.org/wrong/foaf/uri/">
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
</div>
<div vocab="http://xmlns.com/foaf/0.1/">
<div about ="#me">
<p property="name">Ivan Herman</p>
</div>
</div>
<div about ="http://www.example.org/software" vocab="http://www.example.org/vocab#">
<p rel="license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
<div about ="http://www.example.org/software">
<p rel="liCeNse" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is an XMLLiteral</p>
<p property="ex:plainlit">This is a <em>plain</em> literal</p>
</div>
<p about="" typeof="class/Person" property="pred/name">Gregg Kellogg</p>
<p property="dc:language" datatype="pred/lang">Ruby</p>
<p rel="pred/rel" resource="http://kellogg-assoc.com/">Kellogg Associates</p>
<p rev="pred/rev" resource="http://github.org/gkellogg/rdf_context">Ruby Gem</p>
<div id="mark" about="#mark" typeof="foaf:Person">
<h2 property="foaf:name" datatype="rdf:XMLLiteral"><span
property="foaf:firstName">Mark</span> <span
property="foaf:surname">Birbeck</span></h2>
</div>
<p about ="xsd:maxExclusive" rel="rdf:type" resource="owl:DatatypeProperty">
An OWL Axiom: "xsd:maxExclusive" is a Datatype Property in OWL.
</p>
<p about="#event1" typeof="cal:Vevent">
<b property="cal:summary">Weekend off in Iona</b>:
<span property="cal:dtstart" content="2006-10-21" datatype="xsd:date">Oct 21st</span>
to <span property="cal:dtend" content="2006-10-23" datatype="xsd:date">Oct 23rd</span>.
See <a rel="cal:url" href="http://freetime.example.org/">FreeTime.Example.org</a> for
info on <span property="cal:location">Iona, UK</span>.
</p>
<!-- @prefix should be ignored in the RDFa 1.0 case -->
<div about ="#me" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<!-- prefix has a higher priority than xmlns, but should be ignored because version is explicitly set to 1.0 -->
<div about ="#me" xmlns:foaf="http://www.example.com/wrong/foaf/uri/" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<!-- The version statement should be ignored with version set to 1.0 -->
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<!-- In RDFa 1.0, if a literal contains XML elements, and no explicit datatype is set, the result is XMLLiteral -->
<div about="http://www.example.org/">
<h2 property="dc:title">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
<!-- In RDFa 1.1, by default a plain literal is generated even if it contains XML elements -->
<div about="http://www.example.org/">
<h2 property="dc:title">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
<p>This document has a title.</p>
<!-- Tests whether the Unicode (UTF-8 encoded) characters are properly handled even with a large set of properties
in the html element, ie, when the content sniffing to find out the character encoding may not work -->
<p about="http://www.ivan-herman.net/foaf#me" property="foaf:name">Iván</p>
<!-- Tests whether the Unicode (UTF-8 encoded) characters are properly handled even with a large set of properties
in the html element, ie, when the content sniffing to find out the character encoding may not work -->
<p about="http://www.ivan-herman.net/foaf#me" property="foaf:name">Iván</p>
<div about="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Gregg Kellogg</p>
</div>
<div about ="">
<p rel="rdf:value" inlist=""/>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
</div>
<div about="">
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
<p property="rdf:value">Baz</p>
</div>
<div about="">
<ol rel="rdf:value" inlist="">
<li><a href="foo">Foo</a></li>
<li><a href="bar">Bar</a></li>
</ol>
</div>
<div about="foo">
<p property="rdf:value" inlist="">Foo</p>
</div>
<div about="foo">
<p property="rdf:value" inlist="">Bar</p>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="rdf:inlist" resource="res">
<p property="rdf:value" inlist="">Bar</p>
</span>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="rdf:inlist">
<p about="res" property="rdf:value" inlist="">Bar</p>
</span>
</div>
<div>
<img src="http://sw-app.org/img/mic_2007_01.jpg"
rev="xhv:alternate"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img
src="http://example.org/example.png"
rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/2.0/"
alt="example image" />
</div>
<div about="http://creativecommons.org/licenses/by-nc-sa/2.0/" rev="license">
<img src="http://example.org/example.png" alt="example image" />
</div>
<div rel="foaf:maker" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<div rel="foaf:maker" typeof="foaf:Person" resource="http://www.example.org/#me">
<p property="foaf:name">John Doe</p>
</div>
<p>
<a rel="describedby" href="http://example.org/describedby">describedby</a>
<a rel="license" href="http://example.org/license">license</a>
<a rel="role" href="http://example.org/role">role</a>
</p>
<p>
The <span property="dc:title">rdfagraph</span> should not generate triples when
looking only at the processor graph.
</p>
<p></p>
<p></p>
<p about="http://example.org/node" property="ex:property"
datatype="" lang="el">ελληνικό
άσπρο διάστημα
</p>
<p></p>
<span about="#a" property="dc:title"></span>
<p>Ensure that the "_" prefix is ignored.</p>
<p xmlns:_="http://example.org/"
prefix="_: http://example.org/"
xmlns:earl="http://www.w3.org/ns/earl#"
rel="earl:testcase" resource="_:test">Test</p>
<div>
Vocabulary Prefixes
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="owl:">OWL</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="skos:">SKOS</span>
<span property="skosxl:">SKOS-XL</span>
<span property="wdr:">WDR</span>
<span property="void:">VOID</span>
<span property="wdrs:">WDRS</span>
<span property="xhv:">XHV</span>
<span property="xml:">XML</span>
<span property="xsd:">XSD</span>
</div>
<div>
Widely Used prefixes
<span property="cc:">CC</span>
<span property="ctag:">CTAG</span>
<span property="dc:">DC</span>
<span property="dcterms:">DCTERMS</span>
<span property="foaf:">FOAF</span>
<span property="gr:">GR</span>
<span property="ical:">ICAL</span>
<span property="og:">OG</span>
<span property="rev:">REV</span>
<span property="sioc:">SIOC</span>
<span property="v:">V</span>
<span property="vcard:">VCARD</span>
<span property="schema:">Schema</span>
</div>
<div>
Vocabulary Terms
<span property="describedby">DescribedBy</span>
<span property="license">License</span>
<span property="role">Role</span>
</div>
<div>
Vocabulary Terms
<span property="alternate">alternate</span>
<span property="appendix">appendix</span>
<span property="cite">cite</span>
<span property="bookmark">bookmark</span>
<span property="contents">contents</span>
<span property="chapter">chapter</span>
<span property="copyright">copyright</span>
<span property="first">first</span>
<span property="glossary">glossary</span>
<span property="help">help</span>
<span property="icon">icon</span>
<span property="index">index</span>
<span property="last">last</span>
<span property="license">license</span>
<span property="meta">meta</span>
<span property="next">next</span>
<span property="prev">prev</span>
<span property="previous">previous</span>
<span property="section">section</span>
<span property="start">start</span>
<span property="stylesheet">stylesheet</span>
<span property="subsection">subsection</span>
<span property="top">top</span>
<span property="up">up</span>
<span property="p3pv1">p3pv1</span>
</div>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is
an XMLLiteral</p>
</div>
<p>This photo was taken by <span class="author" about="photo1.jpg" property=" dc:creator
">Mark Birbeck</span>.</p>
<p> </p>
<p> </p>
<p> </p>
<div about="http://www.w3.org/Person/Ivan#me">
<a href="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</a>
</div>
<div about="http://www.w3.org/Person/Ivan#me">
<p resource="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</p>
</div>
<div about="http://www.ivan-herman.net/foaf#me">
<img src="http://www.ivan-herman.net/Images/me2003-small.png" typeof="foaf:Image" property="foaf:depiction" />
</div>
<p> </p>
<p> </p>
<p> </p>
<time property="rdf:value" datetime="2012-03-18Z">18 March 2012</time>
<time property="rdf:value" datetime="00:00:00Z">midnight</time>
<time property="rdf:value" datetime="2012-03-18T00:00:00Z">18 March 2012 at midnight</time>
<time property="rdf:value">2012-03-18Z</time>
<time property="rdf:value">00:00:00Z</time>
<time property="rdf:value">2012-03-18T00:00:00Z</time>
<time property="rdf:value" datetime="2012-03-18" content="not this">18 March 2012</time>
<time property="rdf:value" datetime="2012-03-18T00:00:00Z" datatype="xsd:date">18 March 2012 at midnight</time>
<time property="rdf:value" datetime="P2011Y06M28DT00H00M00S">2011 years 6 months 28 days</time>
<time property="rdf:value" datetime="2012">Two Thousand Twelve</time>
<time property="rdf:value" datetime="2012-03">March, Two Thousand Twelve</time>
<time property="rdf:value"> 2012-03-18Z</time>
<time property="rdf:value" datatype="xsd:dateTime"> 2012-03-18Z</time>
<time property="rdf:value" lang="en" datetime="D-Day">
Non matching lexical value with language.
</time>
<data property="rdf:value" lang="lat" value="veni, vidi, vici" content="I came, I saw, I conquered">
@value overrides @content in the 'data' element.
</data>
<time property="rdf:value" datetime="2012-03-18T00:00:00-08:00">18 March 2012 at midnight in San Francisco</time>
<object property="rdf:value" data="http://example.com/"></object>
<h1>@href becomes subject when @property and @content are present</h1>
<a href="http://example.org/" property="rdf:value" content="value">ignored</a>
<h1>@href becomes subject when @property and @datatype are present</h1>
<a href="http://example.org/" property="rdf:value" datatype="">value</a>
<h1>@href as subject overridden by @about</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value">ignored</a>
<h1>@about overriding @href as subject is used as parent resource</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value one">
<span property="rdf:value">value two</span>
</a>
<h1>Testing the ':' character usage in a CURIE</h1>
<div prefix="ex: http://www.example.org/">
<p about="http://www.example.org" property="ex:column:test">Test</p>
</div>
<p>None of these triples should be generated in RDFa 1.0.</p>
<div>
Vocabulary Prefixes
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="owl:">OWL</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="skos:">SKOS</span>
<span property="skosxl:">SKOS-XL</span>
<span property="wdr:">WDR</span>
<span property="void:">VOID</span>
<span property="wdrs:">WDRS</span>
<span property="xhv:">XHV</span>
<span property="xml:">XML</span>
<span property="xsd:">XSD</span>
</div>
<div>
Widely Used prefixes
<span property="cc:">CC</span>
<span property="ctag:">CTAG</span>
<span property="dc:">DC</span>
<span property="dcterms:">DCTERMS</span>
<span property="foaf:">FOAF</span>
<span property="gr:">GR</span>
<span property="ical:">ICAL</span>
<span property="og:">OG</span>
<span property="rev:">REV</span>
<span property="sioc:">SIOC</span>
<span property="v:">V</span>
<span property="vcard:">VCARD</span>
<span property="schema:">Schema</span>
</div>
<div>
Vocabulary Terms
<span property="describedby">DescribedBy</span>
</div>
</body>
</html>
# Just test to see that some triples are generated
ASK WHERE {?s ?p ?o}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:air="http://www.daml.org/2001/10/html/airport-ont#"
xmlns:bio="http://vocab.org/bio/0.1/"
xmlns:cal="http://www.w3.org/2002/12/cal/icaltzd#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:cert="http://www.w3.org/ns/auth/cert#"
xmlns:contact="http://www.w3.org/2000/10/swap/pim/contact#"
xmlns:dc="http://purl.org/dc/terms/"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:earl="http://www.w3.org/ns/earl#"
xmlns:example="http://example.org/"
xmlns:ex="http://example.org/"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:google="http://rdf.data-vocabulary.org/#"
xmlns:ical="http://www.w3.org/2002/12/cal/icaltzd#"
xmlns:openid="http://xmlns.openid.net/auth#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:rdfatest="http://rdfa.info/vocabs/rdfa-test#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:rel="http://vocab.org/relationship/"
xmlns:rsa="http://www.w3.org/ns/auth/rsa#"
xmlns:rss="http://web.resource.org/rss/1.0/"
xmlns:sioc="http://rdfs.org/sioc/ns#"
xmlns:v="http://www.w3.org/2006/vcard/ns#"
xmlns:wot="http://xmlns.com/wot/0.1/"
xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>RDFa 1.1 Benchmark File #1</title>
</head>
<body>
<p>This photo was taken by <span class="author" about="photo1.jpg" property="dc:creator">Mark Birbeck</span>.</p>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator" rev="foaf:img"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
<p>This photo was taken by
<a about="photo1.jpg" property="dc:title"
content="Portrait of Mark" rel="dc:creator"
rev="foaf:img" href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
<p>This document is licensed under a
<a about="" rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons
</a>.
</p>
<p></p>
<p></p>
<p></p>
<p></p>
<p>
<span about="http://example.org/foo"
property="ex:bar" content="10" datatype="xsd:integer">ten</span>
</p>
<p></p>
<p>
<span about="[_:a]" property="foaf:name">Manu Sporny</span>
<span about="[_:a]" rel="foaf:knows"
resource="[_:b]">knows</span>
<span about="[_:b]" property="foaf:name">Ralph Swick</span>.
</p>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
<div about="mailto:manu.sporny@digitalbazaar.com"
rel="foaf:knows" href="mailto:michael.hausenblas@joanneum.at"></div>
<div about="photo1.jpg">
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
<div>
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
<div id="photo1">
This photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</div>
<p>
This paper was written by
<span rel="dc:creator" resource="#me">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck" />
</p>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck">Mark B.
</span>
</p>
<p>
<span about="http://example.org/foo"
property="dc:creator" datatype="xsd:string"><b>M</b>ark <b>B</b>irbeck</span>.
</p>
<p>This document is licensed under a
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons License
</a>.
</p>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<span rel="dc:identifier" resource="urn:ISBN:0752820907">0752820907</span>.
</p>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<a rel="dc:identifier" resource="urn:ISBN:0752820907"
href="http://www.amazon.com/Weaving-Web-Tim-Berners-Lee/dp/0752820907">0752820907</a>.
</p>
<p>
This paper was written by
<span rel="dc:creator">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
<div about="http://sw-app.org/mic.xhtml#i" rel="foaf:img">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
<div about="http://sw-app.org/mic.xhtml#i" rev="foaf:depicts">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img src="http://sw-app.org/img/mic_2007_01.jpg"
rev="alternate"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
<div>
<img rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div rel="foaf:maker" typeof="foaf:Document">
<p property="foaf:name">John Doe</p>
</div>
<div rel="foaf:maker" typeof="foaf:Document" resource="http://www.example.org/#me">
<p property="foaf:name">John Doe</p>
</div>
<div about="http://www.example.org/#me" rel="foaf:knows" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<div about="http://www.example.org/#me" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<div typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<p about="" typeof="foaf:Document" property="foaf:topic">John Doe</p>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
John Doe
</p>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
<span property="foaf:name">John Doe</span>
</p>
<p>
This document was authored and published by
<span about="" property="dc:creator dc:publisher">Fabien Gandon</span>.
</p>
<p>
This document was authored and published by
<a about="" rel="dc:creator dc:publisher" href="http://www-sop.inria.fr/acacia/fabien/">Fabien Gandon</a>.
</p>
<div about="http://www.example.org/#ben" typeof="foaf:Person" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
</div>
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
<p about="http://www.example.org/#ivan" property="foaf:name">Ivan Herman</p>
</div>
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
<p typeof="foaf:Person" property="foaf:name">Ivan Herman</p>
</div>
<p>This document was authored and published by:</p>
<ul rel="dc:creator dc:publisher">
<li about="http://www.example.org/#manu" property="foaf:name">Manu Sporny</li>
<li about="http://www.example.org/#fabien" property="foaf:name">Fabien Gandon</li>
</ul>
<div about="http://www.example.org/#matsumoto-kimiko"
typeof="foaf:Person">
<p property="foaf:name">松本 后子</p>
</div>
<p>This is the first chapter in a series of chapters.</p>
<p>This is unit test #62. The next unit test is #63.</p>
<p>This is the 63<sup>rd</sup> test. The next test is #64.</p>
<p about="[_:michael]">Michael knows
<a rel="foaf:knows" href="http://digitalbazaar.com/people/manu">Manu</a>.
</p>
<div about="[_:manu]">
Manu Sporny can be reached via
<a rel="foaf:mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="foaf:knows" resource="[_:michael]">He knows Michael.</span>
</div>
<div about="[_:michael]">
Michael can be reached via
<a rel="foaf:mbox" href="mailto:michael.hausenblas@joanneum.at">email</a>.
</div>
<p>This is test #66.</p>
<p>This is test #67.</p>
<p about="0067.html">
The previous test was
<span property="dc:title">Test 0067</span>.
</p>
<p>The next test will be
<a about="" rel="xhv:next" href="0070.html">Test 0070</a>.
</p>
<p>The previous test was
<span about="" rel="xhv:prev" resource="0069.html">Test 0069</span>.
</p>
<p>This page is under a Creative Commons
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nd/3.0/">
Attribution-No Derivatives 3.0 license</a>.
</p>
<p about="faq">
Learn more by reading the example.org
<span property="dc:title">Example FAQ</span>.
</p>
<p>
This article was written by
<span rel="dc:creator" resource="jane">Jane</span>.
</p>
<p>
This article was written by
<a rel="dc:creator" href="jane">Jane</a>.
</p>
<p>
This page is under a Creative Commons
<a rel="license" href="http://creativecommons.org/licenses/by-nd/3.0/">Attribution-No Derivatives 3.0 license</a>.
</p>
<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="cite" href="http://example.org/cite">cite</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="last" href="http://example.org/last">last</a>
<a rel="license" href="http://example.org/license">license</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="stylesheet" href="http://example.org/stylesheet">stylesheet</a>
<a rel="up" href="http://example.org/up">up</a>
</p>
<p>
<span about="http://example.org/alternate" rev="alternate"
href="0077.html">alternate</span>
<span about="http://example.org/appendix" rev="appendix"
href="0077.html">appendix</span>
<span about="http://example.org/bookmark" rev="bookmark"
href="0077.html">bookmark</span>
<span about="http://example.org/cite" rev="cite"
href="0077.html">cite</span>
<span about="http://example.org/chapter" rev="chapter"
href="0077.html">chapter</span>
<span about="http://example.org/contents" rev="contents"
href="0077.html">contents</span>
<span about="http://example.org/copyright" rev="copyright"
href="0077.html">copyright</span>
<span about="http://example.org/glossary" rev="glossary"
href="0077.html">glossary</span>
<span about="http://example.org/help" rev="help"
href="0077.html">help</span>
<span about="http://example.org/icon" rev="icon"
href="0077.html">icon</span>
<span about="http://example.org/index" rev="index"
href="0077.html">index</span>
<span about="http://example.org/first" rev="first"
href="0077.html">first</span>
<span about="http://example.org/last" rev="last"
href="0077.html">last</span>
<span about="http://example.org/license" rev="license"
href="0077.html">license</span>
<span about="http://example.org/meta" rev="meta"
href="0077.html">meta</span>
<span about="http://example.org/next" rev="next"
href="0077.html">next</span>
<span about="http://example.org/p3pv1" rev="p3pv1"
href="0077.html">p3pv1</span>
<span about="http://example.org/prev" rev="prev"
href="0077.html">prev</span>
<span about="http://example.org/role" rev="role"
href="0077.html">role</span>
<span about="http://example.org/section" rev="section"
href="0077.html">section</span>
<span about="http://example.org/subsection" rev="subsection"
href="0077.html">subsection</span>
<span about="http://example.org/start" rev="start"
href="0077.html">start</span>
<span about="http://example.org/stylesheet" rev="stylesheet"
href="0077.html">stylesheet</span>
<span about="http://example.org/up" rev="up"
href="0077.html">up</span>
</p>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
</div>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="http://danbri.org/foaf.rdf#danbri" resource="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
<div about ="http://www.example.org/#somebody" rev="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
</div>
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
</div>
<div about="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>
</div>
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<div>
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>
</div>
</div>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<div rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</div>
<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=":cite" href="http://example.org/cite">cite</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=":first" href="http://example.org/first">first</a>
<a rel=":last" href="http://example.org/last">last</a>
<a rel=":license" href="http://example.org/license">license</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=":stylesheet" href="http://example.org/stylesheet">stylesheet</a>
<a rel=":up" href="http://example.org/up">up</a>
</p>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="[_:]" property="foaf:name">Dan Brickley</p>
<p about="[_:]" typeof="foaf:Person">Dan Brickley again:-)</p>
</div>
<div>
<img src="http://example.org/example.png" typeof="foaf:Image" alt="example image" />
</div>
<div>
<img src="http://example.org/example.png"
rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/2.0/"
alt="example image" />
</div>
<p about="[_:human]">
A human is
<span property=":definition">a bi-pedal primate</span>.
They are quite possibly one of the most
<span property=":note">confused animal</span>s residing in the
<span property=":foo">Milky Way</span>.
</p>
<div about="">
Author: <span property="dc:creator">Albert Einstein</span>
<h2 property="dc:title" datatype="ex:XMLLiteral">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
<p about="http://www.cwi.nl/~steven/" property="example:likes">
We put thirty spokes together and call it a wheel;
But it is on the space where there is nothing that the usefulness of the wheel depends.
We turn clay to make a vessel;
But it is on the space where there is nothing that the usefulness of the vessel depends.
We pierce doors and windows to make a house;
And it is on these spaces where there is nothing that the usefulness of the house depends.
Therefore just as we take advantage of what is, we should recognize the usefulness of what is not.
Lao Tzu: Tao Te Ching</p>
<p>
The word "interfenestration" has
<span about="#interfenestration" rel="example:size">
<span property="rdf:value">17</span>
<span property="example:unit">character</span>s.
</span>
</p>
<div about="" rel="dc:creator">
<a rel="" href="manu.html">Manu</a> created this page.
</div>
<div rel="next"></div>
<p about="http://example.org/node" property="ex:property"
datatype="" xml:lang="el">ελληνικό
άσπρο διάστημα
</p>
<!-- This a NOT a valid XHTML document (due to @xml:base) -->
<div xml:base="http://example.org/invalid/">
<p about="">This is <span property="dc:title">Test 0109</span>.</p>
</div>
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
<div rel="xhv:next">
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
</div>
<p>
<span about="http://example.org/node" property="ex:property"
datatype="">not an XML Literal,
whitespace preserved
</span>
</p>
<span about="#a" property="dc:title"></span>
<span about="#b" property="dc:title" />
<div>
<a rel="xhv:index" href="../../.././#">Test Suite</a>
<a rel="xhv:next" href="0115.html">Test Case 0115</a>
<a rel="xhv:up" href="./">Test Case 0114</a>
<a rel="cc:attributionURL" href="../../../../">RDFa Website</a>
<a rel="rdfatest:cornerCase1" href=".">Corner Case #1</a>
<a rel="rdfatest:cornerCase2" href="http://example.org/foo/..">Corner Case #2</a>
<a rel="rdfatest:cornerCase3" href="...">Corner Case #3</a>
<a rel="rdfatest:cornerCase4" href="?foo=bar../baz">Corner Case #4</a>
<a rel="rdfatest:cornerCase5" href="../..../../../.../.htaccess">Corner Case #5</a>
</div>
<p>Description: XML entities in the RDFa content</p>
<p>
<span property="ex:entity1">></span>
<span property="ex:entity2">Ben & Co.</span>
<span property="ex:entity3">@</span>
<span property="ex:entity4">@</span>
</p>
<p>
<span property="dc:contributor">Mark Birbeck</span>
added this triple test.
</p>
<p>
Check to see if parsers get confused when "" is
interpreted as NULL in some chaining cases.
<a href="http://example.org/ben.html"><span
about="" property="dc:creator">Ben</span></a>
</p>
<div>
<p about="[example:]">
The
<span property="dc:title">Example Website</span>
is used in many W3C tutorials.
</p>
</div>
<p about="[:]">
The
<span property="dc:title">The XHTML Vocabulary Document</span>
is the default prefix for XHTML+RDFa 1.0.
</p>
<div>
<p about="http://example.org/">
<span about="[]" property="dc:title">Test Case 0121</span>
checks to make sure RDFa processors resolve the empty CURIE correctly.
<p resource="[]">
<span property="dc:contributor">Shane McCarron</span>
contributed to this test.
</p>
</p>
</div>
<p about="http://example.org/section1.html">
This section is contained below <span rel="up" resource="[]">the main site</span>.
</p>
<div about="http://www.example.org/#article" typeof="foaf:Document sioc:Post">
<h1 property="dct:title">My article</h1>
</div>
<p>Blank Nodes are not allowed to be predicate identifiers in RDF:</p>
<p property="_:invalid">Test</p>
<p xmlns:xmlzzz="http://example.org/" property="xmlzzz:test">Test</p>
<p>
This test ensures that single-character prefixes are allowed.
My name is:
<span about="http://example.org/jd" property="v:fn">John Doe</span>
</p>
<p about="_:gregg">My name is
<em property="http://xmlns.com/foaf/0.1/name">Gregg Kellogg</em>.
</p>
<div about="_:manu">
Manu can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">He knows Gregg.</span>
<span rev="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">Who knows Manu.</span>
</div>
<div about="_:gregg">
Gregg can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:gregg@kellogg-assoc.com">email</a>.
</div>
<div about ="#me" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<div about ="#this" prefix="foaf: http://xmlns.com/foaf/0.1/ dc: http://purl.org/dc/terms/" typeof="dc:Agent">
<p property="foaf:name">A particular agent</p>
</div>
<!-- prefix has a higher priority than xmlns -->
<div about ="#me" xmlns:foaf="http://www.example.com/wrong/foaf/uri" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<div about ="#me" prefix=": http://xmlns.com/foaf/0.1/" >
<p property=":name">Ivan Herman</p>
</div>
<div about ="http://www.example.org/software">
<p rel=":license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" xmlns:foaf="http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
<div vocab="http://example.org/wrong/foaf/uri/">
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
</div>
<div vocab="http://xmlns.com/foaf/0.1/">
<div about ="#me">
<p property="name">Ivan Herman</p>
</div>
</div>
<div about ="http://www.example.org/software" vocab="http://www.example.org/vocab#">
<p rel="license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
<div about ="http://www.example.org/software">
<p rel="liCeNse" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is an XMLLiteral</p>
<p property="ex:plainlit">This is a <em>plain</em> literal</p>
</div>
<p about="" typeof="class/Person" property="pred/name">Gregg Kellogg</p>
<p property="dc:language" datatype="pred/lang">Ruby</p>
<p rel="pred/rel" resource="http://kellogg-assoc.com/">Kellogg Associates</p>
<p rev="pred/rev" resource="http://github.org/gkellogg/rdf_context">Ruby Gem</p>
<div id="mark" about="#mark" typeof="foaf:Person">
<h2 property="foaf:name" datatype="rdf:XMLLiteral"><span
property="foaf:firstName">Mark</span> <span
property="foaf:surname">Birbeck</span></h2>
</div>
<p about ="xsd:maxExclusive" rel="rdf:type" resource="owl:DatatypeProperty">
An OWL Axiom: "xsd:maxExclusive" is a Datatype Property in OWL.
</p>
<p about="#event1" typeof="cal:Vevent">
<b property="cal:summary">Weekend off in Iona</b>:
<span property="cal:dtstart" content="2006-10-21" datatype="xsd:date">Oct 21st</span>
to <span property="cal:dtend" content="2006-10-23" datatype="xsd:date">Oct 23rd</span>.
See <a rel="cal:url" href="http://freetime.example.org/">FreeTime.Example.org</a> for
info on <span property="cal:location">Iona, UK</span>.
</p>
<!-- @prefix should be ignored in the RDFa 1.0 case -->
<div about ="#me" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<!-- prefix has a higher priority than xmlns, but should be ignored because version is explicitly set to 1.0 -->
<div about ="#me" xmlns:foaf="http://www.example.com/wrong/foaf/uri/" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<!-- The version statement should be ignored with version set to 1.0 -->
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<!-- In RDFa 1.0, if a literal contains XML elements, and no explicit datatype is set, the result is XMLLiteral -->
<div about="http://www.example.org/">
<h2 property="dc:title">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
<!-- In RDFa 1.1, by default a plain literal is generated even if it contains XML elements -->
<div about="http://www.example.org/">
<h2 property="dc:title">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
<p>This document has a title.</p>
<!-- Tests whether the Unicode (UTF-8 encoded) characters are properly handled even with a large set of properties
in the html element, ie, when the content sniffing to find out the character encoding may not work -->
<p about="http://www.ivan-herman.net/foaf#me" property="foaf:name">Iván</p>
<!-- Tests whether the Unicode (UTF-8 encoded) characters are properly handled even with a large set of properties
in the html element, ie, when the content sniffing to find out the character encoding may not work -->
<p about="http://www.ivan-herman.net/foaf#me" property="foaf:name">Iván</p>
<div about="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Gregg Kellogg</p>
</div>
<div about ="">
<p rel="rdf:value" inlist=""/>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
</div>
<div about="">
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
<p property="rdf:value">Baz</p>
</div>
<div about="">
<ol rel="rdf:value" inlist="">
<li><a href="foo">Foo</a></li>
<li><a href="bar">Bar</a></li>
</ol>
</div>
<div about="foo">
<p property="rdf:value" inlist="">Foo</p>
</div>
<div about="foo">
<p property="rdf:value" inlist="">Bar</p>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="rdf:inlist" resource="res">
<p property="rdf:value" inlist="">Bar</p>
</span>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="rdf:inlist">
<p about="res" property="rdf:value" inlist="">Bar</p>
</span>
</div>
<div>
<img src="http://sw-app.org/img/mic_2007_01.jpg"
rev="xhv:alternate"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img
src="http://example.org/example.png"
rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/2.0/"
alt="example image" />
</div>
<div about="http://creativecommons.org/licenses/by-nc-sa/2.0/" rev="license">
<img src="http://example.org/example.png" alt="example image" />
</div>
<div rel="foaf:maker" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<div rel="foaf:maker" typeof="foaf:Person" resource="http://www.example.org/#me">
<p property="foaf:name">John Doe</p>
</div>
<p>
<a rel="describedby" href="http://example.org/describedby">describedby</a>
<a rel="license" href="http://example.org/license">license</a>
<a rel="role" href="http://example.org/role">role</a>
</p>
<p>
The <span property="dc:title">rdfagraph</span> should not generate triples when
looking only at the processor graph.
</p>
<p></p>
<p></p>
<p about="http://example.org/node" property="ex:property"
datatype="" lang="el">ελληνικό
άσπρο διάστημα
</p>
<p></p>
<span about="#a" property="dc:title"></span>
<p>Ensure that the "_" prefix is ignored.</p>
<p xmlns:_="http://example.org/"
prefix="_: http://example.org/"
xmlns:earl="http://www.w3.org/ns/earl#"
rel="earl:testcase" resource="_:test">Test</p>
<div>
Vocabulary Prefixes
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="owl:">OWL</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="skos:">SKOS</span>
<span property="skosxl:">SKOS-XL</span>
<span property="wdr:">WDR</span>
<span property="void:">VOID</span>
<span property="wdrs:">WDRS</span>
<span property="xhv:">XHV</span>
<span property="xml:">XML</span>
<span property="xsd:">XSD</span>
</div>
<div>
Widely Used prefixes
<span property="cc:">CC</span>
<span property="ctag:">CTAG</span>
<span property="dc:">DC</span>
<span property="dcterms:">DCTERMS</span>
<span property="foaf:">FOAF</span>
<span property="gr:">GR</span>
<span property="ical:">ICAL</span>
<span property="og:">OG</span>
<span property="rev:">REV</span>
<span property="sioc:">SIOC</span>
<span property="v:">V</span>
<span property="vcard:">VCARD</span>
<span property="schema:">Schema</span>
</div>
<div>
Vocabulary Terms
<span property="describedby">DescribedBy</span>
<span property="license">License</span>
<span property="role">Role</span>
</div>
<div>
Vocabulary Terms
<span property="alternate">alternate</span>
<span property="appendix">appendix</span>
<span property="cite">cite</span>
<span property="bookmark">bookmark</span>
<span property="contents">contents</span>
<span property="chapter">chapter</span>
<span property="copyright">copyright</span>
<span property="first">first</span>
<span property="glossary">glossary</span>
<span property="help">help</span>
<span property="icon">icon</span>
<span property="index">index</span>
<span property="last">last</span>
<span property="license">license</span>
<span property="meta">meta</span>
<span property="next">next</span>
<span property="prev">prev</span>
<span property="previous">previous</span>
<span property="section">section</span>
<span property="start">start</span>
<span property="stylesheet">stylesheet</span>
<span property="subsection">subsection</span>
<span property="top">top</span>
<span property="up">up</span>
<span property="p3pv1">p3pv1</span>
</div>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is
an XMLLiteral</p>
</div>
<p>This photo was taken by <span class="author" about="photo1.jpg" property=" dc:creator
">Mark Birbeck</span>.</p>
<p> </p>
<p> </p>
<p> </p>
<div about="http://www.w3.org/Person/Ivan#me">
<a href="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</a>
</div>
<div about="http://www.w3.org/Person/Ivan#me">
<p resource="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</p>
</div>
<div about="http://www.ivan-herman.net/foaf#me">
<img src="http://www.ivan-herman.net/Images/me2003-small.png" typeof="foaf:Image" property="foaf:depiction" />
</div>
<p> </p>
<p> </p>
<p> </p>
<time property="rdf:value" datetime="2012-03-18Z">18 March 2012</time>
<time property="rdf:value" datetime="00:00:00Z">midnight</time>
<time property="rdf:value" datetime="2012-03-18T00:00:00Z">18 March 2012 at midnight</time>
<time property="rdf:value">2012-03-18Z</time>
<time property="rdf:value">00:00:00Z</time>
<time property="rdf:value">2012-03-18T00:00:00Z</time>
<time property="rdf:value" datetime="2012-03-18" content="not this">18 March 2012</time>
<time property="rdf:value" datetime="2012-03-18T00:00:00Z" datatype="xsd:date">18 March 2012 at midnight</time>
<time property="rdf:value" datetime="P2011Y06M28DT00H00M00S">2011 years 6 months 28 days</time>
<time property="rdf:value" datetime="2012">Two Thousand Twelve</time>
<time property="rdf:value" datetime="2012-03">March, Two Thousand Twelve</time>
<time property="rdf:value"> 2012-03-18Z</time>
<time property="rdf:value" datatype="xsd:dateTime"> 2012-03-18Z</time>
<time property="rdf:value" lang="en" datetime="D-Day">
Non matching lexical value with language.
</time>
<data property="rdf:value" lang="lat" value="veni, vidi, vici" content="I came, I saw, I conquered">
@value overrides @content in the 'data' element.
</data>
<time property="rdf:value" datetime="2012-03-18T00:00:00-08:00">18 March 2012 at midnight in San Francisco</time>
<object property="rdf:value" data="http://example.com/"></object>
<h1>@href becomes subject when @property and @content are present</h1>
<a href="http://example.org/" property="rdf:value" content="value">ignored</a>
<h1>@href becomes subject when @property and @datatype are present</h1>
<a href="http://example.org/" property="rdf:value" datatype="">value</a>
<h1>@href as subject overridden by @about</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value">ignored</a>
<h1>@about overriding @href as subject is used as parent resource</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value one">
<span property="rdf:value">value two</span>
</a>
<h1>Testing the ':' character usage in a CURIE</h1>
<div prefix="ex: http://www.example.org/">
<p about="http://www.example.org" property="ex:column:test">Test</p>
</div>
<p>None of these triples should be generated in RDFa 1.0.</p>
<div>
Vocabulary Prefixes
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="owl:">OWL</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="skos:">SKOS</span>
<span property="skosxl:">SKOS-XL</span>
<span property="wdr:">WDR</span>
<span property="void:">VOID</span>
<span property="wdrs:">WDRS</span>
<span property="xhv:">XHV</span>
<span property="xml:">XML</span>
<span property="xsd:">XSD</span>
</div>
<div>
Widely Used prefixes
<span property="cc:">CC</span>
<span property="ctag:">CTAG</span>
<span property="dc:">DC</span>
<span property="dcterms:">DCTERMS</span>
<span property="foaf:">FOAF</span>
<span property="gr:">GR</span>
<span property="ical:">ICAL</span>
<span property="og:">OG</span>
<span property="rev:">REV</span>
<span property="sioc:">SIOC</span>
<span property="v:">V</span>
<span property="vcard:">VCARD</span>
<span property="schema:">Schema</span>
</div>
<div>
Vocabulary Terms
<span property="describedby">DescribedBy</span>
</div>
</body>
</html>
# Just test to see that some triples are generated
ASK WHERE {?s ?p ?o}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:air="http://www.daml.org/2001/10/html/airport-ont#"
xmlns:bio="http://vocab.org/bio/0.1/"
xmlns:cal="http://www.w3.org/2002/12/cal/icaltzd#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:cert="http://www.w3.org/ns/auth/cert#"
xmlns:contact="http://www.w3.org/2000/10/swap/pim/contact#"
xmlns:dc="http://purl.org/dc/terms/"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:earl="http://www.w3.org/ns/earl#"
xmlns:example="http://example.org/"
xmlns:ex="http://example.org/"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:google="http://rdf.data-vocabulary.org/#"
xmlns:ical="http://www.w3.org/2002/12/cal/icaltzd#"
xmlns:openid="http://xmlns.openid.net/auth#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:rdfatest="http://rdfa.info/vocabs/rdfa-test#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:rel="http://vocab.org/relationship/"
xmlns:rsa="http://www.w3.org/ns/auth/rsa#"
xmlns:rss="http://web.resource.org/rss/1.0/"
xmlns:sioc="http://rdfs.org/sioc/ns#"
xmlns:v="http://www.w3.org/2006/vcard/ns#"
xmlns:wot="http://xmlns.com/wot/0.1/"
xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>RDFa 1.1 Benchmark File #1</title>
</head>
<body>
<p>This photo was taken by <span class="author" about="photo1.jpg" property="dc:creator">Mark Birbeck</span>.</p>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator" rev="foaf:img"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
<p>This photo was taken by
<a about="photo1.jpg" property="dc:title"
content="Portrait of Mark" rel="dc:creator"
rev="foaf:img" href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
<p>This document is licensed under a
<a about="" rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons
</a>.
</p>
<p></p>
<p></p>
<p></p>
<p></p>
<p>
<span about="http://example.org/foo"
property="ex:bar" content="10" datatype="xsd:integer">ten</span>
</p>
<p></p>
<p>
<span about="[_:a]" property="foaf:name">Manu Sporny</span>
<span about="[_:a]" rel="foaf:knows"
resource="[_:b]">knows</span>
<span about="[_:b]" property="foaf:name">Ralph Swick</span>.
</p>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
<div about="mailto:manu.sporny@digitalbazaar.com"
rel="foaf:knows" href="mailto:michael.hausenblas@joanneum.at"></div>
<div about="photo1.jpg">
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
<div>
<span class="attribution-line">this photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</span>
</div>
<div id="photo1">
This photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</div>
<p>
This paper was written by
<span rel="dc:creator" resource="#me">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck" />
</p>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck">Mark B.
</span>
</p>
<p>
<span about="http://example.org/foo"
property="dc:creator" datatype="xsd:string"><b>M</b>ark <b>B</b>irbeck</span>.
</p>
<p>This document is licensed under a
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nc-nd/2.5/">
Creative Commons License
</a>.
</p>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<span rel="dc:identifier" resource="urn:ISBN:0752820907">0752820907</span>.
</p>
<p about="#wtw">
The book <b>Weaving the Web</b> (hardcover) has the ISBN
<a rel="dc:identifier" resource="urn:ISBN:0752820907"
href="http://www.amazon.com/Weaving-Web-Tim-Berners-Lee/dp/0752820907">0752820907</a>.
</p>
<p>
This paper was written by
<span rel="dc:creator">
<span property="foaf:name">Ben Adida</span>.
</span>
</p>
<div about="http://sw-app.org/mic.xhtml#i" rel="foaf:img">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
<div about="http://sw-app.org/mic.xhtml#i" rev="foaf:depicts">
<img src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img src="http://sw-app.org/img/mic_2007_01.jpg"
rev="alternate"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img about="http://sw-app.org/mic.xhtml#i"
rev="foaf:depicts"
src="http://sw-app.org/img/mic_2007_01.jpg"
href="http://sw-app.org/img/mic_2006_03.jpg"
resource="http://sw-app.org/mic.xhtml#photo"
alt="A photo depicting Michael" />
</div>
<div>
<img rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div rel="foaf:maker" typeof="foaf:Document">
<p property="foaf:name">John Doe</p>
</div>
<div rel="foaf:maker" typeof="foaf:Document" resource="http://www.example.org/#me">
<p property="foaf:name">John Doe</p>
</div>
<div about="http://www.example.org/#me" rel="foaf:knows" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<div about="http://www.example.org/#me" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<div typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<p about="" typeof="foaf:Document" property="foaf:topic">John Doe</p>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
John Doe
</p>
<p typeof="foaf:Person" resource="http://www.example.org/#me">
<span property="foaf:name">John Doe</span>
</p>
<p>
This document was authored and published by
<span about="" property="dc:creator dc:publisher">Fabien Gandon</span>.
</p>
<p>
This document was authored and published by
<a about="" rel="dc:creator dc:publisher" href="http://www-sop.inria.fr/acacia/fabien/">Fabien Gandon</a>.
</p>
<div about="http://www.example.org/#ben" typeof="foaf:Person" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
</div>
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p about="http://www.example.org/#mark" property="foaf:name">Mark Birbeck</p>
<p about="http://www.example.org/#ivan" property="foaf:name">Ivan Herman</p>
</div>
<div about="http://www.example.org/#ben" rel="foaf:knows">
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
<p typeof="foaf:Person" property="foaf:name">Ivan Herman</p>
</div>
<p>This document was authored and published by:</p>
<ul rel="dc:creator dc:publisher">
<li about="http://www.example.org/#manu" property="foaf:name">Manu Sporny</li>
<li about="http://www.example.org/#fabien" property="foaf:name">Fabien Gandon</li>
</ul>
<div about="http://www.example.org/#matsumoto-kimiko"
typeof="foaf:Person">
<p property="foaf:name">松本 后子</p>
</div>
<p>This is the first chapter in a series of chapters.</p>
<p>This is unit test #62. The next unit test is #63.</p>
<p>This is the 63<sup>rd</sup> test. The next test is #64.</p>
<p about="[_:michael]">Michael knows
<a rel="foaf:knows" href="http://digitalbazaar.com/people/manu">Manu</a>.
</p>
<div about="[_:manu]">
Manu Sporny can be reached via
<a rel="foaf:mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="foaf:knows" resource="[_:michael]">He knows Michael.</span>
</div>
<div about="[_:michael]">
Michael can be reached via
<a rel="foaf:mbox" href="mailto:michael.hausenblas@joanneum.at">email</a>.
</div>
<p>This is test #66.</p>
<p>This is test #67.</p>
<p about="0067.xhtml">
The previous test was
<span property="dc:title">Test 0067</span>.
</p>
<p>The next test will be
<a about="" rel="xhv:next" href="0070.xhtml">Test 0070</a>.
</p>
<p>The previous test was
<span about="" rel="xhv:prev" resource="0069.xhtml">Test 0069</span>.
</p>
<p>This page is under a Creative Commons
<a rel="cc:license"
href="http://creativecommons.org/licenses/by-nd/3.0/">
Attribution-No Derivatives 3.0 license</a>.
</p>
<p about="faq">
Learn more by reading the example.org
<span property="dc:title">Example FAQ</span>.
</p>
<p>
This article was written by
<span rel="dc:creator" resource="jane">Jane</span>.
</p>
<p>
This article was written by
<a rel="dc:creator" href="jane">Jane</a>.
</p>
<p>
This page is under a Creative Commons
<a rel="license" href="http://creativecommons.org/licenses/by-nd/3.0/">Attribution-No Derivatives 3.0 license</a>.
</p>
<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="cite" href="http://example.org/cite">cite</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="last" href="http://example.org/last">last</a>
<a rel="license" href="http://example.org/license">license</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="stylesheet" href="http://example.org/stylesheet">stylesheet</a>
<a rel="up" href="http://example.org/up">up</a>
</p>
<p>
<span about="http://example.org/alternate" rev="alternate"
href="0077.xhtml">alternate</span>
<span about="http://example.org/appendix" rev="appendix"
href="0077.xhtml">appendix</span>
<span about="http://example.org/bookmark" rev="bookmark"
href="0077.xhtml">bookmark</span>
<span about="http://example.org/cite" rev="cite"
href="0077.xhtml">cite</span>
<span about="http://example.org/chapter" rev="chapter"
href="0077.xhtml">chapter</span>
<span about="http://example.org/contents" rev="contents"
href="0077.xhtml">contents</span>
<span about="http://example.org/copyright" rev="copyright"
href="0077.xhtml">copyright</span>
<span about="http://example.org/glossary" rev="glossary"
href="0077.xhtml">glossary</span>
<span about="http://example.org/help" rev="help"
href="0077.xhtml">help</span>
<span about="http://example.org/icon" rev="icon"
href="0077.xhtml">icon</span>
<span about="http://example.org/index" rev="index"
href="0077.xhtml">index</span>
<span about="http://example.org/first" rev="first"
href="0077.xhtml">first</span>
<span about="http://example.org/last" rev="last"
href="0077.xhtml">last</span>
<span about="http://example.org/license" rev="license"
href="0077.xhtml">license</span>
<span about="http://example.org/meta" rev="meta"
href="0077.xhtml">meta</span>
<span about="http://example.org/next" rev="next"
href="0077.xhtml">next</span>
<span about="http://example.org/p3pv1" rev="p3pv1"
href="0077.xhtml">p3pv1</span>
<span about="http://example.org/prev" rev="prev"
href="0077.xhtml">prev</span>
<span about="http://example.org/role" rev="role"
href="0077.xhtml">role</span>
<span about="http://example.org/section" rev="section"
href="0077.xhtml">section</span>
<span about="http://example.org/subsection" rev="subsection"
href="0077.xhtml">subsection</span>
<span about="http://example.org/start" rev="start"
href="0077.xhtml">start</span>
<span about="http://example.org/stylesheet" rev="stylesheet"
href="0077.xhtml">stylesheet</span>
<span about="http://example.org/up" rev="up"
href="0077.xhtml">up</span>
</p>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
</div>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="http://danbri.org/foaf.rdf#danbri" resource="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
<div about ="http://www.example.org/#somebody" rev="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
</div>
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p typeof="foaf:Person" property="foaf:name">Mark Birbeck</p>
</div>
<div about="http://www.example.org/#somebody" rel="foaf:knows">
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>
</div>
<div about ="http://www.example.org/#somebody" rev="foaf:knows" rel="foaf:knows">
<div>
<p property="foaf:name">Ivan Herman</p>
<p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p>
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>
</div>
</div>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<div rel="foaf:knows">
<p resource="http://www.ivan-herman.org/Ivan_Herman">Ivan Herman</p>
<p href="http://www.w3.org/People/Berners-Lee/card#i">Tim Berners Lee</p>
<p resource="http://danbri.org/foaf.rdf#danbri" href="http://www.leobard.net/rdf/foaf.xml#me">Dan Brickley</p>
</div>
</div>
<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=":cite" href="http://example.org/cite">cite</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=":first" href="http://example.org/first">first</a>
<a rel=":last" href="http://example.org/last">last</a>
<a rel=":license" href="http://example.org/license">license</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=":stylesheet" href="http://example.org/stylesheet">stylesheet</a>
<a rel=":up" href="http://example.org/up">up</a>
</p>
<div about ="http://www.example.org/#somebody" rel="foaf:knows">
<p about="[_:]" property="foaf:name">Dan Brickley</p>
<p about="[_:]" typeof="foaf:Person">Dan Brickley again:-)</p>
</div>
<div>
<img src="http://example.org/example.png" typeof="foaf:Image" alt="example image" />
</div>
<div>
<img src="http://example.org/example.png"
rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/2.0/"
alt="example image" />
</div>
<p about="[_:human]">
A human is
<span property=":definition">a bi-pedal primate</span>.
They are quite possibly one of the most
<span property=":note">confused animal</span>s residing in the
<span property=":foo">Milky Way</span>.
</p>
<div about="">
Author: <span property="dc:creator">Albert Einstein</span>
<h2 property="dc:title" datatype="ex:XMLLiteral">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
<p about="http://www.cwi.nl/~steven/" property="example:likes">
We put thirty spokes together and call it a wheel;
But it is on the space where there is nothing that the usefulness of the wheel depends.
We turn clay to make a vessel;
But it is on the space where there is nothing that the usefulness of the vessel depends.
We pierce doors and windows to make a house;
And it is on these spaces where there is nothing that the usefulness of the house depends.
Therefore just as we take advantage of what is, we should recognize the usefulness of what is not.
Lao Tzu: Tao Te Ching</p>
<p>
The word "interfenestration" has
<span about="#interfenestration" rel="example:size">
<span property="rdf:value">17</span>
<span property="example:unit">character</span>s.
</span>
</p>
<div about="" rel="dc:creator">
<a rel="" href="manu.html">Manu</a> created this page.
</div>
<div rel="next"></div>
<p about="http://example.org/node" property="ex:property"
datatype="" xml:lang="el">ελληνικό
άσπρο διάστημα
</p>
<!-- This a NOT a valid XHTML document (due to @xml:base) -->
<div xml:base="http://example.org/invalid/">
<p about="">This is <span property="dc:title">Test 0109</span>.</p>
</div>
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
<div rel="xhv:next">
<div rel="xhv:next">
<div rel="xhv:next" />
</div>
</div>
<p>
<span about="http://example.org/node" property="ex:property"
datatype="">not an XML Literal,
whitespace preserved
</span>
</p>
<span about="#a" property="dc:title"></span>
<span about="#b" property="dc:title" />
<div>
<a rel="xhv:index" href="../../.././#">Test Suite</a>
<a rel="xhv:next" href="0115.xhtml">Test Case 0115</a>
<a rel="xhv:up" href="./">Test Case 0114</a>
<a rel="cc:attributionURL" href="../../../../">RDFa Website</a>
<a rel="rdfatest:cornerCase1" href=".">Corner Case #1</a>
<a rel="rdfatest:cornerCase2" href="http://example.org/foo/..">Corner Case #2</a>
<a rel="rdfatest:cornerCase3" href="...">Corner Case #3</a>
<a rel="rdfatest:cornerCase4" href="?foo=bar../baz">Corner Case #4</a>
<a rel="rdfatest:cornerCase5" href="../..../../../.../.htaccess">Corner Case #5</a>
</div>
<p>Description: XML entities in the RDFa content</p>
<p>
<span property="ex:entity1">></span>
<span property="ex:entity2">Ben & Co.</span>
<span property="ex:entity3">@</span>
<span property="ex:entity4">@</span>
</p>
<p>
<span property="dc:contributor">Mark Birbeck</span>
added this triple test.
</p>
<p>
Check to see if parsers get confused when "" is
interpreted as NULL in some chaining cases.
<a href="http://example.org/ben.html"><span
about="" property="dc:creator">Ben</span></a>
</p>
<div>
<p about="[example:]">
The
<span property="dc:title">Example Website</span>
is used in many W3C tutorials.
</p>
</div>
<p about="[:]">
The
<span property="dc:title">The XHTML Vocabulary Document</span>
is the default prefix for XHTML+RDFa 1.0.
</p>
<div>
<p about="http://example.org/">
<span about="[]" property="dc:title">Test Case 0121</span>
checks to make sure RDFa processors resolve the empty CURIE correctly.
<p resource="[]">
<span property="dc:contributor">Shane McCarron</span>
contributed to this test.
</p>
</p>
</div>
<p about="http://example.org/section1.html">
This section is contained below <span rel="up" resource="[]">the main site</span>.
</p>
<div about="http://www.example.org/#article" typeof="foaf:Document sioc:Post">
<h1 property="dct:title">My article</h1>
</div>
<p>Blank Nodes are not allowed to be predicate identifiers in RDF:</p>
<p property="_:invalid">Test</p>
<p xmlns:xmlzzz="http://example.org/" property="xmlzzz:test">Test</p>
<p>
This test ensures that single-character prefixes are allowed.
My name is:
<span about="http://example.org/jd" property="v:fn">John Doe</span>
</p>
<p about="_:gregg">My name is
<em property="http://xmlns.com/foaf/0.1/name">Gregg Kellogg</em>.
</p>
<div about="_:manu">
Manu can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:manu.sporny@digitalbazaar.com">email</a>.
<span rel="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">He knows Gregg.</span>
<span rev="http://xmlns.com/foaf/0.1/knows" resource="_:gregg">Who knows Manu.</span>
</div>
<div about="_:gregg">
Gregg can be reached via
<a rel="http://xmlns.com/foaf/0.1/mbox" href="mailto:gregg@kellogg-assoc.com">email</a>.
</div>
<div about ="#me" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<div about ="#this" prefix="foaf: http://xmlns.com/foaf/0.1/ dc: http://purl.org/dc/terms/" typeof="dc:Agent">
<p property="foaf:name">A particular agent</p>
</div>
<!-- prefix has a higher priority than xmlns -->
<div about ="#me" xmlns:foaf="http://www.example.com/wrong/foaf/uri" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<div about ="#me" prefix=": http://xmlns.com/foaf/0.1/" >
<p property=":name">Ivan Herman</p>
</div>
<div about ="http://www.example.org/software">
<p rel=":license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
<div prefix="foaf: http://example.org/wrong/foaf/uri/ dc: http://purl.org/dc/terms/" >
<div about ="#this" typeof="dc:Agent" xmlns:foaf="http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">A particular agent</p>
</div>
</div>
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
<div vocab="http://example.org/wrong/foaf/uri/">
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Ivan Herman</p>
</div>
</div>
<div vocab="http://xmlns.com/foaf/0.1/">
<div about ="#me">
<p property="name">Ivan Herman</p>
</div>
</div>
<div about ="http://www.example.org/software" vocab="http://www.example.org/vocab#">
<p rel="license" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
<div about ="http://www.example.org/software">
<p rel="liCeNse" resource="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">Ivan Herman</p>
</div>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is an XMLLiteral</p>
<p property="ex:plainlit">This is a <em>plain</em> literal</p>
</div>
<p about="" typeof="class/Person" property="pred/name">Gregg Kellogg</p>
<p property="dc:language" datatype="pred/lang">Ruby</p>
<p rel="pred/rel" resource="http://kellogg-assoc.com/">Kellogg Associates</p>
<p rev="pred/rev" resource="http://github.org/gkellogg/rdf_context">Ruby Gem</p>
<div id="mark" about="#mark" typeof="foaf:Person">
<h2 property="foaf:name" datatype="rdf:XMLLiteral"><span
property="foaf:firstName">Mark</span> <span
property="foaf:surname">Birbeck</span></h2>
</div>
<p about ="xsd:maxExclusive" rel="rdf:type" resource="owl:DatatypeProperty">
An OWL Axiom: "xsd:maxExclusive" is a Datatype Property in OWL.
</p>
<p about="#event1" typeof="cal:Vevent">
<b property="cal:summary">Weekend off in Iona</b>:
<span property="cal:dtstart" content="2006-10-21" datatype="xsd:date">Oct 21st</span>
to <span property="cal:dtend" content="2006-10-23" datatype="xsd:date">Oct 23rd</span>.
See <a rel="cal:url" href="http://freetime.example.org/">FreeTime.Example.org</a> for
info on <span property="cal:location">Iona, UK</span>.
</p>
<!-- @prefix should be ignored in the RDFa 1.0 case -->
<div about ="#me" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<!-- prefix has a higher priority than xmlns, but should be ignored because version is explicitly set to 1.0 -->
<div about ="#me" xmlns:foaf="http://www.example.com/wrong/foaf/uri/" prefix="foaf: http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<!-- The version statement should be ignored with version set to 1.0 -->
<div about ="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="foaf:name">Ivan Herman</p>
</div>
<!-- In RDFa 1.0, if a literal contains XML elements, and no explicit datatype is set, the result is XMLLiteral -->
<div about="http://www.example.org/">
<h2 property="dc:title">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
<!-- In RDFa 1.1, by default a plain literal is generated even if it contains XML elements -->
<div about="http://www.example.org/">
<h2 property="dc:title">E = mc<sup>2</sup>: The Most Urgent Problem of Our Time</h2>
</div>
<p>This document has a title.</p>
<!-- Tests whether the Unicode (UTF-8 encoded) characters are properly handled even with a large set of properties
in the html element, ie, when the content sniffing to find out the character encoding may not work -->
<p about="http://www.ivan-herman.net/foaf#me" property="foaf:name">Iván</p>
<!-- Tests whether the Unicode (UTF-8 encoded) characters are properly handled even with a large set of properties
in the html element, ie, when the content sniffing to find out the character encoding may not work -->
<p about="http://www.ivan-herman.net/foaf#me" property="foaf:name">Iván</p>
<div about="#me" vocab="http://xmlns.com/foaf/0.1/" >
<p property="name">Gregg Kellogg</p>
</div>
<div about ="">
<p rel="rdf:value" inlist=""/>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
</div>
<div about="">
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<strong><p property="rdf:value" inlist="">Bar</p></strong>
<p property="rdf:value">Baz</p>
</div>
<div about="">
<ol rel="rdf:value" inlist="">
<li><a href="foo">Foo</a></li>
<li><a href="bar">Bar</a></li>
</ol>
</div>
<div about="foo">
<p property="rdf:value" inlist="">Foo</p>
</div>
<div about="foo">
<p property="rdf:value" inlist="">Bar</p>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="rdf:inlist" resource="res">
<p property="rdf:value" inlist="">Bar</p>
</span>
</div>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
<span rel="rdf:inlist">
<p about="res" property="rdf:value" inlist="">Bar</p>
</span>
</div>
<div>
<img src="http://sw-app.org/img/mic_2007_01.jpg"
rev="xhv:alternate"
resource="http://sw-app.org/img/mic_2006_03.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img rel="foaf:img"
src="http://sw-app.org/img/mic_2007_01.jpg"
alt="A photo depicting Michael" />
</div>
<div>
<img
src="http://example.org/example.png"
rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/2.0/"
alt="example image" />
</div>
<div about="http://creativecommons.org/licenses/by-nc-sa/2.0/" rev="license">
<img src="http://example.org/example.png" alt="example image" />
</div>
<div rel="foaf:maker" typeof="foaf:Person">
<p property="foaf:name">John Doe</p>
</div>
<div rel="foaf:maker" typeof="foaf:Person" resource="http://www.example.org/#me">
<p property="foaf:name">John Doe</p>
</div>
<p>
<a rel="describedby" href="http://example.org/describedby">describedby</a>
<a rel="license" href="http://example.org/license">license</a>
<a rel="role" href="http://example.org/role">role</a>
</p>
<p>
The <span property="dc:title">rdfagraph</span> should not generate triples when
looking only at the processor graph.
</p>
<p></p>
<p></p>
<p about="http://example.org/node" property="ex:property"
datatype="" lang="el">ελληνικό
άσπρο διάστημα
</p>
<p></p>
<span about="#a" property="dc:title"></span>
<p>Ensure that the "_" prefix is ignored.</p>
<p xmlns:_="http://example.org/"
prefix="_: http://example.org/"
xmlns:earl="http://www.w3.org/ns/earl#"
rel="earl:testcase" resource="_:test">Test</p>
<div>
Vocabulary Prefixes
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="owl:">OWL</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="skos:">SKOS</span>
<span property="skosxl:">SKOS-XL</span>
<span property="wdr:">WDR</span>
<span property="void:">VOID</span>
<span property="wdrs:">WDRS</span>
<span property="xhv:">XHV</span>
<span property="xml:">XML</span>
<span property="xsd:">XSD</span>
</div>
<div>
Widely Used prefixes
<span property="cc:">CC</span>
<span property="ctag:">CTAG</span>
<span property="dc:">DC</span>
<span property="dcterms:">DCTERMS</span>
<span property="foaf:">FOAF</span>
<span property="gr:">GR</span>
<span property="ical:">ICAL</span>
<span property="og:">OG</span>
<span property="rev:">REV</span>
<span property="sioc:">SIOC</span>
<span property="v:">V</span>
<span property="vcard:">VCARD</span>
<span property="schema:">Schema</span>
</div>
<div>
Vocabulary Terms
<span property="describedby">DescribedBy</span>
<span property="license">License</span>
<span property="role">Role</span>
</div>
<div>
Vocabulary Terms
<span property="alternate">alternate</span>
<span property="appendix">appendix</span>
<span property="cite">cite</span>
<span property="bookmark">bookmark</span>
<span property="contents">contents</span>
<span property="chapter">chapter</span>
<span property="copyright">copyright</span>
<span property="first">first</span>
<span property="glossary">glossary</span>
<span property="help">help</span>
<span property="icon">icon</span>
<span property="index">index</span>
<span property="last">last</span>
<span property="license">license</span>
<span property="meta">meta</span>
<span property="next">next</span>
<span property="prev">prev</span>
<span property="previous">previous</span>
<span property="section">section</span>
<span property="start">start</span>
<span property="stylesheet">stylesheet</span>
<span property="subsection">subsection</span>
<span property="top">top</span>
<span property="up">up</span>
<span property="p3pv1">p3pv1</span>
</div>
<div about="http://www.example.org">
<p property="ex:xmllit" datatype="rdf:XMLLiteral">This is
an XMLLiteral</p>
</div>
<p>This photo was taken by <span class="author" about="photo1.jpg" property=" dc:creator
">Mark Birbeck</span>.</p>
<p> </p>
<p> </p>
<p> </p>
<div about="http://www.w3.org/Person/Ivan#me">
<a href="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</a>
</div>
<div about="http://www.w3.org/Person/Ivan#me">
<p resource="http://www.ivan-herman.net/foaf#me" typeof="foaf:Person" property="owl:sameAs">Ivan Herman</p>
</div>
<div about="http://www.ivan-herman.net/foaf#me">
<img src="http://www.ivan-herman.net/Images/me2003-small.png" typeof="foaf:Image" property="foaf:depiction" />
</div>
<p> </p>
<p> </p>
<p> </p>
<time property="rdf:value" datetime="2012-03-18Z">18 March 2012</time>
<time property="rdf:value" datetime="00:00:00Z">midnight</time>
<time property="rdf:value" datetime="2012-03-18T00:00:00Z">18 March 2012 at midnight</time>
<time property="rdf:value">2012-03-18Z</time>
<time property="rdf:value">00:00:00Z</time>
<time property="rdf:value">2012-03-18T00:00:00Z</time>
<time property="rdf:value" datetime="2012-03-18" content="not this">18 March 2012</time>
<time property="rdf:value" datetime="2012-03-18T00:00:00Z" datatype="xsd:date">18 March 2012 at midnight</time>
<time property="rdf:value" datetime="P2011Y06M28DT00H00M00S">2011 years 6 months 28 days</time>
<time property="rdf:value" datetime="2012">Two Thousand Twelve</time>
<time property="rdf:value" datetime="2012-03">March, Two Thousand Twelve</time>
<time property="rdf:value"> 2012-03-18Z</time>
<time property="rdf:value" datatype="xsd:dateTime"> 2012-03-18Z</time>
<time property="rdf:value" lang="en" datetime="D-Day">
Non matching lexical value with language.
</time>
<data property="rdf:value" lang="lat" value="veni, vidi, vici" content="I came, I saw, I conquered">
@value overrides @content in the 'data' element.
</data>
<time property="rdf:value" datetime="2012-03-18T00:00:00-08:00">18 March 2012 at midnight in San Francisco</time>
<object property="rdf:value" data="http://example.com/"></object>
<h1>@href becomes subject when @property and @content are present</h1>
<a href="http://example.org/" property="rdf:value" content="value">ignored</a>
<h1>@href becomes subject when @property and @datatype are present</h1>
<a href="http://example.org/" property="rdf:value" datatype="">value</a>
<h1>@href as subject overridden by @about</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value">ignored</a>
<h1>@about overriding @href as subject is used as parent resource</h1>
<a about="http://example.net/" href="http://example.org/" property="rdf:value" content="value one">
<span property="rdf:value">value two</span>
</a>
<h1>Testing the ':' character usage in a CURIE</h1>
<div prefix="ex: http://www.example.org/">
<p about="http://www.example.org" property="ex:column:test">Test</p>
</div>
<p>None of these triples should be generated in RDFa 1.0.</p>
<div>
Vocabulary Prefixes
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="owl:">OWL</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="skos:">SKOS</span>
<span property="skosxl:">SKOS-XL</span>
<span property="wdr:">WDR</span>
<span property="void:">VOID</span>
<span property="wdrs:">WDRS</span>
<span property="xhv:">XHV</span>
<span property="xml:">XML</span>
<span property="xsd:">XSD</span>
</div>
<div>
Widely Used prefixes
<span property="cc:">CC</span>
<span property="ctag:">CTAG</span>
<span property="dc:">DC</span>
<span property="dcterms:">DCTERMS</span>
<span property="foaf:">FOAF</span>
<span property="gr:">GR</span>
<span property="ical:">ICAL</span>
<span property="og:">OG</span>
<span property="rev:">REV</span>
<span property="sioc:">SIOC</span>
<span property="v:">V</span>
<span property="vcard:">VCARD</span>
<span property="schema:">Schema</span>
</div>
<div>
Vocabulary Terms
<span property="describedby">DescribedBy</span>
</div>
</body>
</html>
# Just test to see that some triples are generated
ASK WHERE {?s ?p ?o}
When @property is used with a resource attribute (@href, @resource, ...) it does not set parent object.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0296</title>
</head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/" resource="http://example.com/gregg/#me" typeof="Person">
<a property="homepage" href="http://example.com/gregg/"><span property="name">Gregg</span></a>
Knows
<ul>
<li property="knows" resource="http://example.com/niklas/#me" typeof="Person">
<a property="homepage" href="http://example.com/niklas/"><span property="name">Niklas</span></a>
</li>
<li property="knows" resource="http://example.com/stéphane/#me" typeof="Person">
<a property="homepage" href="http://example.com/stéphane/"><span property="name">Stéphane</span></a>
</li>
<li property="knows" resource="http://example.com/ivan/#me" typeof="Person">
<a property="homepage" href="http://example.com/ivan/"><span property="name">Ivan</span></a>
</li>
<li property="knows" resource="http://example.com/manu/#me" typeof="Person">
<a property="homepage" href="http://example.com/manu/"><span property="name">Manu</span></a>
</li>
</ul>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://example.com/gregg/#me> a foaf:Person; foaf:name "Gregg";
foaf:knows
<http://example.com/niklas/#me>,
<http://example.com/stéphane/#me>,
<http://example.com/ivan/#me>,
<http://example.com/manu/#me> .
<http://example.com/niklas/#me> a foaf:Person; foaf:name "Niklas" .
<http://example.com/stéphane/#me> a foaf:Person; foaf:name "Stéphane" .
<http://example.com/ivan/#me> a foaf:Person; foaf:name "Ivan" .
<http://example.com/manu/#me> a foaf:Person; foaf:name "Manu" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0296</title>
</head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/" resource="http://example.com/gregg/#me" typeof="Person">
<a property="homepage" href="http://example.com/gregg/"><span property="name">Gregg</span></a>
Knows
<ul>
<li property="knows" resource="http://example.com/niklas/#me" typeof="Person">
<a property="homepage" href="http://example.com/niklas/"><span property="name">Niklas</span></a>
</li>
<li property="knows" resource="http://example.com/stéphane/#me" typeof="Person">
<a property="homepage" href="http://example.com/stéphane/"><span property="name">Stéphane</span></a>
</li>
<li property="knows" resource="http://example.com/ivan/#me" typeof="Person">
<a property="homepage" href="http://example.com/ivan/"><span property="name">Ivan</span></a>
</li>
<li property="knows" resource="http://example.com/manu/#me" typeof="Person">
<a property="homepage" href="http://example.com/manu/"><span property="name">Manu</span></a>
</li>
</ul>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://example.com/gregg/#me> a foaf:Person; foaf:name "Gregg";
foaf:knows
<http://example.com/niklas/#me>,
<http://example.com/stéphane/#me>,
<http://example.com/ivan/#me>,
<http://example.com/manu/#me> .
<http://example.com/niklas/#me> a foaf:Person; foaf:name "Niklas" .
<http://example.com/stéphane/#me> a foaf:Person; foaf:name "Stéphane" .
<http://example.com/ivan/#me> a foaf:Person; foaf:name "Ivan" .
<http://example.com/manu/#me> a foaf:Person; foaf:name "Manu" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0296</title>
</head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/" resource="http://example.com/gregg/#me" typeof="Person">
<a property="homepage" href="http://example.com/gregg/"><span property="name">Gregg</span></a>
Knows
<ul>
<li property="knows" resource="http://example.com/niklas/#me" typeof="Person">
<a property="homepage" href="http://example.com/niklas/"><span property="name">Niklas</span></a>
</li>
<li property="knows" resource="http://example.com/stéphane/#me" typeof="Person">
<a property="homepage" href="http://example.com/stéphane/"><span property="name">Stéphane</span></a>
</li>
<li property="knows" resource="http://example.com/ivan/#me" typeof="Person">
<a property="homepage" href="http://example.com/ivan/"><span property="name">Ivan</span></a>
</li>
<li property="knows" resource="http://example.com/manu/#me" typeof="Person">
<a property="homepage" href="http://example.com/manu/"><span property="name">Manu</span></a>
</li>
</ul>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://example.com/gregg/#me> a foaf:Person; foaf:name "Gregg";
foaf:knows
<http://example.com/niklas/#me>,
<http://example.com/stéphane/#me>,
<http://example.com/ivan/#me>,
<http://example.com/manu/#me> .
<http://example.com/niklas/#me> a foaf:Person; foaf:name "Niklas" .
<http://example.com/stéphane/#me> a foaf:Person; foaf:name "Stéphane" .
<http://example.com/ivan/#me> a foaf:Person; foaf:name "Ivan" .
<http://example.com/manu/#me> a foaf:Person; foaf:name "Manu" .
}
When the @about resolves to nothing, the typed resource should not create a new subject.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0297: Testing @typeof and @about=[]</title>
</head>
<body>
<div about="[]" typeof="foaf:Person" property="foaf:name">Alex Milowski</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0297.html> foaf:name "Alex Milowski" .
[ a foaf:Person ] .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0297: Testing @typeof and @about=[]</title>
</head>
<body>
<div about="[]" typeof="foaf:Person" property="foaf:name">Alex Milowski</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0297.html> foaf:name "Alex Milowski" .
[ a foaf:Person ] .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0297: Testing @typeof and @about=[]</title>
</head>
<body>
<div about="[]" typeof="foaf:Person" property="foaf:name">Alex Milowski</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0297.xhtml> foaf:name "Alex Milowski" .
[ a foaf:Person ] .
}
When the @about resolves to nothing, the typed resource should not create a new subject (chaining).
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0298: Testing @typeof and @about=[]</title>
</head>
<body>
<div about="[]" typeof="foaf:Person">
<span property="foaf:name">Alex Milowski</span>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
[ a foaf:Person; foaf:name "Alex Milowski" ] .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0298: Testing @typeof and @about=[]</title>
</head>
<body>
<div about="[]" typeof="foaf:Person">
<span property="foaf:name">Alex Milowski</span>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
[ a foaf:Person; foaf:name "Alex Milowski" ] .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0298: Testing @typeof and @about=[]</title>
</head>
<body>
<div about="[]" typeof="foaf:Person">
<span property="foaf:name">Alex Milowski</span>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
[ a foaf:Person; foaf:name "Alex Milowski" ] .
}
When the @resource resolves to nothing, @href or @src should be used (@rel case).
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0299: Testing @resource=[]</title>
</head>
<body about="http://www.example.org/">
<a href="http://www.example.org/license.xhtml" rel="xhv:license" resource="[]">The Foo Document</a>
</body>
</html>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
ASK WHERE {
<http://www.example.org/> xhv:license <http://www.example.org/license.xhtml> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0299: Testing @resource=[]</title>
</head>
<body about="http://www.example.org/">
<a href="http://www.example.org/license.xhtml" rel="xhv:license" resource="[]">The Foo Document</a>
</body>
</html>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
ASK WHERE {
<http://www.example.org/> xhv:license <http://www.example.org/license.xhtml> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0299: Testing @resource=[]</title>
</head>
<body about="http://www.example.org/">
<a href="http://www.example.org/license.xhtml" rel="xhv:license" resource="[]">The Foo Document</a>
</body>
</html>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
ASK WHERE {
<http://www.example.org/> xhv:license <http://www.example.org/license.xhtml> .
}
When the @resource resolves to nothing, @href or @src should be used (@property case).
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0300: Testing @resource=[]</title>
</head>
<body about="http://www.example.org/">
<a href="http://www.example.org/license.xhtml" property="xhv:license" resource="[]">The Foo Document</a>
</body>
</html>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
ASK WHERE {
<http://www.example.org/> xhv:license <http://www.example.org/license.xhtml> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0300: Testing @resource=[]</title>
</head>
<body about="http://www.example.org/">
<a href="http://www.example.org/license.xhtml" property="xhv:license" resource="[]">The Foo Document</a>
</body>
</html>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
ASK WHERE {
<http://www.example.org/> xhv:license <http://www.example.org/license.xhtml> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0300: Testing @resource=[]</title>
</head>
<body about="http://www.example.org/">
<a href="http://www.example.org/license.xhtml" property="xhv:license" resource="[]">The Foo Document</a>
</body>
</html>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
ASK WHERE {
<http://www.example.org/> xhv:license <http://www.example.org/license.xhtml> .
}
@property with @typeof creates a typed_resource for chaining.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0301: Typed Property</title>
</head>
<body>
<p vocab="http://www.milowski.com/V/" property="bit" typeof="thing">
<span property="name">Fizzbit</span>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0301.html> <http://www.milowski.com/V/bit> [
a <http://www.milowski.com/V/thing>;
<http://www.milowski.com/V/name> "Fizzbit"
]
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0301: Typed Property</title>
</head>
<body>
<p vocab="http://www.milowski.com/V/" property="bit" typeof="thing">
<span property="name">Fizzbit</span>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0301.html> <http://www.milowski.com/V/bit> [
a <http://www.milowski.com/V/thing>;
<http://www.milowski.com/V/name> "Fizzbit"
]
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0301: Typed Property</title>
</head>
<body>
<p vocab="http://www.milowski.com/V/" property="bit" typeof="thing">
<span property="name">Fizzbit</span>
</p>
</body>
</html>
ASK WHERE {
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0301.xhtml> <http://www.milowski.com/V/bit> [
a <http://www.milowski.com/V/thing>;
<http://www.milowski.com/V/name> "Fizzbit"
]
}
Tests that @typof works with terms, CURIES or IRIs.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0302: various types of tokens in @typeof</title>
</head>
<body>
<div vocab="http://schema.org/" resource="http://openspring.net/scor#me" typeof="Person foaf:Person http://purl.org/dc/terms/Agent">
<a property="homepage" href="http://openspring.net/"><span property="name">Stéphane Corlosquet</span></a>
</div>
</body>
</html>
PREFIX schema: <http://schema.org/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dc: <http://purl.org/dc/terms/>
ASK WHERE {
<http://openspring.net/scor#me> a schema:Person, foaf:Person, dc:Agent;
schema:name "Stéphane Corlosquet";
schema:homepage <http://openspring.net/> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0302: various types of tokens in @typeof</title>
</head>
<body>
<div vocab="http://schema.org/" resource="http://openspring.net/scor#me" typeof="Person foaf:Person http://purl.org/dc/terms/Agent">
<a property="homepage" href="http://openspring.net/"><span property="name">Stéphane Corlosquet</span></a>
</div>
</body>
</html>
PREFIX schema: <http://schema.org/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dc: <http://purl.org/dc/terms/>
ASK WHERE {
<http://openspring.net/scor#me> a schema:Person, foaf:Person, dc:Agent;
schema:name "Stéphane Corlosquet";
schema:homepage <http://openspring.net/> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0302: various types of tokens in @typeof</title>
</head>
<body>
<div vocab="http://schema.org/" resource="http://openspring.net/scor#me" typeof="Person foaf:Person http://purl.org/dc/terms/Agent">
<a property="homepage" href="http://openspring.net/"><span property="name">Stéphane Corlosquet</span></a>
</div>
</body>
</html>
PREFIX schema: <http://schema.org/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dc: <http://purl.org/dc/terms/>
ASK WHERE {
<http://openspring.net/scor#me> a schema:Person, foaf:Person, dc:Agent;
schema:name "Stéphane Corlosquet";
schema:homepage <http://openspring.net/> .
}
So that HTML link-relations don't accidentally change the meaning of @property, in HTML+RDFa @rel/@rev term elements are removed from processing, and the entire attribute is removed if it is empty.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0303: @rel/@rev terms removed if @property exists</title>
</head>
<body>
<div vocab="http://schema.org/" resource="http://example.org/base">
<a property="uri" rel="license" href="http://example.orb/val1">Not This</a>
<a property="name" rel="homepage foaf:homepage" href="http://greggkellogg.net/">Gregg Kellogg</a>
</div>
</body>
</html>
PREFIX schema: <http://schema.org/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://example.org/base> schema:name "Gregg Kellogg";
schema:uri <http://example.orb/val1>;
foaf:homepage <http://greggkellogg.net/> .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0303: @rel/@rev terms removed if @property exists</title>
</head>
<body>
<div vocab="http://schema.org/" resource="http://example.org/base">
<a property="uri" rel="license" href="http://example.orb/val1">Not This</a>
<a property="name" rel="homepage foaf:homepage" href="http://greggkellogg.net/">Gregg Kellogg</a>
</div>
</body>
</html>
PREFIX schema: <http://schema.org/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://example.org/base> schema:name "Gregg Kellogg";
schema:uri <http://example.orb/val1>;
foaf:homepage <http://greggkellogg.net/> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0303: @rel/@rev terms removed if @property exists</title>
</head>
<body>
<div vocab="http://schema.org/" resource="http://example.org/base">
<a property="uri" rel="license" href="http://example.orb/val1">Not This</a>
<a property="name" rel="homepage foaf:homepage" href="http://greggkellogg.net/">Gregg Kellogg</a>
</div>
</body>
</html>
PREFIX schema: <http://schema.org/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://example.org/base> schema:name "Gregg Kellogg";
schema:uri <http://example.orb/val1>;
foaf:homepage <http://greggkellogg.net/> .
}
If no terms or CURIEs are present in @property, no triple should be generated from it.
Expected query to return false
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0311</title>
</head>
<body>
<div>
<span class="attribution-line">this photo was taken by
<span property="">Stéphane Corlosquet</span>
</span>
</div>
</body>
</html>
# This is a negative test, there should be no triples generated.
ASK WHERE {
?s ?p ?o .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0311</title>
</head>
<body>
<div>
<span class="attribution-line">this photo was taken by
<span property="">Stéphane Corlosquet</span>
</span>
</div>
</body>
</html>
# This is a negative test, there should be no triples generated.
ASK WHERE {
?s ?p ?o .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0311</title>
</head>
<body>
<div>
<span class="attribution-line">this photo was taken by
<span property="">Stéphane Corlosquet</span>
</span>
</div>
</body>
</html>
# This is a negative test, there should be no triples generated.
ASK WHERE {
?s ?p ?o .
}
In HTML5, when @property is present on an element, a @rel attribute on the same element containing only non-CURIE and non-URI values must be completely ignored.
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0312</title>
</head>
<body>
<p vocab="http://schema.org/" typeof="Person">
The homepage of <a href="http://example.org/" property="homepage" rel="nofollow">Some Body</a>.
</p>
</body>
</html>
ASK WHERE {
?s <http://schema.org/homepage> <http://example.org/> .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0312</title>
</head>
<body>
<p vocab="http://schema.org/" typeof="Person">
The homepage of <a href="http://example.org/" property="homepage" rel="nofollow">Some Body</a>.
</p>
</body>
</html>
ASK WHERE {
?s <http://schema.org/homepage> <http://example.org/> .
}
Setting rdfagraph query parameter to 'processor' generates an rdfa:PrefixRedefinition warning when an initial context prefix is redefined.
Expected query to return true
Test files for HTML5+RDFa 1.1 Processor Graph:
<!DOCTYPE html>
<html>
<head>
<title>Test 0313</title>
</head>
<body prefix="rdfa: http://www.example.org/" resource="http://www.example.com">
<p property="rdfa:erronouslyRedefinedProperty">Foo</p>
</body>
</html>
PREFIX rdfa: <http://www.w3.org/ns/rdfa#>
ASK WHERE { ?s a rdfa:PrefixRedefinition }
In HTML5, an element with @property and @typeof with incomplete triples sets uses typed resource.
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0315</title>
</head>
<body prefix="po: http://example.org/">
<dl>
<dt rel="po:role" class="role">
<span typeof="po:Role" property="rdfs:label">Director</span>
</dt>
</dl>
</body>
</html>
PREFIX po: <http://example.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
ASK WHERE {
?s po:role [ rdfs:label [ a po:Role ] ] .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0315</title>
</head>
<body prefix="po: http://example.org/">
<dl>
<dt rel="po:role" class="role">
<span typeof="po:Role" property="rdfs:label">Director</span>
</dt>
</dl>
</body>
</html>
PREFIX po: <http://example.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
ASK WHERE {
?s po:role [ rdfs:label [ a po:Role ] ] .
}
In HTML5, an element with @property and @typeof with incomplete triples sets uses typed resource (@href variant).
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0316</title>
</head>
<body prefix="po: http://example.org/">
<dl>
<dt rel="po:role" class="role">
<a typeof="po:Role" property="rdfs:label" href="http://example.org/profiles/director.html">Director</a>
</dt>
</dl>
</body>
</html>
PREFIX po: <http://example.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
ASK WHERE {
?s po:role [ rdfs:label <http://example.org/profiles/director.html>] .
<http://example.org/profiles/director.html> a po:Role .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0316</title>
</head>
<body prefix="po: http://example.org/">
<dl>
<dt rel="po:role" class="role">
<a typeof="po:Role" property="rdfs:label" href="http://example.org/profiles/director.html">Director</a>
</dt>
</dl>
</body>
</html>
PREFIX po: <http://example.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
ASK WHERE {
?s po:role [ rdfs:label <http://example.org/profiles/director.html>] .
<http://example.org/profiles/director.html> a po:Role .
}
Using @datatype on the same element as @property forces the object to be a literal value.
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0316</title>
</head>
<body prefix="po: http://purl.org/ontology/po/">
<dl>
<dt rel="po:role" class="role">
<a typeof="po:Role" property="rdfs:label" datatype="" href="http://example.org/profiles/director.html">Director</a>
</dt>
</dl>
</body>
</html>
PREFIX po: <http://purl.org/ontology/po/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
ASK WHERE {
?s po:role <http://example.org/profiles/director.html> .
<http://example.org/profiles/director.html> a po:Role;
rdfs:label "Director" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0316</title>
</head>
<body prefix="po: http://purl.org/ontology/po/">
<dl>
<dt rel="po:role" class="role">
<a typeof="po:Role" property="rdfs:label" datatype="" href="http://example.org/profiles/director.html">Director</a>
</dt>
</dl>
</body>
</html>
PREFIX po: <http://purl.org/ontology/po/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
ASK WHERE {
?s po:role <http://example.org/profiles/director.html> .
<http://example.org/profiles/director.html> a po:Role;
rdfs:label "Director" .
}
If the value (of @vocab) is empty, then the local default vocabulary must be reset to the Host Language defined default.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head></head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/">
<div about ="#me">
<p property="name">Ivan Herman</p>
<meta vocab="" property="prop" content="value"/>
</div>
</div>
</body>
</html>
# Check that foaf:name exists, but there is no statement with "value".
ASK WHERE {
?s <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
OPTIONAL {?s ?p "value" } .
FILTER (! bound (?p))
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head></head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/">
<div about ="#me">
<p property="name">Ivan Herman</p>
<meta vocab="" property="prop" content="value"/>
</div>
</div>
</body>
</html>
# Check that foaf:name exists, but there is no statement with "value".
ASK WHERE {
?s <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
OPTIONAL {?s ?p "value" } .
FILTER (! bound (?p))
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/">
<div about ="#me">
<p property="name">Ivan Herman</p>
<meta vocab="" property="prop" content="value"/>
</div>
</div>
</body>
</html>
# Check that foaf:name exists, but there is no statement with "value".
ASK WHERE {
?s <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
OPTIONAL {?s ?p "value" } .
FILTER (! bound (?p))
}
Relative IRI's used with @prefix do not resolve against the document base; they are not processed in any way. However, the returned document does have a base, so when queried, it will seem to have the same base as the original document.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<base href="http://example.com/"></base>
</head>
<body xml:base="http://example.com/" prefix="pr: relative/iri#" xmlns:xpr="relative/uri#">
<p property="pr:prop xpr:prop">value</p>
</body></html>
# Checks to see that prefixes with relative IRIs are not resolved to the document base
# It is resolved against the document origin, though, when the result is parsed
ASK WHERE {
?s <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/relative/iri#prop> ?o; <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/relative/uri#prop> ?o .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<base href="http://example.com/"></base>
</head>
<body xml:base="http://example.com/" prefix="pr: relative/iri#" xmlns:xpr="relative/uri#">
<p property="pr:prop xpr:prop">value</p>
</body></html>
# Checks to see that prefixes with relative IRIs are not resolved to the document base
# It is resolved against the document origin, though, when the result is parsed
ASK WHERE {
?s <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/relative/iri#prop> ?o; <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/relative/uri#prop> ?o .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="http://example.com/"></base>
</head>
<body xml:base="http://example.com/" prefix="pr: relative/iri#" xmlns:xpr="relative/uri#">
<p property="pr:prop xpr:prop">value</p>
</body></html>
# Checks to see that prefixes with relative IRIs are not resolved to the document base
# It is resolved against the document origin, though, when the result is parsed
ASK WHERE {
?s <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/relative/iri#prop> ?o; <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/relative/uri#prop> ?o .
}
Given @property with @href and @src, @href is used as object and sets new subject.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1">
<head>
<title>Test 0320</title>
</head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/" resource="http://example.com/gregg/#me" typeof="Person">
<a property="homepage" href="http://example.com/gregg/" src="http://example.net/gregg">
<span property="name">Gregg</span>
</a>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://example.com/gregg/#me> a foaf:Person; foaf:name "Gregg" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0320</title>
</head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/" resource="http://example.com/gregg/#me" typeof="Person">
<a property="homepage" href="http://example.com/gregg/" src="http://example.net/gregg">
<span property="name">Gregg</span>
</a>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://example.com/gregg/#me> a foaf:Person; foaf:name "Gregg" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0320</title>
</head>
<body>
<div vocab="http://xmlns.com/foaf/0.1/" resource="http://example.com/gregg/#me" typeof="Person">
<a property="homepage" href="http://example.com/gregg/" src="http://example.net/gregg">
<span property="name">Gregg</span>
</a>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://example.com/gregg/#me> a foaf:Person; foaf:name "Gregg" .
}
Simple reference to an rdfa:Pattern.
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head></head>
<body vocab="http://schema.org/">
<div typeof="Person">
<link property="rdfa:copy" resource="_:a"/>
</div>
<p resource="_:a" typeof="rdfa:Pattern">Name: <span property="name">Amanda</span></p>
</body>
</html>
PREFIX schema: <http://schema.org/>
ASK WHERE {
[ a schema:Person; schema:name "Amanda" ]
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body vocab="http://schema.org/">
<div typeof="Person">
<link property="rdfa:copy" resource="_:a"/>
</div>
<p resource="_:a" typeof="rdfa:Pattern">Name: <span property="name">Amanda</span></p>
</body>
</html>
PREFIX schema: <http://schema.org/>
ASK WHERE {
[ a schema:Person; schema:name "Amanda" ]
}
an rdfa:Pattern can add an additional property value.
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head></head>
<body vocab="http://schema.org/">
<div typeof="Person">
<p>My name is <span property="name">Gregg</span></p>
<link property="rdfa:copy" resource="_:surname"/>
</div>
<p resource="_:surname" typeof="rdfa:Pattern">My name is <span property="name">Kellogg</span></p>
</body>
</html>
PREFIX schema: <http://schema.org/>
ASK WHERE {
[ a schema:Person; schema:name "Gregg", "Kellogg" ]
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body vocab="http://schema.org/">
<div typeof="Person">
<p>My name is <span property="name">Gregg</span></p>
<link property="rdfa:copy" resource="_:surname"/>
</div>
<p resource="_:surname" typeof="rdfa:Pattern">My name is <span property="name">Kellogg</span></p>
</body>
</html>
PREFIX schema: <http://schema.org/>
ASK WHERE {
[ a schema:Person; schema:name "Gregg", "Kellogg" ]
}
Multiple subjects can reference the same rdfa:Pattern.
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head></head>
<body>
<div typeof="schema:Person">
<link property="rdfa:copy" resource="_:a"/>
</div>
<div typeof="foaf:Person">
<link property="rdfa:copy" resource="_:a"/>
</div>
<p resource="_:a" typeof="rdfa:Pattern">Name: <span property="schema:name foaf:name">Amanda</span></p>
</body>
</html>
PREFIX schema: <http://schema.org/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
[ a schema:Person; schema:name "Amanda"; foaf:name "Amanda" ] .
[ a foaf:Person; schema:name "Amanda"; foaf:name "Amanda" ] .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body>
<div typeof="schema:Person">
<link property="rdfa:copy" resource="_:a"/>
</div>
<div typeof="foaf:Person">
<link property="rdfa:copy" resource="_:a"/>
</div>
<p resource="_:a" typeof="rdfa:Pattern">Name: <span property="schema:name foaf:name">Amanda</span></p>
</body>
</html>
PREFIX schema: <http://schema.org/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
[ a schema:Person; schema:name "Amanda"; foaf:name "Amanda" ] .
[ a foaf:Person; schema:name "Amanda"; foaf:name "Amanda" ] .
}
A subject can reference multiple rdfa:Pattern definitions.
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head></head>
<body>
<div typeof="schema:Person">
<link property="rdfa:copy" resource="_:a"/>
<link property="rdfa:copy" resource="_:b"/>
</div>
<p resource="_:a" typeof="rdfa:Pattern">Name: <span property="schema:name">Amanda</span></p>
<p resource="_:b" typeof="rdfa:Pattern"><span property="schema:band">Jazz Band</span></p>
</body>
</html>
PREFIX schema: <http://schema.org/>
ASK WHERE {
[ a schema:Person; schema:name "Amanda"; schema:band "Jazz Band" ]
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body>
<div typeof="schema:Person">
<link property="rdfa:copy" resource="_:a"/>
<link property="rdfa:copy" resource="_:b"/>
</div>
<p resource="_:a" typeof="rdfa:Pattern">Name: <span property="schema:name">Amanda</span></p>
<p resource="_:b" typeof="rdfa:Pattern"><span property="schema:band">Jazz Band</span></p>
</body>
</html>
PREFIX schema: <http://schema.org/>
ASK WHERE {
[ a schema:Person; schema:name "Amanda"; schema:band "Jazz Band" ]
}
An rdfa:Pattern defining a new blank-node object only creates a single node.
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<base href="http://example.org/"/>
</head>
<body vocab="http://schema.org/">
<div resource="#foo" typeof=""><link property="rdfa:copy" resource="_:a"/></div>
<div resource="#bar" typeof=""><link property="rdfa:copy" resource="_:a"/></div>
<div resource="_:a" typeof="rdfa:Pattern">
<div property="schema:refers-to" typeof="">
<span property="schema:name">Amanda</span>
</div>
</div>
</body>
</html>
BASE <http://example.org/>
PREFIX schema: <http://schema.org/>
ASK WHERE {
#foo schema:refers-to _:p .
#bar schema:refers-to _:p .
_:p schema:name "Amanda" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="http://example.org/"/>
</head>
<body vocab="http://schema.org/">
<div resource="#foo" typeof=""><link property="rdfa:copy" resource="_:a"/></div>
<div resource="#bar" typeof=""><link property="rdfa:copy" resource="_:a"/></div>
<div resource="_:a" typeof="rdfa:Pattern">
<div property="schema:refers-to" typeof="">
<span property="schema:name">Amanda</span>
</div>
</div>
</body>
</html>
BASE <http://example.org/>
PREFIX schema: <http://schema.org/>
ASK WHERE {
#foo schema:refers-to _:p .
#bar schema:refers-to _:p .
_:p schema:name "Amanda" .
}
An rdfa:Pattern is removed if referenced, and not otherwise
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<base href="http://example.com/"/>
</head>
<body vocab="http://schema.org/">
<div resource="#referencing" typeof="Person">
<link property="rdfa:copy" resource="#referenced"/>
</div>
<p resource="#referenced" typeof="rdfa:Pattern">Name: <span property="name">Bella</span></p>
<p resource="#unreferenced" typeof="rdfa:Pattern">Name: <span property="name">Lola</span></p>
</body>
</html>
BASE <http://example.com/>
PREFIX rdfa: <http://www.w3.org/ns/rdfa#>
PREFIX schema: <http://schema.org/>
ASK WHERE {
<#referencing> a schema:Person; schema:name "Bella" .
<#unreferenced> a rdfa:Pattern; schema:name "Lola" .
OPTIONAL {
?p a rdfa:Pattern; schema:name "Bella" .
}
FILTER (! bound (?p))
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="http://example.com/"/>
</head>
<body vocab="http://schema.org/">
<div resource="#referencing" typeof="Person">
<link property="rdfa:copy" resource="#referenced"/>
</div>
<p resource="#referenced" typeof="rdfa:Pattern">Name: <span property="name">Bella</span></p>
<p resource="#unreferenced" typeof="rdfa:Pattern">Name: <span property="name">Lola</span></p>
</body>
</html>
BASE <http://example.com/>
PREFIX rdfa: <http://www.w3.org/ns/rdfa#>
PREFIX schema: <http://schema.org/>
ASK WHERE {
<#referencing> a schema:Person; schema:name "Bella" .
<#unreferenced> a rdfa:Pattern; schema:name "Lola" .
OPTIONAL {
?p a rdfa:Pattern; schema:name "Bella" .
}
FILTER (! bound (?p))
}
RDFa reference folding rules are repeated to allow prototypes to be chained.
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<base href="http://example.com/"/>
</head>
<body>
<div typeof="schema:Person">
<link property="rdfa:copy" resource="_:a"/>
<link property="rdfa:copy" resource="_:b"/>
</div>
<p resource="_:a" typeof="rdfa:Pattern">Name: <span property="schema:name">Amanda</span></p>
<div resource="_:b" typeof="rdfa:Pattern">
<div property="schema:band" typeof=" schema:MusicGroup">
<link property="rdfa:copy" resource="_:c"/>
</div>
</div>
<div resource="_:c" typeof="rdfa:Pattern">
<p>Band: <span property="schema:name">Jazz Band</span></p>
<p>Size: <span property="schema:size">12</span> players</p>
</div>
</body>
</html>
PREFIX rdfa: <http://www.w3.org/ns/rdfa#>
PREFIX schema: <http://schema.org/>
ASK WHERE {
?r a schema:Person; schema:name "Amanda" ; schema:band ?b .
?b a schema:MusicGroup; schema:name "Jazz Band"; schema:size "12" .
OPTIONAL {
?p a rdfa:Pattern; .
}
FILTER (! bound (?p))
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="http://example.com/"/>
</head>
<body>
<div typeof="schema:Person">
<link property="rdfa:copy" resource="_:a"/>
<link property="rdfa:copy" resource="_:b"/>
</div>
<p resource="_:a" typeof="rdfa:Pattern">Name: <span property="schema:name">Amanda</span></p>
<div resource="_:b" typeof="rdfa:Pattern">
<div property="schema:band" typeof=" schema:MusicGroup">
<link property="rdfa:copy" resource="_:c"/>
</div>
</div>
<div resource="_:c" typeof="rdfa:Pattern">
<p>Band: <span property="schema:name">Jazz Band</span></p>
<p>Size: <span property="schema:size">12</span> players</p>
</div>
</body>
</html>
PREFIX rdfa: <http://www.w3.org/ns/rdfa#>
PREFIX schema: <http://schema.org/>
ASK WHERE {
?r a schema:Person; schema:name "Amanda" ; schema:band ?b .
?b a schema:MusicGroup; schema:name "Jazz Band"; schema:size "12" .
OPTIONAL {
?p a rdfa:Pattern; .
}
FILTER (! bound (?p))
}
@content overrides the content of the time element.
Expected query to return true
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html>
<head>
<title>Test 0328</title>
</head>
<body>
<p>The value of @content has a higher priority than the content of the element</p>
<time property="rdf:value" content="this should be the value">18 March 2012</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value "this should be the value" ] .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0328</title>
</head>
<body>
<p>The value of @content has a higher priority than the content of the element</p>
<time property="rdf:value" content="this should be the value">18 March 2012</time>
</body>
</html>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ rdf:value "this should be the value" ] .
}
Tests recursive triple generation for nested literals.
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0329</title>
</head>
<body>
<div about="http://example.org/foaf#me" property="foaf:name">
<span property="foaf:givenName">John</span>
<span property="foaf:familyName">Doe</span>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://example.org/foaf#me> foaf:familyName "Doe";
foaf:givenName "John";
foaf:name """
John
Doe
""" .
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0329</title>
</head>
<body>
<div about="http://example.org/foaf#me" property="foaf:name">
<span property="foaf:givenName">John</span>
<span property="foaf:familyName">Doe</span>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://example.org/foaf#me> foaf:familyName "Doe";
foaf:givenName "John";
foaf:name """
John
Doe
""" .
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0329</title>
</head>
<body>
<div about="http://example.org/foaf#me" property="foaf:name">
<span property="foaf:givenName">John</span>
<span property="foaf:familyName">Doe</span>
</div>
</body>
</html>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
ASK WHERE {
<http://example.org/foaf#me> foaf:familyName "Doe";
foaf:givenName "John";
foaf:name """
John
Doe
""" .
}
Tests @datatype is used instead of @lang when @datatype is not empty (e.g. annotating a date).
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0330</title>
</head>
<body lang="en">
<div property="dc:date" datatype="xsd:date">2010-11-12</div>
</body>
</html>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ dcterms:date "2010-11-12"^^xsd:date ]
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0330</title>
</head>
<body lang="en">
<div property="dc:date" datatype="xsd:date">2010-11-12</div>
</body>
</html>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ dcterms:date "2010-11-12"^^xsd:date ]
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0330</title>
</head>
<body lang="en">
<div property="dc:date" datatype="xsd:date">2010-11-12</div>
</body>
</html>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK WHERE {
[ dcterms:date "2010-11-12"^^xsd:date ]
}
Tests @datatype is used instead of @lang when @datatype is not empty, and @content is used for the value (e.g. annotating a language with human and machine readable text).
Expected query to return true
Test files for HTML4+RDFa 1.1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/MarkUp/DTD/html401-rdfa11-1.dtd">
<html version="HTML+RDFa 1.1" xmlns:dcterms="http://purl.org/dc/terms/">
<head>
<title>Test 0331</title>
</head>
<body lang="en">
<div property="dcterms:language" datatype="dcterms:RFC5646" content="af">Afrikaans</div>
</body>
</html>
PREFIX dcterms: <http://purl.org/dc/terms/>
ASK WHERE {
[ dcterms:language "af"^^dcterms:RFC5646 ]
}
Test files for HTML5+RDFa 1.1:
<!DOCTYPE html>
<html xmlns:dcterms="http://purl.org/dc/terms/">
<head>
<title>Test 0331</title>
</head>
<body lang="en">
<div property="dcterms:language" datatype="dcterms:RFC5646" content="af">Afrikaans</div>
</body>
</html>
PREFIX dcterms: <http://purl.org/dc/terms/>
ASK WHERE {
[ dcterms:language "af"^^dcterms:RFC5646 ]
}
Test files for XHTML5+RDFa 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dcterms="http://purl.org/dc/terms/">
<head>
<title>Test 0331</title>
</head>
<body lang="en">
<div property="dcterms:language" datatype="dcterms:RFC5646" content="af">Afrikaans</div>
</body>
</html>
PREFIX dcterms: <http://purl.org/dc/terms/>
ASK WHERE {
[ dcterms:language "af"^^dcterms:RFC5646 ]
}