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

Test Manifests

HTML4+RDFa 1.1

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.

Test clj-rdfa EasyRdf Green Turtle librdfa pyRdfa RDF-RDFa-Parser RDF::RDFa Semargl
Test 0001: Predicate establishment with @property PASS PASS PASS PASS PASS PASS PASS PASS
Test 0006: @rel and @rev PASS PASS PASS PASS PASS PASS PASS PASS
Test 0007: @rel, @rev, @property, @content PASS PASS PASS PASS PASS PASS PASS PASS
Test 0008: empty string @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0009: @rev PASS PASS PASS PASS PASS PASS PASS PASS
Test 0010: @rel, @rev, @href PASS PASS PASS PASS PASS PASS PASS PASS
Test 0014: @datatype, xsd:integer PASS PASS PASS PASS PASS PASS PASS PASS
Test 0015: meta and link PASS PASS PASS PASS PASS PASS PASS PASS
Test 0017: Related blanknodes PASS PASS PASS PASS PASS PASS PASS PASS
Test 0018: @rel for predicate PASS PASS PASS PASS PASS PASS PASS PASS
Test 0019: @about for subject PASS PASS PASS PASS PASS PASS PASS PASS
Test 0020: Inheriting @about for subject PASS PASS PASS PASS PASS PASS PASS PASS
Test 0021: Subject inheritance with no @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0023: @id does not generate subjects PASS PASS PASS PASS PASS PASS PASS PASS
Test 0025: simple chaining test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0026: @content PASS PASS PASS PASS PASS PASS PASS PASS
Test 0027: @content, ignore element content PASS PASS PASS PASS PASS PASS PASS PASS
Test 0029: markup stripping with @datatype PASS PASS PASS PASS PASS PASS PASS PASS
Test 0030: omitted @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0031: simple @resource PASS PASS PASS PASS PASS PASS PASS PASS
Test 0032: @resource overrides @href PASS PASS PASS PASS PASS PASS PASS PASS
Test 0033: simple chaining test with bNode PASS PASS PASS PASS PASS PASS PASS PASS
Test 0034: simple img[@src] test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0035: @src/@href test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0036: @src/@resource test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0037: @src/@href/@resource test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0038: @rev - img[@src] test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0039: @rev - @src/@href test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0041: @rev - @src/@href/@resource test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0048: @typeof with @about and @rel present, no @resource PASS PASS PASS PASS PASS PASS PASS PASS
Test 0049: @typeof with @about, no @rel or @resource PASS PASS PASS PASS PASS PASS PASS PASS
Test 0050: @typeof without anything else PASS PASS PASS PASS PASS PASS PASS PASS
Test 0051: @typeof with a single @property PASS PASS PASS PASS PASS PASS PASS PASS
Test 0052: @typeof with @resource and nothing else PASS PASS PASS PASS PASS PASS PASS PASS
Test 0053: @typeof with @resource and nothing else, with a subelement PASS PASS PASS PASS PASS PASS PASS PASS
Test 0054: multiple @property PASS PASS PASS PASS PASS PASS PASS PASS
Test 0055: multiple @rel PASS PASS PASS PASS PASS PASS PASS PASS
Test 0056: @typeof applies to @about on same element with hanging rel PASS PASS PASS PASS PASS PASS PASS PASS
Test 0057: hanging @rel creates multiple triples PASS PASS PASS PASS PASS PASS PASS PASS
Test 0059: multiple hanging @rels with multiple children PASS PASS PASS PASS PASS PASS PASS PASS
Test 0060: UTF-8 conformance PASS PASS PASS PASS PASS FAIL PASS PASS
Test 0063: @rel in head using reserved XHTML value and empty-prefix CURIE syntax PASS PASS PASS PASS PASS PASS PASS PASS
Test 0064: @about with safe CURIE PASS PASS PASS PASS PASS PASS PASS PASS
Test 0065: @rel with safe CURIE PASS PASS PASS PASS PASS PASS PASS PASS
Test 0066: @about with @typeof in the head PASS PASS PASS PASS PASS PASS PASS PASS
Test 0067: @property in the head PASS PASS PASS PASS PASS PASS PASS PASS
Test 0068: Relative URI in @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0069: Relative URI in @href PASS PASS PASS PASS PASS PASS PASS PASS
Test 0070: Relative URI in @resource PASS PASS PASS PASS PASS PASS PASS PASS
Test 0071: No explicit @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0072: Relative URI in @about (with XHTML base in head) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0073: Relative URI in @resource (with XHTML base in head) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0074: Relative URI in @href (with XHTML base in head) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0075: Reserved word 'license' in @rel with no explicit @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0079: @resource and @href in completing incomplete triples PASS PASS PASS PASS PASS PASS PASS PASS
Test 0080: @about overrides @resource in incomplete triples PASS PASS PASS PASS PASS PASS PASS PASS
Test 0083: multiple ways of handling incomplete triples (merged) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0084: multiple ways of handling incomplete triples, this time with both @rel and @rev PASS PASS PASS PASS PASS PASS PASS PASS
Test 0085: @resource and @href in completing incomplete triples PASS PASS PASS PASS PASS PASS PASS PASS
Test 0087: All reserved XHTML @rel values (with :xxx) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0088: Interpretation of the CURIE "_:" PASS PASS PASS PASS PASS PASS PASS PASS
Test 0089: @src sets a new subject (@typeof) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0091: Non-reserved, un-prefixed CURIE in @property PASS PASS PASS PASS PASS PASS PASS PASS
Test 0093: Tests XMLLiteral content with explicit @datatype (user-data-typed literal) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0099: Preservation of white space in literals PASS PASS PASS PASS PASS PASS PASS PASS
Test 0104: rdf:value PASS PASS PASS PASS PASS PASS PASS PASS
Test 0106: chaining with empty value in inner @rel PASS PASS PASS PASS PASS PASS PASS PASS
Test 0107: no garbage collecting bnodes PASS PASS PASS PASS PASS PASS PASS PASS
Test 0109: Tests to ensure @xml:base is ignored PASS PASS PASS PASS PASS PASS PASS PASS
Test 0110: bNode generated even though no nested @about exists PASS PASS PASS PASS PASS PASS PASS PASS
Test 0111: two bNodes generated after three levels of nesting PASS PASS PASS PASS PASS PASS PASS PASS
Test 0112: plain literal with datatype="" PASS PASS PASS PASS PASS PASS PASS PASS
Test 0114: Relative URI dot-segment removal PASS PASS PASS PASS PASS PASS PASS PASS
Test 0115: XML Entities must be supported by RDFa parser PASS PASS PASS PASS PASS PASS PASS PASS
Test 0117: Fragment identifiers stripped from BASE PASS PASS PASS PASS PASS PASS PASS PASS
Test 0118: empty string "" is not equivalent to NULL - @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0119: "[prefix:]" CURIE format is valid PASS PASS PASS PASS PASS PASS PASS PASS
Test 0120: "[:]" CURIE format is valid PASS PASS PASS PASS PASS PASS PASS PASS
Test 0122: resource="[]" does not set the object PASS PASS PASS PASS PASS PASS PASS PASS
Test 0126: Multiple @typeof values PASS PASS PASS PASS PASS PASS PASS PASS
Test 0131: Whitespace alternatives in attributes PASS PASS PASS PASS PASS PASS PASS PASS
Test 0134: Uppercase reserved words PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0140: Blank nodes identifiers are not allowed as predicates PASS PASS PASS PASS PASS FAIL PASS PASS
Test 0147: xmlns prefix 'xmlzzz' (reserved) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0174: Support single character prefix in CURIEs PASS PASS PASS PASS PASS PASS PASS PASS
Test 0175: IRI for @property is allowed PASS PASS PASS PASS PASS PASS PASS PASS
Test 0176: IRI for @rel and @rev is allowed PASS PASS PASS PASS PASS PASS PASS PASS
Test 0177: Test @prefix PASS PASS PASS PASS PASS PASS PASS PASS
Test 0178: Test @prefix with multiple mappings PASS PASS PASS PASS PASS PASS PASS PASS
Test 0179: Test @prefix vs @xmlns priority PASS PASS PASS PASS PASS PASS PASS PASS
Test 0180: Test @prefix with empty mapping PASS PASS PASS PASS PASS PASS PASS PASS
Test 0181: Test default XHTML vocabulary PASS PASS PASS PASS PASS PASS PASS PASS
Test 0182: Test prefix locality PASS PASS PASS PASS PASS PASS PASS PASS
Test 0183: Test @xmlns redefines @prefix PASS PASS PASS PASS PASS PASS PASS PASS
Test 0186: @vocab after subject declaration PASS PASS PASS PASS PASS PASS PASS PASS
Test 0187: @vocab redefinition PASS PASS PASS PASS PASS PASS PASS PASS
Test 0188: @vocab only affects predicates PASS PASS PASS PASS PASS PASS PASS PASS
Test 0189: @vocab overrides default term PASS PASS PASS PASS PASS PASS PASS PASS
Test 0190: Test term case insensitivity PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0196: Test process explicit XMLLiteral PASS PASS PASS PASS PASS PASS PASS PASS
Test 0197: Test TERMorCURIEorAbsURI requires an absolute URI PASS PASS PASS PASS PASS PASS PASS PASS
Test 0206: Usage of Initial Context PASS PASS PASS PASS PASS PASS PASS PASS
Test 0207: Vevent using @typeof PASS PASS PASS PASS PASS PASS PASS PASS
Test 0213: Datatype generation for a literal with XML content, version 1.1 PASS PASS PASS PASS PASS PASS PASS PASS
Test 0214: Root element has implicit @about="" PASS PASS PASS PASS PASS PASS PASS PASS
Test 0216: Proper character encoding detection in spite of large headers PASS PASS PASS PASS PASS PASS PASS PASS
Test 0217: @vocab causes rdfa:usesVocabulary triple to be added PASS PASS PASS PASS PASS PASS PASS PASS
Test 0218: @inlist to create empty list PASS PASS PASS PASS PASS PASS PASS PASS
Test 0219: @inlist with literal PASS PASS PASS PASS PASS PASS PASS PASS
Test 0220: @inlist with IRI PASS PASS PASS PASS PASS PASS PASS PASS
Test 0221: @inlist with hetrogenious membership PASS PASS PASS PASS PASS PASS PASS PASS
Test 0222: @inlist with multi-level elements PASS PASS PASS PASS PASS PASS PASS PASS
Test 0223: @inlist with non-list property PASS PASS PASS PASS PASS PASS PASS PASS
Test 0224: @inlist hanging @rel PASS FAIL PASS PASS PASS PASS PASS PASS
Test 0225: @inlist on different elements with same subject PASS PASS PASS PASS PASS PASS PASS PASS
Test 0226: confusion between multiple implicit collections (resource) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0227: confusion between multiple implicit collections (about) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0228: 1.1 alternate for test 0040: @rev - @src/@resource test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0229: img[@src] test with omitted @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0230: @src does not set a new subject (@rel/@href) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0231: Set image license information PASS PASS PASS PASS PASS PASS PASS PASS
Test 0232: @typeof with @rel present, no @href, @resource, or @about (1.1 behavior of 0046); PASS PASS PASS PASS PASS PASS PASS PASS
Test 0233: @typeof with @rel and @resource present, no @about (1.1 behavior of 0047) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0234: All defined HTML link relation values PASS PASS PASS PASS PASS PASS PASS PASS
Test 0246: hanging @rel creates multiple triples, @typeof permutation; RDFa 1.1 version PASS PASS PASS PASS PASS PASS PASS PASS
Test 0247: Multiple incomplete triples, RDFa 1.1version PASS PASS PASS PASS PASS PASS PASS PASS
Test 0248: multiple ways of handling incomplete triples (with @rev); RDFa 1.1 version PASS PASS PASS PASS PASS PASS PASS PASS
Test 0249: multiple ways of handling incomplete triples (with @rel and @rev); RDFa 1.1 version PASS PASS PASS PASS PASS PASS PASS PASS
Test 0250: Checking the right behaviour of @typeof with @about, in presence of @property PASS PASS PASS PASS PASS PASS PASS PASS
Test 0251: lang PASS PASS PASS PASS PASS PASS PASS PASS
Test 0252: lang inheritance PASS PASS PASS PASS PASS PASS PASS PASS
Test 0253: plain literal with datatype="" and lang preservation PASS PASS PASS PASS PASS FAIL PASS PASS
Test 0254: @datatype="" generates plain literal in presence of child nodes PASS PASS PASS PASS PASS PASS PASS PASS
Test 0255: lang="" clears language setting PASS PASS PASS PASS PASS PASS PASS PASS
Test 0257: element with @property and no child nodes generates empty plain literal (HTML5 version of 0113) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0258: The underscore character is not allowed as a prefix or in xmlns PASS PASS PASS PASS PASS PASS PASS PASS
Test 0259: XML+RDFa Initial Context PASS PASS PASS PASS PASS FAIL PASS PASS
Test 0261: White space preservation in XMLLiteral PASS PASS PASS PASS PASS PASS PASS PASS
Test 0262: Predicate establishment with @property, with white spaces before and after the attribute value PASS PASS PASS PASS PASS PASS PASS PASS
Test 0263: @property appearing on the html element yields the base as the subject PASS PASS PASS PASS PASS PASS PASS PASS
Test 0264: @property appearing on the head element gets the subject from , ie, parent PASS PASS PASS PASS PASS PASS PASS PASS
Test 0265: @property appearing on the head element gets the subject from , ie, parent PASS PASS PASS PASS PASS PASS PASS PASS
Test 0266: @property without @content or @datatype, typed object set by @href and @typeof PASS PASS PASS PASS PASS PASS PASS PASS
Test 0267: @property without @content or @datatype, typed object set by @resource and @typeof PASS PASS PASS PASS PASS PASS PASS PASS
Test 0268: @property without @content or @datatype, typed object set by @src and @typeof PASS PASS PASS PASS PASS PASS PASS PASS
Test 0269: Use of @property in HEAD without explicit subject PASS PASS PASS PASS PASS PASS PASS PASS
Test 0271: Use of @property in HEAD with explicit parent subject via @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0289: @href becomes subject when @property and @content are present PASS PASS PASS PASS PASS PASS PASS PASS
Test 0290: @href becomes subject when @property and @datatype are present PASS PASS PASS PASS PASS PASS PASS PASS
Test 0291: @href as subject overridden by @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0292: @about overriding @href as subject is used as parent resource PASS PASS PASS PASS PASS PASS PASS PASS
Test 0293: Testing the ':' character usage in a CURIE PASS PASS PASS PASS PASS PASS PASS PASS
Test 0295: Benchmark test PASS PASS PASS FAIL PASS FAIL PASS PASS
Test 0296: @property does set parent object without @typeof PASS PASS PASS PASS PASS PASS PASS PASS
Test 0297: @about=[] with @typeof does not create a new subject PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0298: @about=[] with @typeof does not create a new object PASS PASS PASS PASS PASS PASS PASS PASS
Test 0299: @resource=[] with @href or @src uses @href or @src (@rel) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0300: @resource=[] with @href or @src uses @href or @src (@property) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0301: @property with @typeof creates a typed_resource for chaining PASS PASS PASS PASS PASS PASS PASS PASS
Test 0302: @typeof with different content types PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0303: For HTML+RDFa 1.1, remove term elements of @rel/@rev when on same element as @property FAIL FAIL PASS FAIL PASS FAIL PASS PASS
Test 0311: Ensure no triples are generated when @property is empty PASS PASS PASS PASS PASS PASS PASS PASS
Test 0318: Setting @vocab to empty strings removes default vocabulary PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0319: Relative @profile PASS PASS PASS FAIL PASS FAIL PASS PASS
Test 0320: @property binds to @href PASS PASS PASS PASS PASS PASS PASS PASS
Test 0329: Recursive triple generation PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0330: @datatype overrides inherited @lang PASS PASS PASS PASS PASS PASS PASS PASS
Test 0331: @datatype overrides inherited @lang, with @content PASS PASS PASS PASS PASS PASS PASS PASS
Percentage passed out of 168 Tests 99.4% 98.8% 100.0% 94.6% 100.0% 95.8% 100.0% 100.0%

HTML5+RDFa 1.1

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.

Test clj-rdfa EasyRdf Green Turtle librdfa pyRdfa RDF-RDFa-Parser RDF::RDFa Semargl
Test 0001: Predicate establishment with @property PASS PASS PASS PASS PASS PASS PASS PASS
Test 0006: @rel and @rev PASS PASS PASS PASS PASS PASS PASS PASS
Test 0007: @rel, @rev, @property, @content PASS PASS PASS PASS PASS PASS PASS PASS
Test 0008: empty string @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0009: @rev PASS PASS PASS PASS PASS PASS PASS PASS
Test 0010: @rel, @rev, @href PASS PASS PASS PASS PASS PASS PASS PASS
Test 0014: @datatype, xsd:integer PASS PASS PASS PASS PASS PASS PASS PASS
Test 0015: meta and link PASS PASS PASS PASS PASS PASS PASS PASS
Test 0017: Related blanknodes PASS PASS PASS PASS PASS PASS PASS PASS
Test 0018: @rel for predicate PASS PASS PASS PASS PASS PASS PASS PASS
Test 0019: @about for subject PASS PASS PASS PASS PASS PASS PASS PASS
Test 0020: Inheriting @about for subject PASS PASS PASS PASS PASS PASS PASS PASS
Test 0021: Subject inheritance with no @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0023: @id does not generate subjects PASS PASS PASS PASS PASS PASS PASS PASS
Test 0025: simple chaining test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0026: @content PASS PASS PASS PASS PASS PASS PASS PASS
Test 0027: @content, ignore element content PASS PASS PASS PASS PASS PASS PASS PASS
Test 0029: markup stripping with @datatype PASS PASS PASS PASS PASS PASS PASS PASS
Test 0030: omitted @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0031: simple @resource PASS PASS PASS PASS PASS PASS PASS PASS
Test 0032: @resource overrides @href PASS PASS PASS PASS PASS PASS PASS PASS
Test 0033: simple chaining test with bNode PASS PASS PASS PASS PASS PASS PASS PASS
Test 0034: simple img[@src] test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0035: @src/@href test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0036: @src/@resource test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0037: @src/@href/@resource test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0038: @rev - img[@src] test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0039: @rev - @src/@href test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0041: @rev - @src/@href/@resource test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0048: @typeof with @about and @rel present, no @resource PASS PASS PASS PASS PASS PASS PASS PASS
Test 0049: @typeof with @about, no @rel or @resource PASS PASS PASS PASS PASS PASS PASS PASS
Test 0050: @typeof without anything else PASS PASS PASS PASS PASS PASS PASS PASS
Test 0051: @typeof with a single @property PASS PASS PASS PASS PASS PASS PASS PASS
Test 0052: @typeof with @resource and nothing else PASS PASS PASS PASS PASS PASS PASS PASS
Test 0053: @typeof with @resource and nothing else, with a subelement PASS PASS PASS PASS PASS PASS PASS PASS
Test 0054: multiple @property PASS PASS PASS PASS PASS PASS PASS PASS
Test 0055: multiple @rel PASS PASS PASS PASS PASS PASS PASS PASS
Test 0056: @typeof applies to @about on same element with hanging rel PASS PASS PASS PASS PASS PASS PASS PASS
Test 0057: hanging @rel creates multiple triples PASS PASS PASS PASS PASS PASS PASS PASS
Test 0059: multiple hanging @rels with multiple children PASS PASS PASS PASS PASS PASS PASS PASS
Test 0060: UTF-8 conformance PASS PASS PASS PASS PASS FAIL PASS PASS
Test 0063: @rel in head using reserved XHTML value and empty-prefix CURIE syntax PASS PASS PASS PASS PASS PASS PASS PASS
Test 0064: @about with safe CURIE PASS PASS PASS PASS PASS PASS PASS PASS
Test 0065: @rel with safe CURIE PASS PASS PASS PASS PASS PASS PASS PASS
Test 0066: @about with @typeof in the head PASS PASS PASS PASS PASS PASS PASS PASS
Test 0067: @property in the head PASS PASS PASS PASS PASS PASS PASS PASS
Test 0068: Relative URI in @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0069: Relative URI in @href PASS PASS PASS PASS PASS PASS PASS PASS
Test 0070: Relative URI in @resource PASS PASS PASS PASS PASS PASS PASS PASS
Test 0071: No explicit @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0072: Relative URI in @about (with XHTML base in head) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0073: Relative URI in @resource (with XHTML base in head) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0074: Relative URI in @href (with XHTML base in head) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0075: Reserved word 'license' in @rel with no explicit @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0079: @resource and @href in completing incomplete triples PASS PASS PASS PASS PASS PASS PASS PASS
Test 0080: @about overrides @resource in incomplete triples PASS PASS PASS PASS PASS PASS PASS PASS
Test 0083: multiple ways of handling incomplete triples (merged) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0084: multiple ways of handling incomplete triples, this time with both @rel and @rev PASS PASS PASS PASS PASS PASS PASS PASS
Test 0085: @resource and @href in completing incomplete triples PASS PASS PASS PASS PASS PASS PASS PASS
Test 0087: All reserved XHTML @rel values (with :xxx) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0088: Interpretation of the CURIE "_:" PASS PASS PASS PASS PASS PASS PASS PASS
Test 0089: @src sets a new subject (@typeof) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0091: Non-reserved, un-prefixed CURIE in @property PASS PASS PASS PASS PASS PASS PASS PASS
Test 0093: Tests XMLLiteral content with explicit @datatype (user-data-typed literal) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0099: Preservation of white space in literals PASS PASS PASS PASS PASS PASS PASS PASS
Test 0104: rdf:value PASS PASS PASS PASS PASS PASS PASS PASS
Test 0106: chaining with empty value in inner @rel PASS PASS PASS PASS PASS PASS PASS PASS
Test 0107: no garbage collecting bnodes PASS PASS PASS PASS PASS PASS PASS PASS
Test 0109: Tests to ensure @xml:base is ignored PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0110: bNode generated even though no nested @about exists PASS PASS PASS PASS PASS PASS PASS PASS
Test 0111: two bNodes generated after three levels of nesting PASS PASS PASS PASS PASS PASS PASS PASS
Test 0112: plain literal with datatype="" PASS PASS PASS PASS PASS PASS PASS PASS
Test 0114: Relative URI dot-segment removal PASS PASS PASS PASS PASS PASS PASS PASS
Test 0115: XML Entities must be supported by RDFa parser PASS PASS PASS PASS PASS PASS PASS PASS
Test 0117: Fragment identifiers stripped from BASE PASS PASS PASS PASS PASS PASS PASS PASS
Test 0118: empty string "" is not equivalent to NULL - @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0119: "[prefix:]" CURIE format is valid PASS PASS PASS PASS PASS PASS PASS PASS
Test 0120: "[:]" CURIE format is valid PASS PASS PASS PASS PASS PASS PASS PASS
Test 0122: resource="[]" does not set the object PASS PASS PASS PASS PASS PASS PASS PASS
Test 0126: Multiple @typeof values PASS PASS PASS PASS PASS PASS PASS PASS
Test 0131: Whitespace alternatives in attributes PASS PASS PASS PASS PASS PASS PASS PASS
Test 0134: Uppercase reserved words PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0140: Blank nodes identifiers are not allowed as predicates PASS PASS PASS PASS PASS FAIL PASS PASS
Test 0147: xmlns prefix 'xmlzzz' (reserved) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0174: Support single character prefix in CURIEs PASS PASS PASS PASS PASS PASS PASS PASS
Test 0175: IRI for @property is allowed PASS PASS PASS PASS PASS PASS PASS PASS
Test 0176: IRI for @rel and @rev is allowed PASS PASS PASS PASS PASS PASS PASS PASS
Test 0177: Test @prefix PASS PASS PASS PASS PASS PASS PASS PASS
Test 0178: Test @prefix with multiple mappings PASS PASS PASS PASS PASS PASS PASS PASS
Test 0179: Test @prefix vs @xmlns priority PASS PASS PASS PASS PASS PASS PASS PASS
Test 0180: Test @prefix with empty mapping PASS PASS PASS PASS PASS PASS PASS PASS
Test 0181: Test default XHTML vocabulary PASS PASS PASS PASS PASS PASS PASS PASS
Test 0182: Test prefix locality PASS PASS PASS PASS PASS PASS PASS PASS
Test 0183: Test @xmlns redefines @prefix PASS PASS PASS PASS PASS PASS PASS PASS
Test 0186: @vocab after subject declaration PASS PASS PASS PASS PASS PASS PASS PASS
Test 0187: @vocab redefinition PASS PASS PASS PASS PASS PASS PASS PASS
Test 0188: @vocab only affects predicates PASS PASS PASS PASS PASS PASS PASS PASS
Test 0189: @vocab overrides default term PASS PASS PASS PASS PASS PASS PASS PASS
Test 0190: Test term case insensitivity PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0196: Test process explicit XMLLiteral PASS PASS PASS PASS PASS PASS PASS PASS
Test 0197: Test TERMorCURIEorAbsURI requires an absolute URI PASS PASS PASS PASS PASS PASS PASS PASS
Test 0206: Usage of Initial Context PASS PASS PASS PASS PASS PASS PASS PASS
Test 0207: Vevent using @typeof PASS PASS PASS PASS PASS PASS PASS PASS
Test 0213: Datatype generation for a literal with XML content, version 1.1 PASS PASS PASS PASS PASS PASS PASS PASS
Test 0214: Root element has implicit @about="" PASS PASS PASS PASS PASS PASS PASS PASS
Test 0216: Proper character encoding detection in spite of large headers PASS PASS PASS PASS PASS PASS PASS PASS
Test 0217: @vocab causes rdfa:usesVocabulary triple to be added PASS PASS PASS PASS PASS PASS PASS PASS
Test 0218: @inlist to create empty list PASS PASS PASS PASS PASS PASS PASS PASS
Test 0219: @inlist with literal PASS PASS PASS PASS PASS PASS PASS PASS
Test 0220: @inlist with IRI PASS PASS PASS PASS PASS PASS PASS PASS
Test 0221: @inlist with hetrogenious membership PASS PASS PASS PASS PASS PASS PASS PASS
Test 0222: @inlist with multi-level elements PASS PASS PASS PASS PASS PASS PASS PASS
Test 0223: @inlist with non-list property PASS PASS PASS PASS PASS PASS PASS PASS
Test 0224: @inlist hanging @rel PASS FAIL PASS PASS PASS PASS PASS PASS
Test 0225: @inlist on different elements with same subject PASS PASS PASS PASS PASS PASS PASS PASS
Test 0226: confusion between multiple implicit collections (resource) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0227: confusion between multiple implicit collections (about) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0228: 1.1 alternate for test 0040: @rev - @src/@resource test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0229: img[@src] test with omitted @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0230: @src does not set a new subject (@rel/@href) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0231: Set image license information PASS PASS PASS PASS PASS PASS PASS PASS
Test 0232: @typeof with @rel present, no @href, @resource, or @about (1.1 behavior of 0046); PASS PASS PASS PASS PASS PASS PASS PASS
Test 0233: @typeof with @rel and @resource present, no @about (1.1 behavior of 0047) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0234: All defined HTML link relation values PASS PASS PASS PASS PASS PASS PASS PASS
Test 0246: hanging @rel creates multiple triples, @typeof permutation; RDFa 1.1 version PASS PASS PASS PASS PASS PASS PASS PASS
Test 0247: Multiple incomplete triples, RDFa 1.1version PASS PASS PASS PASS PASS PASS PASS PASS
Test 0248: multiple ways of handling incomplete triples (with @rev); RDFa 1.1 version PASS PASS PASS PASS PASS PASS PASS PASS
Test 0249: multiple ways of handling incomplete triples (with @rel and @rev); RDFa 1.1 version PASS PASS PASS PASS PASS PASS PASS PASS
Test 0250: Checking the right behaviour of @typeof with @about, in presence of @property PASS PASS PASS PASS PASS PASS PASS PASS
Test 0251: lang PASS PASS PASS PASS PASS PASS PASS PASS
Test 0252: lang inheritance PASS PASS PASS PASS PASS PASS PASS PASS
Test 0253: plain literal with datatype="" and lang preservation PASS PASS PASS PASS PASS FAIL PASS PASS
Test 0254: @datatype="" generates plain literal in presence of child nodes PASS PASS PASS PASS PASS PASS PASS PASS
Test 0255: lang="" clears language setting PASS PASS PASS PASS PASS PASS PASS PASS
Test 0257: element with @property and no child nodes generates empty plain literal (HTML5 version of 0113) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0258: The underscore character is not allowed as a prefix or in xmlns PASS PASS PASS PASS PASS PASS PASS PASS
Test 0259: XML+RDFa Initial Context PASS PASS PASS PASS PASS FAIL PASS PASS
Test 0261: White space preservation in XMLLiteral PASS PASS PASS PASS PASS PASS PASS PASS
Test 0262: Predicate establishment with @property, with white spaces before and after the attribute value PASS PASS PASS PASS PASS PASS PASS PASS
Test 0263: @property appearing on the html element yields the base as the subject PASS PASS PASS PASS PASS PASS PASS PASS
Test 0264: @property appearing on the head element gets the subject from , ie, parent PASS PASS PASS PASS PASS PASS PASS PASS
Test 0265: @property appearing on the head element gets the subject from , ie, parent PASS PASS PASS PASS PASS PASS PASS PASS
Test 0266: @property without @content or @datatype, typed object set by @href and @typeof PASS PASS PASS PASS PASS PASS PASS PASS
Test 0267: @property without @content or @datatype, typed object set by @resource and @typeof PASS PASS PASS PASS PASS PASS PASS PASS
Test 0268: @property without @content or @datatype, typed object set by @src and @typeof PASS PASS PASS PASS PASS PASS PASS PASS
Test 0269: Use of @property in HEAD without explicit subject PASS PASS PASS PASS PASS PASS PASS PASS
Test 0271: Use of @property in HEAD with explicit parent subject via @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0272: time element with @datetime an xsd:date PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0273: time element with @datetime an xsd:time PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0274: time element with @datetime an xsd:dateTime PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0275: time element with value an xsd:date PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0276: time element with value an xsd:time PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0277: time element with value an xsd:dateTime PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0278: @content overrides @datetime FAIL FAIL PASS PASS PASS FAIL PASS PASS
Test 0279: @datatype used with @datetime overrides default datatype PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0280: time element with @datetime an xsd:duration PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0281: time element with @datetime an xsd:gYear PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0282: time element with @datetime an xsd:gYearMonth PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0283: time element with @datetime an invalid datatype generates plain literal PASS PASS PASS PASS PASS PASS PASS PASS
Test 0284: time element not matching datatype but with explicit @datatype PASS PASS PASS PASS PASS PASS PASS PASS
Test 0285: time element with @datetime an invalid datatype and in scope @lang generates plain literal with language PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0287: time element with @datetime an xsd:dateTime with TZ offset PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0289: @href becomes subject when @property and @content are present PASS PASS PASS PASS PASS PASS PASS PASS
Test 0290: @href becomes subject when @property and @datatype are present PASS PASS PASS PASS PASS PASS PASS PASS
Test 0291: @href as subject overridden by @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0292: @about overriding @href as subject is used as parent resource PASS PASS PASS PASS PASS PASS PASS PASS
Test 0293: Testing the ':' character usage in a CURIE PASS PASS PASS PASS PASS PASS PASS PASS
Test 0295: Benchmark test PASS PASS PASS FAIL PASS FAIL PASS PASS
Test 0296: @property does set parent object without @typeof PASS PASS PASS PASS PASS PASS PASS PASS
Test 0297: @about=[] with @typeof does not create a new subject PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0298: @about=[] with @typeof does not create a new object PASS PASS PASS PASS PASS PASS PASS PASS
Test 0299: @resource=[] with @href or @src uses @href or @src (@rel) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0300: @resource=[] with @href or @src uses @href or @src (@property) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0301: @property with @typeof creates a typed_resource for chaining PASS PASS PASS PASS PASS PASS PASS PASS
Test 0302: @typeof with different content types PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0303: For HTML+RDFa 1.1, remove term elements of @rel/@rev when on same element as @property FAIL FAIL PASS FAIL PASS FAIL PASS PASS
Test 0311: Ensure no triples are generated when @property is empty PASS PASS PASS PASS PASS PASS PASS PASS
Test 0312: Mute plain @rel if @property is present FAIL PASS PASS FAIL PASS FAIL PASS PASS
Test 0315: @property and @typeof with incomplete triples PASS PASS PASS PASS PASS PASS PASS PASS
Test 0316: @property and @typeof with incomplete triples (@href variant) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0317: @datatype inhibits new @property behavior PASS PASS PASS PASS PASS PASS PASS PASS
Test 0318: Setting @vocab to empty strings removes default vocabulary PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0319: Relative @profile PASS PASS PASS FAIL PASS FAIL PASS PASS
Test 0320: @property binds to @href PASS PASS PASS PASS PASS PASS PASS PASS
Test 0321: rdfa:copy to rdfa:Pattern FAIL FAIL PASS FAIL PASS FAIL PASS PASS
Test 0322: rdfa:copy for additional property value FAIL FAIL PASS FAIL PASS FAIL PASS PASS
Test 0323: Multiple references to rdfa:Pattern FAIL FAIL PASS FAIL PASS FAIL PASS PASS
Test 0324: Multiple references to rdfa:Pattern FAIL FAIL PASS FAIL PASS FAIL PASS PASS
Test 0325: Multiple references to rdfa:Pattern creating a resource PASS PASS PASS PASS PASS PASS PASS PASS
Test 0326: rdfa:Pattern removed only if referenced FAIL FAIL PASS FAIL PASS FAIL PASS PASS
Test 0327: rdfa:Pattern chaining FAIL FAIL PASS FAIL PASS FAIL PASS PASS
Test 0328: @content overrides the content of the time element. FAIL PASS PASS PASS PASS FAIL PASS PASS
Test 0329: Recursive triple generation PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0330: @datatype overrides inherited @lang PASS PASS PASS PASS PASS PASS PASS PASS
Test 0331: @datatype overrides inherited @lang, with @content PASS PASS PASS PASS PASS PASS PASS PASS
Percentage passed out of 195 Tests 94.9% 95.4% 100.0% 85.1% 100.0% 91.8% 100.0% 100.0%

HTML5+RDFa 1.1 Processor Graph

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%

HTML5+RDFa 1.1 Vocabulary

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%

XHTML5+RDFa 1.1

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.

Test clj-rdfa EasyRdf Green Turtle librdfa pyRdfa RDF-RDFa-Parser RDF::RDFa Semargl
Test 0001: Predicate establishment with @property PASS PASS PASS PASS PASS PASS PASS PASS
Test 0006: @rel and @rev PASS PASS PASS PASS PASS PASS PASS PASS
Test 0007: @rel, @rev, @property, @content PASS PASS PASS PASS PASS PASS PASS PASS
Test 0008: empty string @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0009: @rev PASS PASS PASS PASS PASS PASS PASS PASS
Test 0010: @rel, @rev, @href PASS PASS PASS PASS PASS PASS PASS PASS
Test 0014: @datatype, xsd:integer PASS PASS PASS PASS PASS PASS PASS PASS
Test 0015: meta and link PASS PASS PASS PASS PASS PASS PASS PASS
Test 0017: Related blanknodes PASS PASS PASS PASS PASS PASS PASS PASS
Test 0018: @rel for predicate PASS PASS PASS PASS PASS PASS PASS PASS
Test 0019: @about for subject PASS PASS PASS PASS PASS PASS PASS PASS
Test 0020: Inheriting @about for subject PASS PASS PASS PASS PASS PASS PASS PASS
Test 0021: Subject inheritance with no @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0023: @id does not generate subjects PASS PASS PASS PASS PASS PASS PASS PASS
Test 0025: simple chaining test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0026: @content PASS PASS PASS PASS PASS PASS PASS PASS
Test 0027: @content, ignore element content PASS PASS PASS PASS PASS PASS PASS PASS
Test 0029: markup stripping with @datatype PASS PASS PASS PASS PASS PASS PASS PASS
Test 0030: omitted @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0031: simple @resource PASS PASS PASS PASS PASS PASS PASS PASS
Test 0032: @resource overrides @href PASS PASS PASS PASS PASS PASS PASS PASS
Test 0033: simple chaining test with bNode PASS PASS PASS PASS PASS PASS PASS PASS
Test 0034: simple img[@src] test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0035: @src/@href test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0036: @src/@resource test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0037: @src/@href/@resource test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0038: @rev - img[@src] test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0039: @rev - @src/@href test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0041: @rev - @src/@href/@resource test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0048: @typeof with @about and @rel present, no @resource PASS PASS PASS PASS PASS PASS PASS PASS
Test 0049: @typeof with @about, no @rel or @resource PASS PASS PASS PASS PASS PASS PASS PASS
Test 0050: @typeof without anything else PASS PASS PASS PASS PASS PASS PASS PASS
Test 0051: @typeof with a single @property PASS PASS PASS PASS PASS PASS PASS PASS
Test 0052: @typeof with @resource and nothing else PASS PASS PASS PASS PASS PASS PASS PASS
Test 0053: @typeof with @resource and nothing else, with a subelement PASS PASS PASS PASS PASS PASS PASS PASS
Test 0054: multiple @property PASS PASS PASS PASS PASS PASS PASS PASS
Test 0055: multiple @rel PASS PASS PASS PASS PASS PASS PASS PASS
Test 0056: @typeof applies to @about on same element with hanging rel PASS PASS PASS PASS PASS PASS PASS PASS
Test 0057: hanging @rel creates multiple triples PASS PASS PASS PASS PASS PASS PASS PASS
Test 0059: multiple hanging @rels with multiple children PASS PASS PASS PASS PASS PASS PASS PASS
Test 0060: UTF-8 conformance PASS PASS PASS PASS PASS FAIL PASS PASS
Test 0063: @rel in head using reserved XHTML value and empty-prefix CURIE syntax PASS PASS PASS PASS PASS PASS PASS PASS
Test 0064: @about with safe CURIE PASS PASS PASS PASS PASS PASS PASS PASS
Test 0065: @rel with safe CURIE PASS PASS PASS PASS PASS PASS PASS PASS
Test 0066: @about with @typeof in the head PASS PASS PASS PASS PASS PASS PASS PASS
Test 0067: @property in the head PASS PASS PASS PASS PASS PASS PASS PASS
Test 0068: Relative URI in @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0069: Relative URI in @href PASS PASS PASS PASS PASS PASS PASS PASS
Test 0070: Relative URI in @resource PASS PASS PASS PASS PASS PASS PASS PASS
Test 0071: No explicit @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0072: Relative URI in @about (with XHTML base in head) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0073: Relative URI in @resource (with XHTML base in head) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0074: Relative URI in @href (with XHTML base in head) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0075: Reserved word 'license' in @rel with no explicit @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0079: @resource and @href in completing incomplete triples PASS PASS PASS PASS PASS PASS PASS PASS
Test 0080: @about overrides @resource in incomplete triples PASS PASS PASS PASS PASS PASS PASS PASS
Test 0083: multiple ways of handling incomplete triples (merged) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0084: multiple ways of handling incomplete triples, this time with both @rel and @rev PASS PASS PASS PASS PASS PASS PASS PASS
Test 0085: @resource and @href in completing incomplete triples PASS PASS PASS PASS PASS PASS PASS PASS
Test 0087: All reserved XHTML @rel values (with :xxx) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0088: Interpretation of the CURIE "_:" PASS PASS PASS PASS PASS PASS PASS PASS
Test 0089: @src sets a new subject (@typeof) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0091: Non-reserved, un-prefixed CURIE in @property PASS PASS PASS PASS PASS PASS PASS PASS
Test 0093: Tests XMLLiteral content with explicit @datatype (user-data-typed literal) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0099: Preservation of white space in literals PASS PASS PASS PASS PASS PASS PASS PASS
Test 0104: rdf:value PASS PASS PASS PASS PASS PASS PASS PASS
Test 0106: chaining with empty value in inner @rel PASS PASS PASS PASS PASS PASS PASS PASS
Test 0107: no garbage collecting bnodes PASS PASS PASS PASS PASS PASS PASS PASS
Test 0110: bNode generated even though no nested @about exists PASS PASS PASS PASS PASS PASS PASS PASS
Test 0111: two bNodes generated after three levels of nesting PASS PASS PASS PASS PASS PASS PASS PASS
Test 0112: plain literal with datatype="" PASS PASS PASS PASS PASS PASS PASS PASS
Test 0114: Relative URI dot-segment removal PASS PASS PASS PASS PASS PASS PASS PASS
Test 0115: XML Entities must be supported by RDFa parser PASS PASS PASS PASS PASS PASS PASS PASS
Test 0117: Fragment identifiers stripped from BASE PASS PASS PASS PASS PASS PASS PASS PASS
Test 0118: empty string "" is not equivalent to NULL - @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0119: "[prefix:]" CURIE format is valid PASS PASS PASS PASS PASS PASS PASS PASS
Test 0120: "[:]" CURIE format is valid PASS PASS PASS PASS PASS PASS PASS PASS
Test 0121: "[]" is a valid safe CURIE PASS PASS PASS PASS PASS PASS PASS PASS
Test 0122: resource="[]" does not set the object PASS PASS PASS PASS PASS PASS PASS PASS
Test 0126: Multiple @typeof values PASS PASS PASS PASS PASS PASS PASS PASS
Test 0131: Whitespace alternatives in attributes PASS PASS PASS PASS PASS PASS PASS PASS
Test 0134: Uppercase reserved words PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0140: Blank nodes identifiers are not allowed as predicates PASS PASS PASS PASS PASS FAIL PASS PASS
Test 0147: xmlns prefix 'xmlzzz' (reserved) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0174: Support single character prefix in CURIEs PASS PASS PASS PASS PASS PASS PASS PASS
Test 0175: IRI for @property is allowed PASS PASS PASS PASS PASS PASS PASS PASS
Test 0176: IRI for @rel and @rev is allowed PASS PASS PASS PASS PASS PASS PASS PASS
Test 0177: Test @prefix PASS PASS PASS PASS PASS PASS PASS PASS
Test 0178: Test @prefix with multiple mappings PASS PASS PASS PASS PASS PASS PASS PASS
Test 0179: Test @prefix vs @xmlns priority PASS PASS PASS PASS PASS PASS PASS PASS
Test 0180: Test @prefix with empty mapping PASS PASS PASS PASS PASS PASS PASS PASS
Test 0181: Test default XHTML vocabulary PASS PASS PASS PASS PASS PASS PASS PASS
Test 0182: Test prefix locality PASS PASS PASS PASS PASS PASS PASS PASS
Test 0183: Test @xmlns redefines @prefix PASS PASS PASS PASS PASS PASS PASS PASS
Test 0186: @vocab after subject declaration PASS PASS PASS PASS PASS PASS PASS PASS
Test 0187: @vocab redefinition PASS PASS PASS PASS PASS PASS PASS PASS
Test 0188: @vocab only affects predicates PASS PASS PASS PASS PASS PASS PASS PASS
Test 0189: @vocab overrides default term PASS PASS PASS PASS PASS PASS PASS PASS
Test 0190: Test term case insensitivity PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0196: Test process explicit XMLLiteral PASS PASS PASS PASS PASS PASS PASS PASS
Test 0197: Test TERMorCURIEorAbsURI requires an absolute URI PASS PASS PASS PASS PASS PASS PASS PASS
Test 0198: datatype XMLLiteral with other embedded RDFa PASS PASS PASS PASS PASS PASS PASS PASS
Test 0206: Usage of Initial Context PASS PASS PASS PASS PASS PASS PASS PASS
Test 0207: Vevent using @typeof PASS PASS PASS PASS PASS PASS PASS PASS
Test 0213: Datatype generation for a literal with XML content, version 1.1 PASS PASS PASS PASS PASS PASS PASS PASS
Test 0214: Root element has implicit @about="" PASS PASS PASS PASS PASS PASS PASS PASS
Test 0216: Proper character encoding detection in spite of large headers PASS PASS PASS PASS PASS PASS PASS PASS
Test 0217: @vocab causes rdfa:usesVocabulary triple to be added PASS PASS PASS PASS PASS PASS PASS PASS
Test 0218: @inlist to create empty list PASS PASS PASS PASS PASS PASS PASS PASS
Test 0219: @inlist with literal PASS PASS PASS PASS PASS PASS PASS PASS
Test 0220: @inlist with IRI PASS PASS PASS PASS PASS PASS PASS PASS
Test 0221: @inlist with hetrogenious membership PASS PASS PASS PASS PASS PASS PASS PASS
Test 0222: @inlist with multi-level elements PASS PASS PASS PASS PASS PASS PASS PASS
Test 0223: @inlist with non-list property PASS PASS PASS PASS PASS PASS PASS PASS
Test 0224: @inlist hanging @rel PASS FAIL PASS PASS PASS PASS PASS PASS
Test 0225: @inlist on different elements with same subject PASS PASS PASS PASS PASS PASS PASS PASS
Test 0226: confusion between multiple implicit collections (resource) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0227: confusion between multiple implicit collections (about) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0228: 1.1 alternate for test 0040: @rev - @src/@resource test PASS PASS PASS PASS PASS PASS PASS PASS
Test 0229: img[@src] test with omitted @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0230: @src does not set a new subject (@rel/@href) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0231: Set image license information PASS PASS PASS PASS PASS PASS PASS PASS
Test 0232: @typeof with @rel present, no @href, @resource, or @about (1.1 behavior of 0046); PASS PASS PASS PASS PASS PASS PASS PASS
Test 0233: @typeof with @rel and @resource present, no @about (1.1 behavior of 0047) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0234: All defined HTML link relation values PASS PASS PASS PASS PASS PASS PASS PASS
Test 0246: hanging @rel creates multiple triples, @typeof permutation; RDFa 1.1 version PASS PASS PASS PASS PASS PASS PASS PASS
Test 0247: Multiple incomplete triples, RDFa 1.1version PASS PASS PASS PASS PASS PASS PASS PASS
Test 0248: multiple ways of handling incomplete triples (with @rev); RDFa 1.1 version PASS PASS PASS PASS PASS PASS PASS PASS
Test 0249: multiple ways of handling incomplete triples (with @rel and @rev); RDFa 1.1 version PASS PASS PASS PASS PASS PASS PASS PASS
Test 0250: Checking the right behaviour of @typeof with @about, in presence of @property PASS PASS PASS PASS PASS PASS PASS PASS
Test 0251: lang PASS PASS PASS PASS PASS PASS PASS PASS
Test 0252: lang inheritance PASS PASS PASS PASS PASS PASS PASS PASS
Test 0253: plain literal with datatype="" and lang preservation PASS PASS PASS PASS PASS FAIL PASS PASS
Test 0254: @datatype="" generates plain literal in presence of child nodes PASS PASS PASS PASS PASS PASS PASS PASS
Test 0255: lang="" clears language setting PASS PASS PASS PASS PASS PASS PASS PASS
Test 0256: lang and xml:lang on the same element PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0257: element with @property and no child nodes generates empty plain literal (HTML5 version of 0113) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0258: The underscore character is not allowed as a prefix or in xmlns PASS PASS PASS PASS PASS PASS PASS PASS
Test 0259: XML+RDFa Initial Context PASS PASS PASS PASS PASS FAIL PASS PASS
Test 0261: White space preservation in XMLLiteral PASS PASS PASS PASS PASS PASS PASS PASS
Test 0262: Predicate establishment with @property, with white spaces before and after the attribute value PASS PASS PASS PASS PASS PASS PASS PASS
Test 0263: @property appearing on the html element yields the base as the subject PASS PASS PASS PASS PASS PASS PASS PASS
Test 0264: @property appearing on the head element gets the subject from , ie, parent PASS PASS PASS PASS PASS PASS PASS PASS
Test 0265: @property appearing on the head element gets the subject from , ie, parent PASS PASS PASS PASS PASS PASS PASS PASS
Test 0266: @property without @content or @datatype, typed object set by @href and @typeof PASS PASS PASS PASS PASS PASS PASS PASS
Test 0267: @property without @content or @datatype, typed object set by @resource and @typeof PASS PASS PASS PASS PASS PASS PASS PASS
Test 0268: @property without @content or @datatype, typed object set by @src and @typeof PASS PASS PASS PASS PASS PASS PASS PASS
Test 0269: Use of @property in HEAD without explicit subject PASS PASS PASS PASS PASS PASS PASS PASS
Test 0271: Use of @property in HEAD with explicit parent subject via @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0272: time element with @datetime an xsd:date PASS PASS PASS FAIL PASS FAIL PASS PASS
Test 0273: time element with @datetime an xsd:time PASS PASS PASS FAIL PASS FAIL PASS PASS
Test 0274: time element with @datetime an xsd:dateTime PASS PASS PASS FAIL PASS FAIL PASS PASS
Test 0275: time element with value an xsd:date PASS PASS PASS FAIL PASS FAIL PASS PASS
Test 0276: time element with value an xsd:time PASS PASS PASS FAIL PASS FAIL PASS PASS
Test 0277: time element with value an xsd:dateTime PASS PASS PASS FAIL PASS FAIL PASS PASS
Test 0278: @content overrides @datetime FAIL FAIL PASS PASS PASS PASS PASS PASS
Test 0279: @datatype used with @datetime overrides default datatype PASS PASS PASS FAIL PASS FAIL PASS PASS
Test 0280: time element with @datetime an xsd:duration PASS PASS PASS FAIL PASS FAIL PASS PASS
Test 0281: time element with @datetime an xsd:gYear PASS PASS PASS FAIL PASS FAIL PASS PASS
Test 0282: time element with @datetime an xsd:gYearMonth PASS PASS PASS FAIL PASS FAIL PASS PASS
Test 0283: time element with @datetime an invalid datatype generates plain literal PASS PASS PASS PASS PASS PASS PASS PASS
Test 0284: time element not matching datatype but with explicit @datatype PASS PASS PASS PASS PASS PASS PASS PASS
Test 0285: time element with @datetime an invalid datatype and in scope @lang generates plain literal with language PASS PASS PASS FAIL PASS FAIL PASS PASS
Test 0287: time element with @datetime an xsd:dateTime with TZ offset PASS PASS PASS FAIL PASS FAIL PASS PASS
Test 0289: @href becomes subject when @property and @content are present PASS PASS PASS PASS PASS PASS PASS PASS
Test 0290: @href becomes subject when @property and @datatype are present PASS PASS PASS PASS PASS PASS PASS PASS
Test 0291: @href as subject overridden by @about PASS PASS PASS PASS PASS PASS PASS PASS
Test 0292: @about overriding @href as subject is used as parent resource PASS PASS PASS PASS PASS PASS PASS PASS
Test 0293: Testing the ':' character usage in a CURIE PASS PASS PASS PASS PASS PASS PASS PASS
Test 0295: Benchmark test PASS PASS PASS FAIL PASS FAIL PASS PASS
Test 0296: @property does set parent object without @typeof PASS PASS PASS PASS PASS PASS PASS PASS
Test 0297: @about=[] with @typeof does not create a new subject PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0298: @about=[] with @typeof does not create a new object PASS PASS PASS PASS PASS PASS PASS PASS
Test 0299: @resource=[] with @href or @src uses @href or @src (@rel) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0300: @resource=[] with @href or @src uses @href or @src (@property) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0301: @property with @typeof creates a typed_resource for chaining PASS PASS PASS PASS PASS PASS PASS PASS
Test 0302: @typeof with different content types PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0303: For HTML+RDFa 1.1, remove term elements of @rel/@rev when on same element as @property FAIL FAIL PASS FAIL PASS FAIL PASS PASS
Test 0311: Ensure no triples are generated when @property is empty PASS PASS PASS PASS PASS PASS PASS PASS
Test 0312: Mute plain @rel if @property is present FAIL PASS PASS FAIL PASS FAIL PASS PASS
Test 0315: @property and @typeof with incomplete triples PASS PASS PASS PASS PASS PASS PASS PASS
Test 0316: @property and @typeof with incomplete triples (@href variant) PASS PASS PASS PASS PASS PASS PASS PASS
Test 0317: @datatype inhibits new @property behavior PASS PASS PASS PASS PASS PASS PASS PASS
Test 0318: Setting @vocab to empty strings removes default vocabulary PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0319: Relative @profile PASS PASS PASS FAIL PASS FAIL PASS PASS
Test 0320: @property binds to @href PASS PASS PASS PASS PASS PASS PASS PASS
Test 0321: rdfa:copy to rdfa:Pattern FAIL FAIL PASS FAIL PASS FAIL PASS PASS
Test 0322: rdfa:copy for additional property value FAIL FAIL PASS FAIL PASS FAIL PASS PASS
Test 0323: Multiple references to rdfa:Pattern FAIL FAIL PASS FAIL PASS FAIL PASS PASS
Test 0324: Multiple references to rdfa:Pattern FAIL FAIL PASS FAIL PASS FAIL PASS PASS
Test 0325: Multiple references to rdfa:Pattern creating a resource PASS PASS PASS PASS PASS PASS PASS PASS
Test 0326: rdfa:Pattern removed only if referenced FAIL FAIL PASS FAIL PASS FAIL PASS PASS
Test 0327: rdfa:Pattern chaining FAIL FAIL PASS FAIL PASS FAIL PASS PASS
Test 0328: @content overrides the content of the time element. FAIL PASS PASS PASS PASS PASS PASS PASS
Test 0329: Recursive triple generation PASS PASS PASS FAIL PASS PASS PASS PASS
Test 0330: @datatype overrides inherited @lang PASS PASS PASS PASS PASS PASS PASS PASS
Test 0331: @datatype overrides inherited @lang, with @content PASS PASS PASS PASS PASS PASS PASS PASS
Percentage passed out of 197 Tests 94.9% 95.4% 100.0% 85.3% 100.0% 86.8% 100.0% 100.0%

Processors

This report was tested using the following processors:

clj-rdfa
Description
A Clojure library for parsing RDFa 1.1 embedded in XML or HTML
Programming Language
Clojure
Developer
Niklas Lindström
Home Page
https://github.com/niklasl/clj-rdfa/wiki
Test Suite Compliance
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%)
EasyRdf
Description
EasyRdf is a PHP library designed to make it easy to consume and produce RDF.
Programming Language
PHP
Developer
Nicholas J Humfrey
Home Page
http://www.aelius.com/njh/easyrdf/
Test Suite Compliance
HTML4+RDFa 1.1 166/168 (98.8%)
HTML5+RDFa 1.1 186/195 (95.4%)
XHTML5+RDFa 1.1 188/197 (95.4%)
Green Turtle
Description
Green Turtle support for RDFa 1.1
Programming Language
Javascript
Developer
Alex Milowski
Home Page
https://code.google.com/p/green-turtle/
Test Suite Compliance
HTML4+RDFa 1.1 168/168 (100.0%)
HTML5+RDFa 1.1 195/195 (100.0%)
XHTML5+RDFa 1.1 197/197 (100.0%)
librdfa
Description
SAX-based implementation of an RDFa Processor in C
Programming Language
C
Developer
Manu Sporny
Home Page
https://github.com/rdfa/librdfa/wiki
Test Suite Compliance
HTML4+RDFa 1.1 159/168 (94.6%)
HTML5+RDFa 1.1 166/195 (85.1%)
XHTML5+RDFa 1.1 168/197 (85.3%)
pyRdfa
Description
pyRdfa is a distiller that generates RDF triples from an XML or HTML5 file annotated by RDFa in various RDF serialization formats. It can either be used directly from a command line or via a CGI service.
Programming Language
Python
Developer
Ivan Herman
Test Suite Compliance
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%)
RDF-RDFa-Parser
Programming Language
Perl
Developer
Toby Inkster
Home Page
https://metacpan.org/release/RDF-RDFa-Parser
Test Suite Compliance
HTML4+RDFa 1.1 161/168 (95.8%)
HTML5+RDFa 1.1 179/195 (91.8%)
XHTML5+RDFa 1.1 171/197 (86.8%)
RDF::RDFa
Description
RDF::RDFa is an RDFa reader/writer for Ruby using the RDF.rb library suite.
Programming Language
Ruby
Developer
Gregg Kellogg
Home Page
http://github.com/gkellogg/rdf-rdfa
Test Suite Compliance
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%)
Semargl
Description
Semargl is a modular framework for crawling linked data from structured documents. The main goal of project is to provide lightweight and performant tool without excess dependencies.
Programming Language
java
Developer
Lev Khomich
Test Suite Compliance
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%)

Test Definitions

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.

Test 0001: Predicate establishment with @property

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" .
}
Test 0006: @rel and @rev

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> .
}




Test 0007: @rel, @rev, @property, @content

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> .
}
Test 0008: empty string @about

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/> .
}
Test 0009: @rev

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> .
}
Test 0010: @rel, @rev, @href

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> .
}
Test 0014: @datatype, xsd:integer

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> .
}
Test 0015: meta and link

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> .
}
Test 0017: Related blanknodes

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))
}
Test 0018: @rel for predicate

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> .
}
Test 0019: @about for subject

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> .
}
Test 0020: Inheriting @about for subject

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" .
}
Test 0021: Subject inheritance with no @about

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" .
}
Test 0023: @id does not generate subjects

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" .
}
Test 0025: simple chaining test

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" .
}
Test 0026: @content

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" .
}
Test 0027: @content, ignore element content

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" .
}
Test 0029: markup stripping with @datatype

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> .
}
Test 0030: omitted @about

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/> .
}
Test 0031: simple @resource

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> .
}
Test 0032: @resource overrides @href

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> .
}
Test 0033: simple chaining test with bNode

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)
}
Test 0034: simple img[@src] test

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> .
}
Test 0035: @src/@href test

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> .
}
Test 0036: @src/@resource test

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> .
}
Test 0037: @src/@href/@resource test

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> .
}
Test 0038: @rev - img[@src] test

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> .
}
Test 0039: @rev - @src/@href test

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> .
}
Test 0041: @rev - @src/@href/@resource test

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> .
}
Test 0048: @typeof with @about and @rel present, no @resource

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)
}
Test 0049: @typeof with @about, no @rel or @resource

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> .
}
Test 0050: @typeof without anything else

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)
}
Test 0051: @typeof with a single @property

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" .
}
Test 0052: @typeof with @resource and nothing else

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> .
}
Test 0053: @typeof with @resource and nothing else, with a subelement

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" .
}
Test 0054: multiple @property

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" .
}
Test 0055: multiple @rel

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/> .
}
Test 0056: @typeof applies to @about on same element with hanging rel

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" .
}
Test 0057: hanging @rel creates multiple triples

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" .
}
Test 0059: multiple hanging @rels with multiple children

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" .
}
Test 0060: UTF-8 conformance

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> "松本 后子" .
}
Test 0063: @rel in head using reserved XHTML value and empty-prefix CURIE syntax

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> .
}
Test 0064: @about with safe CURIE

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)
}
Test 0065: @rel with safe CURIE

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 0066: @about with @typeof in the head

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 0067: @property in the head

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" .
}
Test 0068: Relative URI in @about

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" .
}
Test 0069: Relative URI in @href

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> .
}
Test 0070: Relative URI in @resource

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> .
}
Test 0071: No explicit @about

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/> .
}
Test 0072: Relative URI in @about (with XHTML base in head)

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" .
}
Test 0073: Relative URI in @resource (with XHTML base in head)

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> .
}
Test 0074: Relative URI in @href (with XHTML base in head)

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> .
}
Test 0075: Reserved word 'license' in @rel with no explicit @about

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/> .
}
Test 0079: @resource and @href in completing incomplete triples

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> .
}
Test 0080: @about overrides @resource in incomplete triples

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> .
}
Test 0083: multiple ways of handling incomplete triples (merged)

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)
}
Test 0084: multiple ways of handling incomplete triples, this time with both @rel and @rev

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)
}
Test 0085: @resource and @href in completing incomplete triples

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> .
}
Test 0087: All reserved XHTML @rel values (with :xxx)

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 0088: Interpretation of the CURIE "_:"

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)
}
Test 0089: @src sets a new subject (@typeof)

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> .
}
Test 0091: Non-reserved, un-prefixed CURIE in @property

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)
}
Test 0093: Tests XMLLiteral content with explicit @datatype (user-data-typed literal)

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> .
}
Test 0099: Preservation of white space in literals

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""" .
}
Test 0104: rdf:value

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" .
}
Test 0106: chaining with empty value in inner @rel

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))
}
Test 0107: no garbage collecting bnodes

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 .
}
Test 0109: Tests to ensure @xml:base is ignored

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" .
}
Test 0110: bNode generated even though no nested @about exists

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)
}
Test 0111: two bNodes generated after three levels of nesting

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) )
}
Test 0112: plain literal with datatype=""

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" .
}
Test 0114: Relative URI dot-segment removal

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>.
}
Test 0115: XML Entities must be supported by RDFa parser

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">&gt;</span>
<span property="ex:entity2">Ben &amp; Co.</span>
<span property="ex:entity3">&#x40;</span>
<span property="ex:entity4">&#64;</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">&gt;</span>
<span property="ex:entity2">Ben &amp; Co.</span>
<span property="ex:entity3">&#x40;</span>
<span property="ex:entity4">&#64;</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">&gt;</span>
<span property="ex:entity2">Ben &amp; Co.</span>
<span property="ex:entity3">&#x40;</span>
<span property="ex:entity4">&#64;</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>
"@" .
}
Test 0117: Fragment identifiers stripped from BASE

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" .
}
Test 0118: empty string "" is not equivalent to NULL - @about

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" .
}
Test 0119: "[prefix:]" CURIE format is valid

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" .
}
Test 0120: "[:]" CURIE format is valid

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" .
}
Test 0121: "[]" is a valid safe CURIE

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" .
}
Test 0122: resource="[]" does not set the object

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 .
}
Test 0126: Multiple @typeof values

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" .
}
Test 0131: Whitespace alternatives in attributes

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&#x20;xhv:prev&#x09;xhv:first&#x0a;xhv:last&#x0d;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&#x20;xhv:prev&#x09;xhv:first&#x0a;xhv:last&#x0d;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&#x20;xhv:prev&#x09;xhv:first&#x0a;xhv:last&#x0d;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> .
}
Test 0134: Uppercase reserved words

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> .
}
Test 0140: Blank nodes identifiers are not allowed as predicates

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".
}
Test 0147: xmlns prefix 'xmlzzz' (reserved)

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".
}
Test 0174: Support single character prefix in CURIEs

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" .
}
Test 0175: IRI for @property is allowed

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)
}
Test 0176: IRI for @rel and @rev is allowed

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) )
}
Test 0177: Test @prefix

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" .
}
Test 0178: Test @prefix with multiple mappings

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" .
}
Test 0179: Test @prefix vs @xmlns priority

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" .
}
Test 0180: Test @prefix with empty mapping

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" .
}
Test 0181: Test default XHTML vocabulary

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> .
}
Test 0182: Test prefix locality

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"
}
Test 0183: Test @xmlns redefines @prefix

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"
}
Test 0186: @vocab after subject declaration

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" .
}
Test 0187: @vocab redefinition

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" .
}
Test 0188: @vocab only affects predicates

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" .
}
Test 0189: @vocab overrides default term

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> .
}
Test 0190: Test term case insensitivity

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> .
}
Test 0196: Test process explicit XMLLiteral

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" .
}
Test 0197: Test TERMorCURIEorAbsURI requires an absolute URI

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" .
}
Test 0198: datatype XMLLiteral with other embedded RDFa

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" .
}
Test 0206: Usage of Initial Context

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> .
}
Test 0207: Vevent using @typeof

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" .
}
Test 0213: Datatype generation for a literal with XML content, version 1.1

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" .
}
Test 0214: Root element has implicit @about=""

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" .
}
Test 0216: Proper character encoding detection in spite of large headers

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" .
}
Test 0217: @vocab causes rdfa:usesVocabulary triple to be added

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/> .
}
Test 0218: @inlist to create empty list

@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> .
}
Test 0219: @inlist with literal

@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") .
}
Test 0220: @inlist with IRI

@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>) .
}
Test 0221: @inlist with hetrogenious membership

@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>) .
}
Test 0222: @inlist with multi-level elements

@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") .
}
Test 0223: @inlist with non-list property

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" .
}
Test 0224: @inlist hanging @rel

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>) .
}
Test 0225: @inlist on different elements with same subject

@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") .
}
Test 0226: confusion between multiple implicit collections (resource)

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") .
}
Test 0227: confusion between multiple implicit collections (about)

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") .
}
Test 0228: 1.1 alternate for test 0040: @rev - @src/@resource test

@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> .
}
Test 0229: img[@src] test with omitted @about

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> .
}
Test 0230: @src does not set a new subject (@rel/@href)

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/> .
}
Test 0231: Set image license information

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/> .
}
Test 0232: @typeof with @rel present, no @href, @resource, or @about (1.1 behavior of 0046);

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) )
}
Test 0233: @typeof with @rel and @resource present, no @about (1.1 behavior of 0047)

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" .
}
Test 0234: All defined HTML link relation values

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
}
Test 0235: rdfagraph='processor' does not generate standard triples

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" .
}
Test 0237: rdfagraph='processor' with invalid SafeCURIE generates rdfa:Warning

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 }
Test 0238: rdfagraph='processor' with missing Term definition generates rdfa:Warning

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 }
Test 0239: rdfagraph='processor' with undefined prefix generates rdfa:Warning

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 }
Test 0240: vocab_expansion='true' expands sub-property

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
}
Test 0241: vocab_expansion='true' expands equivalent-property

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
}
Test 0242: vocab_expansion='true' expands referenced equivalent-property

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
}
Test 0243: vocab_expansion='true' expands sub-class

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
}
Test 0244: vocab_expansion='true' expands equivalent-class

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
}
Test 0245: vocab_expansion='true' expands referenced equivalent-class

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
}
Test 0246: hanging @rel creates multiple triples, @typeof permutation; RDFa 1.1 version

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) )
}
Test 0247: Multiple incomplete triples, RDFa 1.1version

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" ] .
}
Test 0248: multiple ways of handling incomplete triples (with @rev); RDFa 1.1 version

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) )
}
Test 0249: multiple ways of handling incomplete triples (with @rel and @rev); RDFa 1.1 version

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) )
}
Test 0250: Checking the right behaviour of @typeof with @about, in presence of @property

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" .
}
Test 0251: lang

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 .
}
Test 0252: lang inheritance

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 .
}
Test 0253: plain literal with datatype="" and lang preservation

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 .
}
Test 0254: @datatype="" generates plain literal in presence of child nodes

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 .
}
Test 0255: lang="" clears language setting

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) = "")
}
Test 0256: lang and xml:lang on the same element

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 .
}
Test 0257: element with @property and no child nodes generates empty plain literal (HTML5 version of 0113)

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> "" .
}
Test 0258: The underscore character is not allowed as a prefix or in xmlns

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 .
}
Test 0259: XML+RDFa Initial Context

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";
}
Test 0261: White space preservation in XMLLiteral

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> .
}
Test 0262: Predicate establishment with @property, with white spaces before and after the attribute value

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" .
}
Test 0263: @property appearing on the html element yields the base as the subject

@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> .
}
Test 0264: @property appearing on the head element gets the subject from , ie, parent

@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> .
}
Test 0265: @property appearing on the head element gets the subject from , ie, parent

@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> .
}
Test 0266: @property without @content or @datatype, typed object set by @href and @typeof

@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 .
}
Test 0267: @property without @content or @datatype, typed object set by @resource and @typeof

@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 .
}
Test 0268: @property without @content or @datatype, typed object set by @src and @typeof

@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 .
}
Test 0269: Use of @property in HEAD without explicit subject

@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" .
}
Test 0271: Use of @property in HEAD with explicit parent subject via @about

@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" .
}
Test 0272: time element with @datetime an xsd:date

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 ] .
}
Test 0273: time element with @datetime an xsd:time

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 ] .
}
Test 0274: time element with @datetime an xsd:dateTime

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 ] .
}
Test 0275: time element with value an xsd:date

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 ] .
}
Test 0276: time element with value an xsd:time

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 ] .
}
Test 0277: time element with value an xsd:dateTime

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 ] .
}
Test 0278: @content overrides @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" ] .
}
Test 0279: @datatype used with @datetime overrides default datatype

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 ] .
}
Test 0280: time element with @datetime an xsd:duration

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 ] .
}
Test 0281: time element with @datetime an xsd:gYear

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 ] .
}
Test 0282: time element with @datetime an xsd:gYearMonth

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 ] .
}
Test 0283: time element with @datetime an invalid datatype generates plain literal

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" ] .
}
Test 0284: time element not matching datatype but with explicit @datatype

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 ] .
}
Test 0285: time element with @datetime an invalid datatype and in scope @lang generates plain literal with language

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 ] .
}
Test 0287: time element with @datetime an xsd:dateTime with TZ offset

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 ] .
}
Test 0289: @href becomes subject when @property and @content are present

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" .
}
Test 0290: @href becomes subject when @property and @datatype are present

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" .
}
Test 0291: @href as subject overridden by @about

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" .
}
Test 0292: @about overriding @href as subject is used as parent resource

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" .
}
Test 0293: Testing the ':' character usage in a CURIE

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" .
}
Test 0295: Benchmark 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">&gt;</span>
<span property="ex:entity2">Ben &amp; Co.</span>
<span property="ex:entity3">&#x40;</span>
<span property="ex:entity4">&#64;</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">&gt;</span>
<span property="ex:entity2">Ben &amp; Co.</span>
<span property="ex:entity3">&#x40;</span>
<span property="ex:entity4">&#64;</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">&gt;</span>
<span property="ex:entity2">Ben &amp; Co.</span>
<span property="ex:entity3">&#x40;</span>
<span property="ex:entity4">&#64;</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 0296: @property does set parent object without @typeof

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" .
}
Test 0297: @about=[] with @typeof does not create a new subject

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 ] .
}
Test 0298: @about=[] with @typeof does not create a new object

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" ] .
}
Test 0299: @resource=[] with @href or @src uses @href or @src (@rel)

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> .
}
Test 0300: @resource=[] with @href or @src uses @href or @src (@property)

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> .
}
Test 0301: @property with @typeof creates a typed_resource for chaining

@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"
]
}
Test 0302: @typeof with different content types

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/> .
}
Test 0303: For HTML+RDFa 1.1, remove term elements of @rel/@rev when on same element as @property

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/> .

}
Test 0311: Ensure no triples are generated when @property is empty

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 .
}

Test 0312: Mute plain @rel if @property is present

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/> .
}
Test 0313: rdfagraph='processor' redefining an initial context prefix generates rdfa:PrefixRedefinition warning

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 }
Test 0315: @property and @typeof with incomplete triples

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 ] ] .
}
Test 0316: @property and @typeof with incomplete triples (@href variant)

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 .
}
Test 0317: @datatype inhibits new @property behavior

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" .
}
Test 0318: Setting @vocab to empty strings removes default vocabulary

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))
}
Test 0319: Relative @profile

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 .
}
Test 0320: @property binds to @href

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" .
}
Test 0321: rdfa:copy to rdfa:Pattern

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" ]
}
Test 0322: rdfa:copy for additional property value

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" ]
}
Test 0323: Multiple references to rdfa:Pattern

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" ] .
}
Test 0324: Multiple references to rdfa:Pattern

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" ]
}
Test 0325: Multiple references to rdfa:Pattern creating a resource

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" .
}
Test 0326: rdfa:Pattern removed only if referenced

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))
}
Test 0327: rdfa:Pattern chaining

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))
}
Test 0328: @content overrides the content of the time element.

@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" ] .
}

Test 0329: Recursive triple generation

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
""" .
}
Test 0330: @datatype overrides inherited @lang

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 ]
}
Test 0331: @datatype overrides inherited @lang, with @content

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 ]
}