Abstract

This document report test subject conformance for and related specifications for RDFa Test Suite 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

Status of This Document

This document is merely a W3C-internal document. It has no official standing of any kind and does not represent consensus of the W3C Membership.

This report describes the state of implementation conformance at the time of publication.

Table of Contents

Instructions for submitting implementation reports

Tests should be run using the test manifests defined in the Test Manifests Section.

The assumed base URI for the tests is <http://example/base/> if needed.

Reports should be submitted in Turtle format to Public RDFa and include an earl:Assertion for each test, referencing the test resource from the associated manifest and the test subject being reported upon. An example test entry is be the following:

  [ a earl:Assertion;
    earl:assertedBy <--your-developer-identifier-->;
    earl:subject <--your-software-identifier-->;
    earl:test <--uri-of-test-from-manifest>;
    earl:result [
      a earl:TestResult;
      earl:outcome earl:passed;
      dc:date "2016-12-26T10:18:04-08:00"^^xsd:dateTime];
    earl:mode earl:automatic ] .

The Test Subject should be defined as a doap:Project, including the name, homepage and developer(s) of the software (see DOAP). Optionally, including the project description and programming language. An example test subject description is the following:

  <> foaf:primaryTopic <--your-software-identifier--> ;
    dc:issued "2016-12-26T10:18:04-08:00"^^xsd:dateTime ;
    foaf:maker <--your-developer-identifier--> .

  <--your-software-identifier--> a doap:Project, earl:TestSubject, earl:Software ;
    doap:name          "My Cool RDFa Parser" ;
    doap:developer     <--your-developer-identifier--> ;
    doap:homepage      <--your-software-homepace--> ;
    doap:description   "--your-project-description--"@en ;
    doap:programming-language "--your-implementation-language--" .

The software developer, either an organization or one or more individuals SHOULD be referenced from doap:developer using FOAF. For example:

  <--your-developer-identifier--> a foaf:Person, earl:Assertor;
    foaf:name "--My Name--";
    foaf:homepage <--my homepage--> .

2. Test Manifests

2.1 RDFa rdfa1.1 tests for html4

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

2.2 RDFa rdfa1.1 tests for html5

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

2.3 RDFa rdfa1.1 tests for xhtml1

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

2.4 RDFa rdfa1.1 tests for xhtml5

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

2.5 RDFa rdfa1.1 tests for xml

Test clj-rdfa EasyRdf Green Turtle java-rdfa librdfa pyRdfa RDF-RDFa-Parser RDF::RDFa rdfa-streaming-parser Semargl
Test 0001: Predicate establishment with @property UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0006: @rel and @rev UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0007: @rel, @rev, @property, @content UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0008: empty string @about UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0009: @rev UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0010: @rel, @rev, @href UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0012: @xml:lang UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0013: @xml:lang inheritance UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0014: @datatype, xsd:integer UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0015: meta and link UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0017: Related blanknodes UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0018: @rel for predicate UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0019: @about for subject UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0020: Inheriting @about for subject UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0021: Subject inheritance with no @about UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0023: @id does not generate subjects UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0025: simple chaining test UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0026: @content UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0027: @content, ignore element content UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0029: markup stripping with @datatype UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0030: omitted @about UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0031: simple @resource UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0032: @resource overrides @href UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0033: simple chaining test with bNode UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0034: simple img[@src] test UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0035: @src/@href test UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0036: @src/@resource test UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0037: @src/@href/@resource test UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0038: @rev - img[@src] test UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0039: @rev - @src/@href test UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0041: @rev - @src/@href/@resource test UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0048: @typeof with @about and @rel present, no @resource UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0049: @typeof with @about, no @rel or @resource UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0050: @typeof without anything else UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0051: @typeof with a single @property UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0052: @typeof with @resource and nothing else UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0053: @typeof with @resource and nothing else, with a subelement UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0054: multiple @property UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0055: multiple @rel UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0056: @typeof applies to @about on same element with hanging rel UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0057: hanging @rel creates multiple triples UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0059: multiple hanging @rels with multiple children UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0060: UTF-8 conformance UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0063: @rel in head using reserved XHTML value and empty-prefix CURIE syntax UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0064: @about with safe CURIE UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0065: @rel with safe CURIE UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0067: @property in the head UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0068: Relative URI in @about UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0071: No explicit @about UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0079: @resource and @href in completing incomplete triples UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0080: @about overrides @resource in incomplete triples UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0083: multiple ways of handling incomplete triples (merged) UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0084: multiple ways of handling incomplete triples, this time with both @rel and @rev UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0085: @resource and @href in completing incomplete triples UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0087: All reserved XHTML @rel values (with :xxx) UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0088: Interpretation of the CURIE "_:" UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0089: @src sets a new subject (@typeof) UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0091: Non-reserved, un-prefixed CURIE in @property UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0093: Tests XMLLiteral content with explicit @datatype (user-data-typed literal) UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0099: Preservation of white space in literals UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0104: rdf:value UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0106: chaining with empty value in inner @rel UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0107: no garbage collecting bnodes UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0108: plain literal with datatype="" and xml:lang preservation UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0112: plain literal with datatype="" UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0113: element with @property and no child nodes generates empty plain literal UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0115: XML Entities must be supported by RDFa parser UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0118: empty string "" is not equivalent to NULL - @about UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0119: "[prefix:]" CURIE format is valid UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0120: "[:]" CURIE format is valid UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0121: "[]" is a valid safe CURIE UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0122: resource="[]" does not set the object UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0126: Multiple @typeof values UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0140: Blank nodes identifiers are not allowed as predicates UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0147: xmlns prefix 'xmlzzz' (reserved) UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0174: Support single character prefix in CURIEs UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0175: IRI for @property is allowed UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0176: IRI for @rel and @rev is allowed UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0180: Test @prefix with empty mapping UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0181: Test default XHTML vocabulary UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0196: Test process explicit XMLLiteral UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0202: Tests to ensure @xml:base used in SVG UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0203: Tests to ensure @xml:base, XML+RDFa used in non-root elements in SVG UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0206: Usage of Initial Context UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0207: Vevent using @typeof UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0213: Datatype generation for a literal with XML content, version 1.1 UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0214: Root element has implicit @about="" UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0229: img[@src] test with omitted @about UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0246: hanging @rel creates multiple triples, @typeof permutation; RDFa 1.1 version UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0247: Multiple incomplete triples, RDFa 1.1version UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0248: multiple ways of handling incomplete triples (with @rev); RDFa 1.1 version UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0249: multiple ways of handling incomplete triples (with @rel and @rev); RDFa 1.1 version UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0250: Checking the right behaviour of @typeof with @about, in presence of @property UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0258: The underscore character is not allowed as a prefix or in xmlns UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0259: XML+RDFa Initial Context UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0261: White space preservation in XMLLiteral UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0262: Predicate establishment with @property, with white spaces before and after the attribute value UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0263: @property appearing on the html element yields the base as the subject UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0264: @property appearing on the head element gets the subject from <html>, ie, parent UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0265: @property appearing on the head element gets the subject from <html>, ie, parent UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0266: @property without @content or @datatype, typed object set by @href and @typeof UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0267: @property without @content or @datatype, typed object set by @resource and @typeof UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0268: @property without @content or @datatype, typed object set by @src and @typeof UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0269: Use of @property in HEAD without explicit subject UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0271: Use of @property in HEAD with explicit parent subject via @about UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0289: @href becomes subject when @property and @content are present UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0290: @href becomes subject when @property and @datatype are present UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0291: @href as subject overridden by @about UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0292: @about overriding @href as subject is used as parent resource UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0293: Testing the ':' character usage in a CURIE UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0295: Benchmark test UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0296: @property does set parent object without @typeof UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0297: @about=[] with @typeof does not create a new subject UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0298: @about=[] with @typeof does not create a new object UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0299: @resource=[] with @href or @src uses @href or @src (@rel) UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0300: @resource=[] with @href or @src uses @href or @src (@property) UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0301: @property with @typeof creates a typed_resource for chaining UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0302: @typeof with different content types UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0311: Ensure no triples are generated when @property is empty UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0318: Setting @vocab to empty strings removes default vocabulary UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0319: Relative @profile UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0320: @property binds to @href UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0329: Recursive triple generation UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0330: @datatype overrides inherited @lang UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0331: @datatype overrides inherited @lang, with @content UNTESTED UNTESTED PASS UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Test 0332: Empty @datatype doesn't override inherited @lang, with @content UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED
Percentage passed out of 126 Tests 0.0% 0.0% 99.2% 0.0% 0.0% 0.0% 0.0% 0.0% 100.0% 0.0%

2.6 RDFa rdfa1.1-proc tests for html5

Test EasyRdf librdfa pyRdfa RDF-RDFa-Parser rdfa-streaming-parser Semargl
Test 0235: rdfagraph='processor' does not generate standard triples UNTESTED UNTESTED PASS UNTESTED UNTESTED PASS
Test 0238: rdfagraph='processor' with missing Term definition generates rdfa:Warning UNTESTED UNTESTED PASS UNTESTED UNTESTED PASS
Test 0239: rdfagraph='processor' with undefined prefix generates rdfa:Warning UNTESTED UNTESTED PASS UNTESTED UNTESTED PASS
Test 0313: rdfagraph='processor' redefining an initial context prefix generates rdfa:PrefixRedefinition warning UNTESTED UNTESTED PASS UNTESTED UNTESTED PASS
Percentage passed out of 4 Tests 0.0% 0.0% 100.0% 0.0% 0.0% 100.0%

2.7 RDFa rdfa1.1-role tests for html5

Test librdfa RDF::RDFa rdfa-streaming-parser
Test 0305: role attribute with explicit id and term UNTESTED UNTESTED PASS
Test 0306: role attribute with explicit base id and term UNTESTED UNTESTED PASS
Test 0307: role attribute with term and no id UNTESTED UNTESTED PASS
Percentage passed out of 3 Tests 0.0% 0.0% 100.0%

2.8 RDFa rdfa1.1-vocab tests for html5

Test clj-rdfa EasyRdf Green Turtle java-rdfa librdfa pyRdfa RDF-RDFa-Parser RDF::RDFa rdfa-streaming-parser Semargl
Test 0240: vocab_expansion='true' expands sub-property PASS UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED PASS UNTESTED PASS
Test 0241: vocab_expansion='true' expands equivalent-property PASS UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED PASS UNTESTED PASS
Test 0242: vocab_expansion='true' expands referenced equivalent-property PASS UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED PASS UNTESTED PASS
Test 0243: vocab_expansion='true' expands sub-class PASS UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED PASS UNTESTED PASS
Test 0244: vocab_expansion='true' expands equivalent-class PASS UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED PASS UNTESTED PASS
Test 0245: vocab_expansion='true' expands referenced equivalent-class PASS UNTESTED UNTESTED UNTESTED UNTESTED PASS UNTESTED PASS UNTESTED PASS
Percentage passed out of 6 Tests 100.0% 0.0% 0.0% 0.0% 0.0% 100.0% 0.0% 100.0% 0.0% 100.0%

A. Test Subjects

This report was tested using the following test subjects:

A.1 clj-rdfa
Description
A Clojure library for parsing RDFa 1.1 embedded in XML or HTML
Programming Language
Clojure
Home Page
https://github.com/niklasl/clj-rdfa/wiki
Developer
Test Suite Compliance
RDFa rdfa1.1 tests for html4 167/169 (98.8%)
RDFa rdfa1.1 tests for html5 158/170 (92.9%)
RDFa rdfa1.1 tests for xhtml5 165/177 (93.2%)
RDFa rdfa1.1-vocab tests for html5 6/6 (100.0%)
A.2 EasyRdf
Description
EasyRdf is a PHP library designed to make it easy to consume and produce RDF.
Programming Language
PHP
Home Page
http://www.aelius.com/njh/easyrdf/
Developer
Test Suite Compliance
RDFa rdfa1.1 tests for html4 166/169 (98.2%)
RDFa rdfa1.1 tests for html5 159/170 (93.5%)
RDFa rdfa1.1 tests for xhtml5 166/177 (93.8%)
A.3 Green Turtle
Description
Green Turtle support for RDFa 1.1
Programming Language
Javascript
Home Page
https://code.google.com/p/green-turtle/
Developer
Test Suite Compliance
RDFa rdfa1.1 tests for html4 168/169 (99.4%)
RDFa rdfa1.1 tests for html5 167/170 (98.2%)
RDFa rdfa1.1 tests for xhtml1 180/181 (99.4%)
RDFa rdfa1.1 tests for xhtml5 174/177 (98.3%)
RDFa rdfa1.1 tests for xml 125/126 (99.2%)
A.4 java-rdfa
Programming Language
Java
Home Page
http://www.rootdev.net/maven/projects/java-rdfa/project-info.html
Developer
Test Suite Compliance
A.5 librdfa
Programming Language
C
Home Page
https://github.com/rdfa/librdfa/wiki
Developer
Test Suite Compliance
RDFa rdfa1.1 tests for html4 159/169 (94.1%)
RDFa rdfa1.1 tests for html5 144/170 (84.7%)
RDFa rdfa1.1 tests for xhtml5 149/177 (84.2%)
A.6 pyRdfa
Programming Language
Python
Developer
Test Suite Compliance
RDFa rdfa1.1 tests for html4 168/169 (99.4%)
RDFa rdfa1.1 tests for html5 167/170 (98.2%)
RDFa rdfa1.1 tests for xhtml5 174/177 (98.3%)
RDFa rdfa1.1-proc tests for html5 4/4 (100.0%)
RDFa rdfa1.1-vocab tests for html5 6/6 (100.0%)
A.7 RDF-RDFa-Parser
Programming Language
Perl
Home Page
https://metacpan.org/release/RDF-RDFa-Parser
Developer
Test Suite Compliance
RDFa rdfa1.1 tests for html4 161/169 (95.3%)
RDFa rdfa1.1 tests for html5 154/170 (90.6%)
RDFa rdfa1.1 tests for xhtml5 152/177 (85.9%)
A.8 RDF::RDFa
Description
RDF::RDFa is an RDFa reader/writer for Ruby using the RDF.rb library suite.
Programming Language
Ruby
Home Page
http://github.com/gkellogg/rdf-rdfa
Developer
Test Suite Compliance
RDFa rdfa1.1 tests for html4 168/169 (99.4%)
RDFa rdfa1.1 tests for html5 167/170 (98.2%)
RDFa rdfa1.1 tests for xhtml5 174/177 (98.3%)
RDFa rdfa1.1-vocab tests for html5 6/6 (100.0%)
A.9 rdfa-streaming-parser
Description
Streaming RDFa parser
Programming Language
JavaScript
Home Page
https://github.com/rubensworks/rdfa-streaming-parser.js#readme
Developer
Test Suite Compliance
RDFa rdfa1.1 tests for html4 169/169 (100.0%)
RDFa rdfa1.1 tests for html5 170/170 (100.0%)
RDFa rdfa1.1 tests for xhtml1 181/181 (100.0%)
RDFa rdfa1.1 tests for xhtml5 177/177 (100.0%)
RDFa rdfa1.1 tests for xml 126/126 (100.0%)
RDFa rdfa1.1-role tests for html5 3/3 (100.0%)
A.10 Semargl
Description
Highly performant, lightweight framework for linked data processing. Supports RDFa, JSON-LD, RDF/XML and plain text formats, runs on Android and GAE, provides integration with Jena, Sesame and Clerezza.
Programming Language
Java
Home Page
https://github.com/semarglproject/semargl
Developer
Test Suite Compliance
RDFa rdfa1.1 tests for html4 168/169 (99.4%)
RDFa rdfa1.1 tests for html5 167/170 (98.2%)
RDFa rdfa1.1 tests for xhtml5 174/177 (98.3%)
RDFa rdfa1.1-proc tests for html5 4/4 (100.0%)
RDFa rdfa1.1-vocab tests for html5 6/6 (100.0%)

B. Individual Test Results

Individual test results used to construct this report are available here:

C. Test Definitions

Test Test 0001: Predicate establishment with @property

Input

<!DOCTYPE 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 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/photo1.jpg> dc11:creator "Mark Birbeck" .
Test Test 0006: @rel and @rev

Input

<!DOCTYPE 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/ 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/photo1.jpg> dc11:creator <http://www.blogger.com/profile/1109404> .

<http://www.blogger.com/profile/1109404> foaf:img <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/photo1.jpg> .
Test Test 0007: @rel, @rev, @property, @content

Input

<!DOCTYPE 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/ 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/photo1.jpg> dc11:creator <http://www.blogger.com/profile/1109404>;
dc11:title "Portrait of Mark" .

<http://www.blogger.com/profile/1109404> foaf:img <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/photo1.jpg> .
Test Test 0008: empty string @about

Input

<!DOCTYPE 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="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>

Expected Result

@prefix cc: <http://creativecommons.org/ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0008.html> cc:license <http://creativecommons.org/licenses/by-nc-nd/2.5/> .
Test Test 0009: @rev

Input

<!DOCTYPE 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="foaf: http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0009</title>
<link about="http://example.org/people#Person1" rel=""
rev="foaf:knows" href="http://example.org/people#Person2" />

</head>
<body>
<p></p>
</body>
</html>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://example.org/people#Person2> foaf:knows <http://example.org/people#Person1> .
Test Test 0010: @rel, @rev, @href

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://example.org/people#Person1> foaf:knows <http://example.org/people#Person2> .

<http://example.org/people#Person2> foaf:knows <http://example.org/people#Person1> .
Test Test 0014: @datatype, xsd:integer

Input

<!DOCTYPE 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/ 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>

Expected Result

@prefix ex: <http://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

ex:foo ex:bar 10 .
Test Test 0015: meta and link

Input

<!DOCTYPE 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 0015</title>
<link rel="dc:source" href="urn:isbn:0140449132" />
<meta property="dc:creator" content="Fyodor Dostoevsky" />
</head>
<body>
<p></p>
</body>
</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0015.html> dc11:creator "Fyodor Dostoevsky";
dc11:source <urn:isbn:0140449132> .
Test Test 0017: Related blanknodes

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
foaf:knows [ foaf:name "Ralph Swick"];
foaf:name "Manu Sporny"
] .
Test Test 0018: @rel for predicate

Input

<!DOCTYPE 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 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/photo1.jpg> dc11:creator <http://www.blogger.com/profile/1109404> .
Test Test 0019: @about for subject

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<mailto:manu.sporny@digitalbazaar.com> foaf:knows <mailto:michael.hausenblas@joanneum.at> .
Test Test 0020: Inheriting @about for subject

Input

<!DOCTYPE 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 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/photo1.jpg> dc11:creator "Mark Birbeck" .
Test Test 0021: Subject inheritance with no @about

Input

<!DOCTYPE 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 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0021.html> dc11:creator "Mark Birbeck" .
Test Test 0023: @id does not generate subjects

Input

<!DOCTYPE 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 0023</title>
</head>
<body>
<div id="photo1">
This photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</div>
</body>


</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0023.html> dc11:creator "Mark Birbeck" .
Test Test 0025: simple chaining test

Input

<!DOCTYPE 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/ 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0025.html> dc11: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> foaf:name "Ben Adida" .
Test Test 0026: @content

Input

<!DOCTYPE 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 0026</title>
</head>
<body>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck"></span>
</p>
</body>


</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://internet-apps.blogspot.com/> dc11:creator "Mark Birbeck" .
Test Test 0027: @content, ignore element content

Input

<!DOCTYPE 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 0027</title>
</head>
<body>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck">Mark B.
</span>
</p>
</body>


</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://internet-apps.blogspot.com/> dc11:creator "Mark Birbeck" .
Test Test 0029: markup stripping with @datatype

Input

<!DOCTYPE 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/ 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/foo> dc11:creator "Mark Birbeck" .
Test Test 0030: omitted @about

Input

<!DOCTYPE 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="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>

Expected Result

@prefix cc: <http://creativecommons.org/ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0030.html> cc:license <http://creativecommons.org/licenses/by-nc-nd/2.5/> .
Test Test 0031: simple @resource

Input

<!DOCTYPE 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 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0031.html#wtw> dc11:identifier <urn:ISBN:0752820907> .
Test Test 0032: @resource overrides @href

Input

<!DOCTYPE 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 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0032.html#wtw> dc11:identifier <urn:ISBN:0752820907> .
Test Test 0033: simple chaining test with bNode

Input

<!DOCTYPE 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/ 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0033.html> dc11:creator [ foaf:name "Ben Adida"] .
Test Test 0034: simple img[@src] test

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/mic.xhtml#i> foaf:img <http://sw-app.org/img/mic_2007_01.jpg> .
Test Test 0035: @src/@href test

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/mic.xhtml#i> foaf:img <http://sw-app.org/img/mic_2006_03.jpg> .
Test Test 0036: @src/@resource test

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/mic.xhtml#i> foaf:img <http://sw-app.org/img/mic_2006_03.jpg> .
Test Test 0037: @src/@href/@resource test

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/mic.xhtml#i> foaf:img <http://sw-app.org/mic.xhtml#photo> .
Test Test 0038: @rev - img[@src] test

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/img/mic_2007_01.jpg> foaf:depicts <http://sw-app.org/mic.xhtml#i> .
Test Test 0039: @rev - @src/@href test

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/img/mic_2006_03.jpg> foaf:depicts <http://sw-app.org/mic.xhtml#i> .
Test Test 0041: @rev - @src/@href/@resource test

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/mic.xhtml#photo> foaf:depicts <http://sw-app.org/mic.xhtml#i> .
Test Test 0048: @typeof with @about and @rel present, no @resource

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#me> a foaf:Person;
foaf:knows [ foaf:name "John Doe"] .
Test Test 0049: @typeof with @about, no @rel or @resource

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#me> a foaf:Person;
foaf:name "John Doe" .
Test Test 0050: @typeof without anything else

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
a foaf:Person;
foaf:name "John Doe"
] .
Test Test 0051: @typeof with a single @property

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0051.html> a foaf:Document;
foaf:topic "John Doe" .
Test Test 0052: @typeof with @resource and nothing else

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://www.example.org/#me> a foaf:Person .
Test Test 0053: @typeof with @resource and nothing else, with a subelement

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#me> a foaf:Person;
foaf:name "John Doe" .
Test Test 0054: multiple @property

Input

<!DOCTYPE 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 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0054.html> dc11:creator "Fabien Gandon";
dc11:publisher "Fabien Gandon" .
Test Test 0055: multiple @rel

Input

<!DOCTYPE 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 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0055.html> dc11:creator <http://www-sop.inria.fr/acacia/fabien/>;
dc11:publisher <http://www-sop.inria.fr/acacia/fabien/> .
Test Test 0056: @typeof applies to @about on same element with hanging rel

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#ben> a foaf:Person;
foaf:knows <http://www.example.org/#mark> .

<http://www.example.org/#mark> foaf:name "Mark Birbeck" .
Test Test 0057: hanging @rel creates multiple triples

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#ben> foaf:knows <http://www.example.org/#ivan>,
<http://www.example.org/#mark> .

<http://www.example.org/#ivan> foaf:name "Ivan Herman" .

<http://www.example.org/#mark> foaf:name "Mark Birbeck" .
Test Test 0059: multiple hanging @rels with multiple children

Input

<!DOCTYPE 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/ 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0059.html> dc11:creator <http://www.example.org/#manu>,
<http://www.example.org/#fabien>;
dc11:publisher <http://www.example.org/#manu>,
<http://www.example.org/#fabien> .

<http://www.example.org/#fabien> foaf:name "Fabien Gandon" .

<http://www.example.org/#manu> foaf:name "Manu Sporny" .
Test Test 0060: UTF-8 conformance

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#matsumoto-kimiko> a foaf:Person;
foaf:name "松本 后子" .
Test Test 0063: @rel in head using reserved XHTML value and empty-prefix CURIE syntax

Input

<!DOCTYPE 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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0063.html> xhv:next <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0064.html> .
Test Test 0064: @about with safe CURIE

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

[ foaf:knows <http://digitalbazaar.com/people/manu>] .
Test Test 0065: @rel with safe CURIE

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

[
foaf:knows [ foaf:mbox <mailto:michael.hausenblas@joanneum.at>];
foaf:mbox <mailto:manu.sporny@digitalbazaar.com>
] .
Test Test 0066: @about with @typeof in the head

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0066.html> a foaf:Document .
Test Test 0067: @property in the head

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0067.html> foaf:topic "Test 0067" .
Test Test 0068: Relative URI in @about

Input

<!DOCTYPE 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 0068</title>
</head>
<body>
<p about="0067.html">
The previous test was
<span property="dc:title">Test 0067</span>.
</p>
</body>
</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0067.html> dc11:title "Test 0067" .
Test Test 0069: Relative URI in @href

Input

<!DOCTYPE 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="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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0069.html> xhv:next <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0070.html> .
Test Test 0070: Relative URI in @resource

Input

<!DOCTYPE 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="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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0070.html> xhv:prev <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0069.html> .
Test Test 0071: No explicit @about

Input

<!DOCTYPE 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="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>

Expected Result

@prefix cc: <http://creativecommons.org/ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0071.html> cc:license <http://creativecommons.org/licenses/by-nd/3.0/> .
Test Test 0072: Relative URI in @about (with XHTML base in head)

Input

<!DOCTYPE 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>
<base href="http://www.example.org/"/>
<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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/faq> dc11:title "Example FAQ" .
Test Test 0073: Relative URI in @resource (with XHTML base in head)

Input

<!DOCTYPE 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>
<base href="http://www.example.org/"/>
<title>Test 0073</title>
</head>
<body>
<p>
This article was written by
<span rel="dc:creator" resource="jane">Jane</span>.
</p>
</body>
</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://www.example.org/> dc11:creator <http://www.example.org/jane> .
Test Test 0074: Relative URI in @href (with XHTML base in head)

Input

<!DOCTYPE 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>
<base href="http://www.example.org/"/>
<title>Test 0074</title>
</head>
<body>
<p>
This article was written by
<a rel="dc:creator" href="jane">Jane</a>.
</p>
</body>
</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://www.example.org/> dc11:creator <http://www.example.org/jane> .
Test Test 0075: Reserved word 'license' in @rel with no explicit @about

Input

<!DOCTYPE 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>
<base href="http://www.example.org/"/>
<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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://www.example.org/> xhv:license <http://creativecommons.org/licenses/by-nd/3.0/> .
Test Test 0079: @resource and @href in completing incomplete triples

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://www.example.org/#somebody> foaf:knows <http://www.w3.org/People/Berners-Lee/card#i>,
<http://www.ivan-herman.org/Ivan_Herman>,
<http://danbri.org/foaf.rdf#danbri> .
Test Test 0080: @about overrides @resource in incomplete triples

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://www.example.org/#somebody> foaf:knows <http://danbri.org/foaf.rdf#danbri> .
Test Test 0083: multiple ways of handling incomplete triples (merged)

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#somebody> foaf:knows [
foaf:mailbox <mailto:ivan@w3.org>;
foaf:name "Ivan Herman"
],
<http://danbri.org/foaf.rdf#danbri> .

<http://danbri.org/foaf.rdf#danbri> a foaf:Person;
foaf:name "Dan Brickley" .
Test Test 0084: multiple ways of handling incomplete triples, this time with both @rel and @rev

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://danbri.org/foaf.rdf#danbri> a foaf:Person;
foaf:knows <http://www.example.org/#somebody>;
foaf:name "Dan Brickley" .

<http://www.example.org/#somebody> foaf:knows [
foaf:knows <http://www.example.org/#somebody>;
foaf:mailbox <mailto:ivan@w3.org>;
foaf:name "Ivan Herman"
],
<http://danbri.org/foaf.rdf#danbri> .
Test Test 0085: @resource and @href in completing incomplete triples

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://www.example.org/#somebody> foaf:knows [ foaf:knows <http://www.w3.org/People/Berners-Lee/card#i>,
<http://www.ivan-herman.org/Ivan_Herman>,
<http://danbri.org/foaf.rdf#danbri>] .
Test Test 0087: All reserved XHTML @rel values (with :xxx)

Input

<!DOCTYPE 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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0087.html> xhv:alternate <http://example.org/alternate>;
xhv:appendix <http://example.org/appendix>;
xhv:bookmark <http://example.org/bookmark>;
xhv:chapter <http://example.org/chapter>;
xhv:cite <http://example.org/cite>;
xhv:contents <http://example.org/contents>;
xhv:copyright <http://example.org/copyright>;
xhv:first <http://example.org/first>;
xhv:glossary <http://example.org/glossary>;
xhv:help <http://example.org/help>;
xhv:icon <http://example.org/icon>;
xhv:index <http://example.org/index>;
xhv:last <http://example.org/last>;
xhv:license <http://example.org/license>;
xhv:meta <http://example.org/meta>;
xhv:next <http://example.org/next>;
xhv:p3pv1 <http://example.org/p3pv1>;
xhv:prev <http://example.org/prev>;
xhv:role <http://example.org/role>;
xhv:section <http://example.org/section>;
xhv:start <http://example.org/start>;
xhv:stylesheet <http://example.org/stylesheet>;
xhv:subsection <http://example.org/subsection>;
xhv:up <http://example.org/up> .
Test Test 0088: Interpretation of the CURIE "_:"

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#somebody> foaf:knows [
a foaf:Person;
foaf:name "Dan Brickley"
] .
Test Test 0089: @src sets a new subject (@typeof)

Input

<!DOCTYPE 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="foaf: http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0089</title>
</head>
<body>
<div>
<img src="http://example.org/example.png" typeof="foaf:Image" alt="example image" />
</div>
</body>
</html>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://example.org/example.png> a foaf:Image .
Test Test 0091: Non-reserved, un-prefixed CURIE in @property

Input

<!DOCTYPE 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 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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
xhv:definition "a bi-pedal primate";
xhv:foo "Milky Way";
xhv:note "confused animal"
] .
Test Test 0093: Tests XMLLiteral content with explicit @datatype (user-data-typed literal)

Input

<!DOCTYPE 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/ ex: http://www.example.org/">
<head>
<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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix ex: <http://www.example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0093.html> dc11:creator "Albert Einstein";
dc11:title "E = mc2: The Most Urgent Problem of Our Time"^^ex:XMLLiteral .
Test Test 0099: Preservation of white space in literals

Input

<!DOCTYPE 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="example: http://www.example.org/">
<head>
<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>

Expected Result

@prefix example: <http://www.example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.cwi.nl/~steven/> 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""" .
Test Test 0104: rdf:value

Input

<!DOCTYPE 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="rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# example: http://www.example.org/">
<head>
<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>

Expected Result

@prefix example: <http://www.example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0104.html#interfenestration> example:size [
example:unit "character";
rdf:value "17"
] .
Test Test 0106: chaining with empty value in inner @rel

Input

<!DOCTYPE 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 0106</title>
</head>
<body>
<div about="" rel="dc:creator">
<a rel="" href="manu.html">Manu</a> created this page.
</div>
</body>
</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0106.html> dc11:creator [] .
Test Test 0107: no garbage collecting bnodes

Input

<!DOCTYPE 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 0107</title>
</head>
<body>
<div rel="next"></div>
</body>
</html>

Expected Result


Test Test 0109: Tests to ensure @xml:base is ignored

Input

<!DOCTYPE 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/" 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0109.html> dc11:title "Test 0109" .
Test Test 0110: bNode generated even though no nested @about exists

Input

<!DOCTYPE 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="xhv: http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0110</title>
</head>
<body>
<div rel="xhv:next">
<div rel="xhv:next"></div>
</div>
</body>
</html>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0110.html> xhv:next [] .
Test Test 0111: two bNodes generated after three levels of nesting

Input

<!DOCTYPE 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="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>
</div>
</body>
</html>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0111.html> xhv:next [ xhv:next []] .
Test Test 0112: plain literal with datatype=""

Input

<!DOCTYPE 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 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>

Expected Result

@prefix ex: <http://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

ex:node ex:property """not an XML Literal,
whitespace preserved
""" .
Test Test 0114: Relative URI dot-segment removal

Input

<!DOCTYPE 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="cc: http://creativecommons.org/ns# xhv: http://www.w3.org/1999/xhtml/vocab# 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>

Expected Result

@prefix cc: <http://creativecommons.org/ns#> .
@prefix rdfatest: <http://rdfa.info/vocabs/rdfa-test#> .
@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0114.html> 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>;
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/> .
Test Test 0115: XML Entities must be supported by RDFa parser

Input

<!DOCTYPE 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://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>

Expected Result

@prefix ex: <http://www.example.com/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0115.html> ex:entity1 ">";
ex:entity2 "Ben & Co.";
ex:entity3 "@";
ex:entity4 "@" .
Test Test 0117: Fragment identifiers stripped from BASE

Input

<!DOCTYPE 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>
<base href="http://www.example.org/tc117.xhtml#fragment"/>
<title property="dc:title">Test 0117</title>
</head>
<body>
<p>
<span property="dc:contributor">Mark Birbeck</span>
added this triple test.
</p>
</body>
</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/tc117.xhtml> dc11:contributor "Mark Birbeck";
dc11:title "Test 0117" .
Test Test 0118: empty string "" is not equivalent to NULL - @about

Input

<!DOCTYPE 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 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0118.html> dc11:creator "Ben" .
Test Test 0119: "[prefix:]" CURIE format is valid

Input

<!DOCTYPE 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/ 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix example: <http://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

example: dc11:title "Example Website" .
Test Test 0120: "[:]" CURIE format is valid

Input

<!DOCTYPE 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/ 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

xhv: dc11:title "The XHTML Vocabulary Document" .
Test Test 0122: resource="[]" does not set the object

Input

<!DOCTYPE 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>

Expected Result


Test Test 0126: Multiple @typeof values

Input

<!DOCTYPE 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="dct: http://purl.org/dc/terms/ sioc: http://rdfs.org/sioc/ns# 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>

Expected Result

@prefix dct: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#article> a sioc:Post,
foaf:Document;
dct:title "My article" .
Test Test 0131: Whitespace alternatives in attributes

Input

<!DOCTYPE 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="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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0131.html> xhv:first <http://example.org/test.css>;
xhv:last <http://example.org/test.css>;
xhv:next <http://example.org/test.css>;
xhv:prev <http://example.org/test.css>;
xhv:subsection <http://example.org/test.css> .
Test Test 0134: Uppercase reserved words

Input

<!DOCTYPE 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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0134.html> xhv:license <http://example.org/test.css> .
Test Test 0140: Blank nodes identifiers are not allowed as predicates

Input

<!DOCTYPE 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>

Expected Result


Test Test 0147: xmlns prefix 'xmlzzz' (reserved)

Input

<!DOCTYPE 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>

Expected Result

@prefix xmlzzz: <http://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0147.html> xmlzzz:test "Test" .
Test Test 0174: Support single character prefix in CURIEs

Input

<!DOCTYPE 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="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>

Expected Result

@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/jd> vcard:fn "John Doe" .
Test Test 0175: IRI for @property is allowed

Input

<!DOCTYPE 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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[ foaf:name "Gregg Kellogg"] .
Test Test 0176: IRI for @rel and @rev is allowed

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

_:gregg foaf:knows [
foaf:knows _:gregg;
foaf:mbox <mailto:manu.sporny@digitalbazaar.com>
];
foaf:mbox <mailto:gregg@kellogg-assoc.com> .
Test Test 0177: Test @prefix

Input

<!DOCTYPE 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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/#me> foaf:name "Ivan Herman" .
Test Test 0178: Test @prefix with multiple mappings

Input

<!DOCTYPE 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>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/#this> a dcterms:Agent;
foaf:name "A particular agent" .
Test Test 0179: Test @prefix vs @xmlns priority

Input

<!DOCTYPE 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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/#me> foaf:name "Ivan Herman" .
Test Test 0180: Test @prefix with empty mapping

Input

<!DOCTYPE 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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://example.org/#me> foaf:name "Ivan Herman" .
Test Test 0181: Test default XHTML vocabulary

Input

<!DOCTYPE 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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://www.example.org/software> xhv:license <http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
Test Test 0182: Test prefix locality

Input

<!DOCTYPE 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>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/#this> a dcterms:Agent;
foaf:name "A particular agent" .
Test Test 0183: Test @xmlns redefines @prefix

Input

<!DOCTYPE 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>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/#this> a dcterms:Agent;
foaf:name "A particular agent" .
Test Test 0186: @vocab after subject declaration

Input

<!DOCTYPE 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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdfa:usesVocabulary foaf: .

<http://example.org/#me> foaf:name "Ivan Herman" .
Test Test 0187: @vocab redefinition

Input

<!DOCTYPE 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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdfa:usesVocabulary foaf:,
<http://example.org/wrong/foaf/uri/> .

<http://example.org/#me> foaf:name "Ivan Herman" .
Test Test 0188: @vocab only affects predicates

Input

<!DOCTYPE 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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdfa:usesVocabulary foaf: .

<http://example.org/#me> foaf:name "Ivan Herman" .
Test Test 0189: @vocab overrides default term

Input

<!DOCTYPE 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>

Expected Result

@prefix rdfa: <http://www.w3.org/ns/rdfa#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0189.html> rdfa:usesVocabulary <http://www.example.org/vocab#> .

<http://www.example.org/software> <http://www.example.org/vocab#license> <http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
Test Test 0190: Test term case insensitivity

Input

<!DOCTYPE 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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://www.example.org/software> xhv:license <http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
Test Test 0196: Test process explicit XMLLiteral

Input

<!DOCTYPE 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/rdf/ 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>

Expected Result

@prefix ex: <http://example.org/rdf/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org> ex:plainlit "This is a plain literal";
ex:xmllit "This is an XMLLiteral"^^rdf:XMLLiteral .
Test Test 0197: Test TERMorCURIEorAbsURI requires an absolute URI

Input

<!DOCTYPE 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/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>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/me> dcterms:language "Ruby" .
Test Test 0206: Usage of Initial Context

Input

<!DOCTYPE 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>

Expected Result

@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

xsd:maxExclusive a owl:DatatypeProperty .
Test Test 0207: Vevent using @typeof

Input

<!DOCTYPE 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="cal: http://www.w3.org/2002/12/cal/icaltzd# 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>

Expected Result

@prefix cal: <http://www.w3.org/2002/12/cal/icaltzd#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0207.html#event1> a cal:Vevent;
cal:dtend "2006-10-23"^^xsd:date;
cal:dtstart "2006-10-21"^^xsd:date;
cal:location "Iona, UK";
cal:summary "Weekend off in Iona";
cal:url <http://freetime.example.org/> .
Test Test 0213: Datatype generation for a literal with XML content, version 1.1

Input

<!DOCTYPE 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/> dc11:title "E = mc2: The Most Urgent Problem of Our Time" .
Test Test 0214: Root element has implicit @about=""

Input

<!DOCTYPE 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>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0214.html> a foaf:Document;
dcterms:title "Test 0214" .
Test Test 0216: Proper character encoding detection in spite of large headers

Input

<!DOCTYPE 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" />
<title>Test 0216</title>
</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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.ivan-herman.net/foaf#me> foaf:name "Iván" .
Test Test 0217: @vocab causes rdfa:usesVocabulary triple to be added

Input

<!DOCTYPE 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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdfa:usesVocabulary foaf: .

<http://example.org/#me> foaf:name "Gregg Kellogg" .
Test Test 0218: @inlist to create empty list

Input

<!DOCTYPE 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=""></p>
</div>
</body>
</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0218.html> rdf:value () .
Test Test 0219: @inlist with literal

Input

<!DOCTYPE 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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0219.html> rdf:value ("Foo") .
Test Test 0220: @inlist with IRI

Input

<!DOCTYPE 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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0220.html> rdf:value (<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/foo>) .
Test Test 0221: @inlist with hetrogenious membership

Input

<!DOCTYPE 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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0221.html> rdf:value ("Foo" <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/foo>) .
Test Test 0222: @inlist with multi-level elements

Input

<!DOCTYPE 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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0222.html> rdf:value ("Foo" "Bar") .
Test Test 0223: @inlist with non-list property

Input

<!DOCTYPE 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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0223.html> rdf:value ("Foo" "Bar"),
"Baz" .
Test Test 0224: @inlist hanging @rel

Input

<!DOCTYPE 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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0224.html> rdf:value (<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/foo> <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/bar>) .
Test Test 0225: @inlist on different elements with same subject

Input

<!DOCTYPE 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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/foo> rdf:value ("Foo"), ("Bar") .
Test Test 0226: confusion between multiple implicit collections (resource)

Input

<!DOCTYPE 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>

Expected Result

@prefix ex: <http://www.example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0226.html> ex:inlist <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/res>;
rdf:value ("Foo") .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/res> rdf:value ("Bar") .
Test Test 0227: confusion between multiple implicit collections (about)

Input

<!DOCTYPE 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>

Expected Result

@prefix ex: <http://www.example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0227.html> ex:inlist <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/res>;
rdf:value ("Foo") .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/res> rdf:value ("Bar") .
Test Test 0228: 1.1 alternate for test 0040: @rev - @src/@resource test

Input

<!DOCTYPE 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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://sw-app.org/img/mic_2006_03.jpg> xhv:alternate <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0228.html> .
Test Test 0229: img[@src] test with omitted @about

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0229.html> foaf:img <http://sw-app.org/img/mic_2007_01.jpg> .
Test Test 0230: @src does not set a new subject (@rel/@href)

Input

<!DOCTYPE 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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0230.html> xhv:license <http://creativecommons.org/licenses/by-nc-sa/2.0/> .
Test Test 0231: Set image license information

Input

<!DOCTYPE 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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://example.org/example.png> xhv:license <http://creativecommons.org/licenses/by-nc-sa/2.0/> .
Test Test 0232: @typeof with @rel present, no @href, @resource, or @about (1.1 behavior of 0046);

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0232.html> foaf:maker [
a foaf:Person;
foaf:name "John Doe"
] .
Test Test 0233: @typeof with @rel and @resource present, no @about (1.1 behavior of 0047)

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0233.html> foaf:maker <http://www.example.org/#me> .

<http://www.example.org/#me> a foaf:Person;
foaf:name "John Doe" .
Test Test 0234: All defined HTML link relation values

Input

<!DOCTYPE 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>

Expected Result

@prefix wdrs: <http://www.w3.org/2007/05/powder-s#> .
@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0234.html> xhv:license <http://example.org/license>;
xhv:role <http://example.org/role>;
wdrs:describedby <http://example.org/describedby> .
Test Test 0246: hanging @rel creates multiple triples, @typeof permutation; RDFa 1.1 version

Input

<!DOCTYPE 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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#ben> foaf:knows [
a foaf:Person;
foaf:name "Mark Birbeck"
], [
a foaf:Person;
foaf:name "Ivan Herman"
] .
Test Test 0247: Multiple incomplete triples, RDFa 1.1version

Input

<!DOCTYPE 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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#somebody> foaf:knows [
foaf:mailbox <mailto:ivan@w3.org>;
foaf:name "Ivan Herman"
], [
a foaf:Person;
foaf:name "Mark Birbeck"
] .
Test Test 0248: multiple ways of handling incomplete triples (with @rev); RDFa 1.1 version

Input

<!DOCTYPE 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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
a foaf:Person;
foaf:knows <http://www.example.org/#somebody>;
foaf:name "Mark Birbeck"
] .

[
foaf:knows <http://www.example.org/#somebody>;
foaf:mailbox <mailto:ivan@w3.org>;
foaf:name "Ivan Herman"
] .
Test Test 0249: multiple ways of handling incomplete triples (with @rel and @rev); RDFa 1.1 version

Input

<!DOCTYPE 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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#somebody> foaf:knows [
foaf:knows <http://www.example.org/#somebody>;
foaf:mailbox <mailto:ivan@w3.org>;
foaf:name "Ivan Herman"
], [
a foaf:Person;
foaf:knows <http://www.example.org/#somebody>;
foaf:name "Mark Birbeck"
] .
Test Test 0250: Checking the right behaviour of @typeof with @about, in presence of @property

Input

<!DOCTYPE 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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.ivan-herman.net/foaf#me> a foaf:Person;
foaf:name "Ivan Herman" .
Test Test 0251: lang

Input

<!DOCTYPE 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>

Expected Result

@prefix ex: <http://example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

ex:node ex:property "chat"@fr .
Test Test 0252: lang inheritance

Input

<!DOCTYPE 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>

Expected Result

@prefix ex: <http://example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

ex:node ex:property "chat"@fr .
Test Test 0253: plain literal with datatype="" and lang preservation

Input

<!DOCTYPE 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>

Expected Result

@prefix ex: <http://example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

ex:node ex:property """ελληνικό
άσπρο διάστημα
"""@el .
Test Test 0254: @datatype="" generates plain literal in presence of child nodes

Input

<!DOCTYPE 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>

Expected Result

@prefix ex: <http://example.org/terms#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://example.org/> ex:prop "A plain literal with a lang tag."@en .
Test Test 0255: lang="" clears language setting

Input

<!DOCTYPE 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>

Expected Result

@prefix ex: <http://example.org/terms#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> ex:prop "Just a plain literal." .
Test Test 0257: element with @property and no child nodes generates empty plain literal (HTML5 version of 0113)

Input

<!DOCTYPE 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0257.html#a> dc11:title "" .
Test Test 0258: The underscore character is not allowed as a prefix or in xmlns

Input

<!DOCTYPE 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>

Expected Result

@prefix earl: <http://www.w3.org/ns/earl#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0258.html> earl:testcase [] .
Test Test 0259: XML+RDFa Initial Context

Input

<!DOCTYPE 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="csvw:">CSVW</span>
<span property="dcat:">DCAT</span>
<span property="qb:">QB</span>
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="org:">ORG</span>ORG
<span property="owl:">OWL</span>
<span property="prov:">PROV</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="rr:">RR</span>
<span property="sd:">SD</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>

Expected Result

@prefix cc: <http://creativecommons.org/ns#> .
@prefix csvw: <http://www.w3.org/ns/csvw#> .
@prefix ctag: <http://commontag.org/ns#> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix gr: <http://purl.org/goodrelations/v1#> .
@prefix grddl: <http://www.w3.org/2003/g/data-view#> .
@prefix ical: <http://www.w3.org/2002/12/cal/icaltzd#> .
@prefix ma: <http://www.w3.org/ns/ma-ont#> .
@prefix og: <http://ogp.me/ns#> .
@prefix org: <http://www.w3.org/ns/org#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix qb: <http://purl.org/linked-data/cube#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rev: <http://purl.org/stuff/rev#> .
@prefix rif: <http://www.w3.org/2007/rif#> .
@prefix rr: <http://www.w3.org/ns/r2rml#> .
@prefix schema: <http://schema.org/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .
@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix skosxl: <http://www.w3.org/2008/05/skos-xl#> .
@prefix v: <http://rdf.data-vocabulary.org/#> .
@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
@prefix void: <http://rdfs.org/ns/void#> .
@prefix wdr: <http://www.w3.org/2007/05/powder#> .
@prefix wdrs: <http://www.w3.org/2007/05/powder-s#> .
@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0259.html> ctag: "CTAG";
cc: "CC";
og: "OG";
dcterms: "DC",
"DCTERMS";
gr: "GR";
qb: "QB";
rev: "REV";
v: "V";
void: "VOID";
sioc: "SIOC";
schema: "Schema";
rdf: "RDF";
xhv: "XHV";
xhv:license "License";
xhv:role "Role";
rdfs: "RDFS";
xsd: "XSD";
owl: "OWL";
ical: "ICAL";
grddl: "GRDDL";
skos: "SKOS";
vcard: "VCARD";
wdr: "WDR";
wdrs: "WDRS";
wdrs:describedby "DescribedBy";
rif: "RIF";
skosxl: "SKOS-XL";
xml: "XML";
csvw: "CSVW";
dcat: "DCAT";
ma: "MA";
org: "ORG";
prov: "PROV";
rr: "RR";
rdfa: "RDFa";
sd: "SD";
foaf: "FOAF" .
Test Test 0261: White space preservation in XMLLiteral

Input

<!DOCTYPE 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/rdf/ 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>

Expected Result

@prefix ex: <http://example.org/rdf/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://www.example.org> ex:xmllit """This is
an XMLLiteral"""^^rdf:XMLLiteral .
Test Test 0262: Predicate establishment with @property, with white spaces before and after the attribute value

Input

<!DOCTYPE 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 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/photo1.jpg> dc11:creator "Mark Birbeck" .
Test Test 0263: @property appearing on the html element yields the base as the subject

Input

<!DOCTYPE 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>

Expected Result

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0263.html> rdfs:seeAlso <http://www.example.org> .
Test Test 0264: @property appearing on the head element gets the subject from <html>, ie, parent

Input

<!DOCTYPE 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>

Expected Result

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0264.html> rdfs:seeAlso <http://www.example.org> .
Test Test 0265: @property appearing on the head element gets the subject from <html>, ie, parent

Input

<!DOCTYPE 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>

Expected Result

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<http://www.example.com> rdfs:seeAlso <http://www.example.org> .
Test Test 0266: @property without @content or @datatype, typed object set by @href and @typeof

Input

<!DOCTYPE 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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

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

Input

<!DOCTYPE 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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

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

Input

<!DOCTYPE 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" alt="Ivan Herman" />
</div>
</body>
</html>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

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

Input

<!DOCTYPE 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>

Expected Result

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0269.html> rdfs:comment "This is an RDFa test" .
Test Test 0271: Use of @property in HEAD with explicit parent subject via @about

Input

<!DOCTYPE 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>

Expected Result

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/> rdfs:comment "This is an RDFa test" .
Test Test 0289: @href becomes subject when @property and @content are present

Input

<!DOCTYPE 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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdf:value "value" .
Test Test 0290: @href becomes subject when @property and @datatype are present

Input

<!DOCTYPE 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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdf:value "value" .
Test Test 0291: @href as subject overridden by @about

Input

<!DOCTYPE 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="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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.net/> rdf:value "value" .
Test Test 0292: @about overriding @href as subject is used as parent resource

Input

<!DOCTYPE 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="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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.net/> rdf:value "value one",
"value two" .
Test Test 0293: Testing the ':' character usage in a CURIE

Input

<!DOCTYPE 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>

Expected Result

@prefix ex: <http://www.example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org> ex:column:test "Test" .
Test Test 0295: Benchmark test

Input

<!DOCTYPE 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/ cal: http://www.w3.org/2002/12/cal/icaltzd# cc: http://creativecommons.org/ns# cert: http://www.w3.org/ns/auth/cert# contact: http://www.w3.org/2000/10/swap/pim/contact# dc: http://purl.org/dc/terms/ dct: http://purl.org/dc/terms/ earl: http://www.w3.org/ns/earl# example: http://example.org/ ex: http://example.org/ foaf: http://xmlns.com/foaf/0.1/ google: http://rdf.data-vocabulary.org/# ical: http://www.w3.org/2002/12/cal/icaltzd# openid: http://xmlns.openid.net/auth# owl: http://www.w3.org/2002/07/owl# rdfatest: http://rdfa.info/vocabs/rdfa-test# 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/ rsa: http://www.w3.org/ns/auth/rsa# rss: http://web.resource.org/rss/1.0/ sioc: http://rdfs.org/sioc/ns# v: http://www.w3.org/2006/vcard/ns# wot: http://xmlns.com/wot/0.1/ xhv: http://www.w3.org/1999/xhtml/vocab# 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">
<img rel="xhv:next" />
</div>
<div rel="xhv:next">
<div rel="xhv:next">
<img 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>
<div 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>
</div>
</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 does not override @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>

Expected Result

@prefix : <http://xmlns.com/foaf/0.1/> .
@prefix cal: <http://www.w3.org/2002/12/cal/icaltzd#> .
@prefix cc: <http://creativecommons.org/ns#> .
@prefix ctag: <http://commontag.org/ns#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix earl: <http://www.w3.org/ns/earl#> .
@prefix ex: <http://www.example.org/> .
@prefix gr: <http://purl.org/goodrelations/v1#> .
@prefix grddl: <http://www.w3.org/2003/g/data-view#> .
@prefix ma: <http://www.w3.org/ns/ma-ont#> .
@prefix og: <http://ogp.me/ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix rdfatest: <http://rdfa.info/vocabs/rdfa-test#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rev: <http://purl.org/stuff/rev#> .
@prefix rif: <http://www.w3.org/2007/rif#> .
@prefix schema: <http://schema.org/> .
@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix skosxl: <http://www.w3.org/2008/05/skos-xl#> .
@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
@prefix void: <http://rdfs.org/ns/void#> .
@prefix wdr: <http://www.w3.org/2007/05/powder#> .
@prefix wdrs: <http://www.w3.org/2007/05/powder-s#> .
@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xmlzzz: <http://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.net/> rdf:value "value",
"value one",
"value two" .

xmlzzz: dct:title "Test Case 0121",
"Example Website";
rdf:value "value" ;
dct:contributor "Shane McCarron" .

xmlzzz:example.png a :Image;
xhv:license <http://creativecommons.org/licenses/by-nc-sa/2.0/> .

xmlzzz:foo xmlzzz:bar 10;
dct:creator "Mark Birbeck" .

xmlzzz:jd vcard:fn "John Doe" .

<http://internet-apps.blogspot.com/> dct:creator "Mark Birbeck" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0067.html> dct:title "Test 0067" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0077.html> xhv:license xmlzzz:license;
xhv:role xmlzzz:role .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0295.html> a :Document;
dct:title "E = mc2: The Most Urgent Problem of Our Time"^^xmlzzz:XMLLiteral,
"Test 0109";
cc:license <http://creativecommons.org/licenses/by-nc-nd/2.5/>,
<http://creativecommons.org/licenses/by-nd/3.0/>;
dct:creator "Albert Einstein", [], [ :name "Ben Adida"],
"Mark Birbeck",
<http://www-sop.inria.fr/acacia/fabien/>,
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0295.html#me>,
"Fabien Gandon",
<http://www.example.org/#manu>,
<http://www.example.org/#fabien>,
<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/jane>,
"Ben";
dct:publisher <http://www-sop.inria.fr/acacia/fabien/>,
"Fabien Gandon",
<http://www.example.org/#manu>,
<http://www.example.org/#fabien>;
rdf:inlist <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/res>;
rdf:value ("Foo" "Bar"), ("Foo" "Bar"), ("Foo"),
(),
"Baz", ("Foo"), ("Foo"), ("Foo" <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/foo>), (<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/foo>), (<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/foo> <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/bar>);
xhv:alternate xmlzzz:alternate;
xhv:appendix xmlzzz:appendix;
xhv:bookmark xmlzzz:bookmark;
xhv:chapter xmlzzz:chapter;
xhv:cite xmlzzz:cite;
xhv:contents xmlzzz:contents;
xhv:copyright xmlzzz:copyright;
xhv:first xmlzzz:first;
xhv:glossary xmlzzz:glossary;
xhv:help xmlzzz:help;
xhv:icon xmlzzz:icon;
xhv:index xmlzzz:index;
xhv:last xmlzzz:last;
xhv:license xmlzzz:license,
<http://creativecommons.org/licenses/by-nc-sa/2.0/>,
<http://creativecommons.org/licenses/by-nd/3.0/>;
xhv:meta xmlzzz:meta;
xhv:next <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0070.html>,
[ xhv:next [] ],
[],
xmlzzz:next;
xhv:p3pv1 xmlzzz:p3pv1;
xhv:prev <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0069.html>,
xmlzzz:prev;
xhv:role xmlzzz:role;
xhv:section xmlzzz:section;
xhv:start xmlzzz:start;
xhv:stylesheet xmlzzz:stylesheet;
xhv:subsection xmlzzz:subsection;
xhv:up xmlzzz:up;
rdfa:usesVocabulary :,
<http://example.org/wrong/foaf/uri/>,
<http://www.example.org/vocab#>;
:img <http://sw-app.org/img/mic_2007_01.jpg>;
:maker [
a :Document;
:name "John Doe"
],
<http://www.example.org/#me>;
:topic "John Doe" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0295.html#event1> a cal:Vevent;
cal:dtend "2006-10-23"^^xsd:date;
cal:dtstart "2006-10-21"^^xsd:date;
cal:location "Iona, UK";
cal:summary "Weekend off in Iona";
cal:url <http://freetime.example.org/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0295.html#interfenestration> xmlzzz:size [
xmlzzz:unit "character";
rdf:value "17"
] .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0295.html#mark> a :Person;
:firstName "Mark";
:name "<span property=\"foaf:firstName\" 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:ex=\"http://example.org/\" xmlns:example=\"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:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:rdfatest=\"http://rdfa.info/vocabs/rdfa-test#\" 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#\">Mark</span> <span property=\"foaf:surname\" 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:ex=\"http://example.org/\" xmlns:example=\"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:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:rdfatest=\"http://rdfa.info/vocabs/rdfa-test#\" 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#\">Birbeck</span>"^^rdf:XMLLiteral;
:surname "Birbeck" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0295.html#this> a dct:Agent;
:name "A particular agent" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0295.html#wtw> dct:identifier <urn:ISBN:0752820907> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/faq> dct:title "Example FAQ" .

<http://www.cwi.nl/~steven/> xmlzzz: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""" .

<http://www.example.org> xmlzzz:plainlit "This is a plain literal";
xmlzzz:xmllit "This is an XMLLiteral"^^rdf:XMLLiteral,
"""This is
an XMLLiteral"""^^rdf:XMLLiteral;
ex:column:test "Test" .

ex: dct:title "E = mc2: The Most Urgent Problem of Our Time" .

<http://www.example.org/#article> a sioc:Post,
:Document;
dct:title "My article" .

<http://www.example.org/#ben> a :Person;
:knows [ :name [ a :Person], [ a :Person]],
<http://www.example.org/#ivan>,
<http://www.example.org/#mark> .

<http://www.example.org/#matsumoto-kimiko> a :Person;
:name "松本 后子" .

ex:software <http://www.example.org/vocab#license> <http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231>;
xhv:license <http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .

xhv: dct:title "The XHTML Vocabulary Document" .

xsd:maxExclusive a owl:DatatypeProperty .

<http://www.w3.org/Person/Ivan#me> owl:sameAs <http://www.ivan-herman.net/foaf#me> .

xmlzzz:node xmlzzz:property """not an XML Literal,
whitespace preserved
""",
"""ελληνικό
άσπρο διάστημα
"""@el .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0295.html#a> dct:title "" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0295.html#me> xhv:name "Ivan Herman";
:name "Gregg Kellogg",
"Ben Adida",
"Ivan Herman" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/photo1.jpg> dct:title "Portrait of Mark";
dct:creator "Mark Birbeck",
<http://www.blogger.com/profile/1109404> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/res> rdf:value ("Bar"), ("Bar") .

<http://sw-app.org/img/mic_2006_03.jpg> xhv:alternate <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0295.html>;
:depicts <http://sw-app.org/mic.xhtml#i> .

<http://sw-app.org/mic.xhtml#photo> :depicts <http://sw-app.org/mic.xhtml#i> .

<http://www.blogger.com/profile/1109404> :img <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/photo1.jpg> .

<http://www.example.org/#ivan> :name "Ivan Herman" .

<http://www.example.org/#mark> :name "Mark Birbeck" .

<http://www.ivan-herman.net/Images/me2003-small.png> a :Image .

<http://www.ivan-herman.net/foaf#me> a :Person;
:depiction <http://www.ivan-herman.net/Images/me2003-small.png>;
:name "Iván" .

<mailto:manu.sporny@digitalbazaar.com> :knows <mailto:michael.hausenblas@joanneum.at> .

<http://danbri.org/foaf.rdf#danbri> a :Person;
:knows <http://www.example.org/#somebody>;
:name "Dan Brickley" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0295.html#b> dct:title "".

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0295.html>
dct:title "rdfagraph";
ctag: "CTAG";
cc: "CC";
cc:attributionURL <http://rdfa.info/>;
xmlzzz:entity1 ">";
xmlzzz:entity2 "Ben & Co.";
xmlzzz:entity3 "@";
xmlzzz:entity4 "@";
xmlzzz:test "Test";
og: "OG";
dct: "DC",
"DCTERMS";
dct:contributor "Mark Birbeck";
dct:language "Ruby";
gr: "GR";
rev: "REV";
rdfatest:cornerCase1 <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/>;
rdfatest:cornerCase2 <http://example.org/>;
rdfatest:cornerCase3 <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/...>;
rdfatest:cornerCase4 <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0295.html?foo=bar../baz>;
rdfatest:cornerCase5 <http://rdfa.info/test-suite/test-cases/.../.htaccess>;
void: "VOID";
sioc: "SIOC";
schema: "Schema";
rdf: "RDF";
rdf:value "2012-03"^^xsd:gYearMonth,
"not this",
"2012"^^xsd:gYear,
"P2011Y06M28DT00H00M00S"^^xsd:duration,
"00:00:00Z"^^xsd:time,
"2012-03-18T00:00:00Z"^^xsd:dateTime,
" 2012-03-18Z"^^xsd:dateTime,
"2012-03-18T00:00:00-08:00"^^xsd:dateTime,
"2012-03-18T00:00:00Z"^^xsd:date,
" 2012-03-18Z",
"2012-03-18Z"^^xsd:date,
"D-Day"@en,
"I came, I saw, I conquered"@lat,
"";
xhv: "XHV";
xhv:index <http://rdfa.info/test-suite/#>;
xhv:license xmlzzz:license, "License", "license";
xhv:next <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0115.html>;
xhv:role "Role";
xhv:up <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/>;
rdfs: "RDFS";
xsd: "XSD";
owl: "OWL";
cal: "ICAL";
grddl: "GRDDL";
skos: "SKOS";
vcard: "V",
"VCARD";
wdr: "WDR";
wdrs: "WDRS";
wdrs:describedby xmlzzz:describedby,
"DescribedBy";
rif: "RIF";
skosxl: "SKOS-XL";
xml: "XML";
earl:testcase [];
ma: "MA";
rdfa: "RDFa";
: "FOAF";
:img <http://sw-app.org/img/mic_2007_01.jpg>;
:maker <http://www.example.org/#me>, [
a :Person;
:name "John Doe"
] .

<http://www.example.org/#fabien> :name "Fabien Gandon" .

<http://www.example.org/#manu> :name "Manu Sporny" .

<http://www.example.org/#me> a :Person,
:Document;
:knows [ :name "John Doe"];
:name "John Doe" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/foo> rdf:value ("Foo"), ("Bar") .

<http://sw-app.org/img/mic_2007_01.jpg> :depicts <http://sw-app.org/mic.xhtml#i> .

<http://sw-app.org/mic.xhtml#i> :img <http://sw-app.org/mic.xhtml#photo>,
<http://sw-app.org/img/mic_2007_01.jpg>,
<http://sw-app.org/img/mic_2006_03.jpg> .

<http://www.example.org/#somebody> :knows <http://www.w3.org/People/Berners-Lee/card#i>, [
a :Person;
:name "Dan Brickley"
],
<http://www.ivan-herman.org/Ivan_Herman>, [
:mailbox <mailto:ivan@w3.org>;
:name "Ivan Herman"
], [
:knows <http://www.example.org/#somebody>;
:mailbox <mailto:ivan@w3.org>;
:name "Ivan Herman", [ a :Person]
], [
:mailbox <mailto:ivan@w3.org>;
:name "Ivan Herman", [ a :Person]
], [
:knows <http://www.example.org/#somebody>;
:mailbox <mailto:ivan@w3.org>;
:name "Ivan Herman"
],
<http://danbri.org/foaf.rdf#danbri>, [ :knows <http://www.w3.org/People/Berners-Lee/card#i>,
<http://www.ivan-herman.org/Ivan_Herman>,
<http://danbri.org/foaf.rdf#danbri>] .

[
:knows [ :name "Ralph Swick"];
:name "Manu Sporny"
] .

[
:knows <http://www.example.org/#somebody>;
:mailbox <mailto:ivan@w3.org>;
:name "Ivan Herman", [ a :Person]
] .

[
a :Person;
:name "John Doe"
] .

[
xhv:definition "a bi-pedal primate";
xhv:foo "Milky Way";
xhv:note "confused animal"
] .

_:gregg :knows [
:knows [
:knows <http://digitalbazaar.com/people/manu>;
:mbox <mailto:michael.hausenblas@joanneum.at>
],
_:gregg;
:mbox <mailto:manu.sporny@digitalbazaar.com>
];
:mbox <mailto:gregg@kellogg-assoc.com>;
:name "Gregg Kellogg" .
Test Test 0296: @property does set parent object without @typeof

Input

<!DOCTYPE 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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.com/gregg/#me> a foaf:Person;
foaf:homepage <http://example.com/gregg/>;
foaf:knows <http://example.com/niklas/#me>,
<http://example.com/ivan/#me>,
<http://example.com/manu/#me>,
<http://example.com/stéphane/#me>;
foaf:name "Gregg" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0296.html> rdfa:usesVocabulary foaf: .

<http://example.com/ivan/#me> a foaf:Person;
foaf:homepage <http://example.com/ivan/>;
foaf:name "Ivan" .

<http://example.com/manu/#me> a foaf:Person;
foaf:homepage <http://example.com/manu/>;
foaf:name "Manu" .

<http://example.com/niklas/#me> a foaf:Person;
foaf:homepage <http://example.com/niklas/>;
foaf:name "Niklas" .

<http://example.com/stéphane/#me> a foaf:Person;
foaf:homepage <http://example.com/stéphane/>;
foaf:name "Stéphane" .
Test Test 0297: @about=[] with @typeof does not create a new subject

Input

<!DOCTYPE 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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0297.html> foaf:name "Alex Milowski" .

[ a foaf:Person] .
Test Test 0298: @about=[] with @typeof does not create a new object

Input

<!DOCTYPE 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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
a foaf:Person;
foaf:name "Alex Milowski"
] .
Test Test 0299: @resource=[] with @href or @src uses @href or @src (@rel)

Input

<!DOCTYPE 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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://www.example.org/> xhv:license <http://www.example.org/license.xhtml> .
Test Test 0300: @resource=[] with @href or @src uses @href or @src (@property)

Input

<!DOCTYPE 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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://www.example.org/> xhv:license <http://www.example.org/license.xhtml> .
Test Test 0301: @property with @typeof creates a typed_resource for chaining

Input

<!DOCTYPE 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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<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"
];
rdfa:usesVocabulary <http://www.milowski.com/V/> .
Test Test 0302: @typeof with different content types

Input

<!DOCTYPE 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>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix schema: <http://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://openspring.net/scor#me> a dcterms:Agent,
foaf:Person,
schema:Person;
schema:homepage <http://openspring.net/>;
schema:name "Stéphane Corlosquet" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0302.html> rdfa:usesVocabulary schema: .
Test Test 0303: For HTML+RDFa 1.1, remove term elements of @rel/@rev when on same element as @property

Input

<!DOCTYPE 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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix schema: <http://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/base> schema:name "Gregg Kellogg";
schema:uri <http://example.orb/val1>;
foaf:homepage <http://greggkellogg.net/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0303.html> rdfa:usesVocabulary schema: .
Test Test 0311: Ensure no triples are generated when @property is empty

Input

<!DOCTYPE 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>

Expected Result


Test Test 0318: Setting @vocab to empty strings removes default vocabulary

Input

<!DOCTYPE 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 0318</title>
</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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0318.html> rdfa:usesVocabulary foaf: .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0318.html#me> foaf:name "Ivan Herman" .
Test Test 0319: Relative @profile

Input

<!DOCTYPE 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/"/>
<title>Test 0319</title>
</head>
<body prefix="pr: relative/iri#" xmlns:xpr="relative/uri#">
<p property="pr:prop xpr:prop">value</p>
</body>
</html>

Expected Result

@prefix pr: <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/relative/iri#> .
@prefix xpr: <http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/relative/uri#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.com/> pr:prop "value";
xpr:prop "value" .
Test Test 0320: @property binds to @href

Input

<!DOCTYPE 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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.com/gregg/#me> a foaf:Person;
foaf:homepage <http://example.com/gregg/>;
foaf:name "Gregg" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0320.html> rdfa:usesVocabulary foaf: .
Test Test 0329: Recursive triple generation

Input

<!DOCTYPE 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="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/foaf#me> foaf:familyName "Doe";
foaf:givenName "John";
foaf:name """
John
Doe
""" .
Test Test 0330: @datatype overrides inherited @lang

Input

<!DOCTYPE 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="dcterms: http://purl.org/dc/terms/ xsd: http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0330</title>
</head>
<body lang="en" xml:lang="en">
<div property="dc:date" datatype="xsd:date">2010-11-12</div>
</body>
</html>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0330.html> dcterms:date "2010-11-12"^^xsd:date .
Test Test 0331: @datatype overrides inherited @lang, with @content

Input

<!DOCTYPE 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="dcterms: http://purl.org/dc/terms/">
<head>
<title>Test 0331</title>
</head>
<body lang="en" xml:lang="en">
<div property="dcterms:language" datatype="dcterms:RFC5646" content="af">Afrikaans</div>
</body>
</html>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0331.html> dcterms:language "af"^^dcterms:RFC5646 .
Test Test 0332: Empty @datatype doesn't override inherited @lang, with @content

Input

<!DOCTYPE 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="dcterms: http://purl.org/dc/terms/">
<head>
<title>Test 0332</title>
</head>
<body lang="en" xml:lang="en">
<div property="dcterms:language" datatype="" content="af">Afrikaans</div>
</body>
</html>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html4/0332.html> dcterms:language "af"@en .
Test Test 0001: Predicate establishment with @property

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/photo1.jpg> dc11:creator "Mark Birbeck" .
Test Test 0006: @rel and @rev

Input

<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/elements/1.1/ 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/photo1.jpg> dc11:creator <http://www.blogger.com/profile/1109404> .

<http://www.blogger.com/profile/1109404> foaf:img <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/photo1.jpg> .
Test Test 0007: @rel, @rev, @property, @content

Input

<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/elements/1.1/ 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/photo1.jpg> dc11:creator <http://www.blogger.com/profile/1109404>;
dc11:title "Portrait of Mark" .

<http://www.blogger.com/profile/1109404> foaf:img <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/photo1.jpg> .
Test Test 0008: empty string @about

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix cc: <http://creativecommons.org/ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0008.html> cc:license <http://creativecommons.org/licenses/by-nc-nd/2.5/> .
Test Test 0009: @rev

Input

<!DOCTYPE html>
<html prefix="foaf: http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0009</title>
<link about="http://example.org/people#Person1" rel=""
rev="foaf:knows" href="http://example.org/people#Person2" />

</head>
<body>
<p></p>
</body>
</html>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://example.org/people#Person2> foaf:knows <http://example.org/people#Person1> .
Test Test 0010: @rel, @rev, @href

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://example.org/people#Person1> foaf:knows <http://example.org/people#Person2> .

<http://example.org/people#Person2> foaf:knows <http://example.org/people#Person1> .
Test Test 0014: @datatype, xsd:integer

Input

<!DOCTYPE html>
<html prefix="ex: http://example.org/ 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>

Expected Result

@prefix ex: <http://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

ex:foo ex:bar 10 .
Test Test 0015: meta and link

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0015.html> dc11:creator "Fyodor Dostoevsky";
dc11:source <urn:isbn:0140449132> .
Test Test 0017: Related blanknodes

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
foaf:knows [ foaf:name "Ralph Swick"];
foaf:name "Manu Sporny"
] .
Test Test 0018: @rel for predicate

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/photo1.jpg> dc11:creator <http://www.blogger.com/profile/1109404> .
Test Test 0020: Inheriting @about for subject

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/photo1.jpg> dc11:creator "Mark Birbeck" .
Test Test 0021: Subject inheritance with no @about

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0021.html> dc11:creator "Mark Birbeck" .
Test Test 0023: @id does not generate subjects

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0023.html> dc11:creator "Mark Birbeck" .
Test Test 0025: simple chaining test

Input

<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/elements/1.1/ 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0025.html> dc11: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> foaf:name "Ben Adida" .
Test Test 0026: @content

Input

<!DOCTYPE html>
<html prefix="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"></span>
</p>
</body>


</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://internet-apps.blogspot.com/> dc11:creator "Mark Birbeck" .
Test Test 0027: @content, ignore element content

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://internet-apps.blogspot.com/> dc11:creator "Mark Birbeck" .
Test Test 0029: markup stripping with @datatype

Input

<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/elements/1.1/ 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/foo> dc11:creator "Mark Birbeck" .
Test Test 0030: omitted @about

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix cc: <http://creativecommons.org/ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0030.html> cc:license <http://creativecommons.org/licenses/by-nc-nd/2.5/> .
Test Test 0031: simple @resource

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0031.html#wtw> dc11:identifier <urn:ISBN:0752820907> .
Test Test 0032: @resource overrides @href

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0032.html#wtw> dc11:identifier <urn:ISBN:0752820907> .
Test Test 0033: simple chaining test with bNode

Input

<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/elements/1.1/ 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0033.html> dc11:creator [ foaf:name "Ben Adida"] .
Test Test 0034: simple img[@src] test

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/mic.xhtml#i> foaf:img <http://sw-app.org/img/mic_2007_01.jpg> .
Test Test 0036: @src/@resource test

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/mic.xhtml#i> foaf:img <http://sw-app.org/img/mic_2006_03.jpg> .
Test Test 0038: @rev - img[@src] test

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/img/mic_2007_01.jpg> foaf:depicts <http://sw-app.org/mic.xhtml#i> .
Test Test 0048: @typeof with @about and @rel present, no @resource

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#me> a foaf:Person;
foaf:knows [ foaf:name "John Doe"] .
Test Test 0049: @typeof with @about, no @rel or @resource

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#me> a foaf:Person;
foaf:name "John Doe" .
Test Test 0050: @typeof without anything else

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
a foaf:Person;
foaf:name "John Doe"
] .
Test Test 0051: @typeof with a single @property

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0051.html> a foaf:Document;
foaf:topic "John Doe" .
Test Test 0052: @typeof with @resource and nothing else

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://www.example.org/#me> a foaf:Person .
Test Test 0053: @typeof with @resource and nothing else, with a subelement

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#me> a foaf:Person;
foaf:name "John Doe" .
Test Test 0054: multiple @property

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0054.html> dc11:creator "Fabien Gandon";
dc11:publisher "Fabien Gandon" .
Test Test 0055: multiple @rel

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0055.html> dc11:creator <http://www-sop.inria.fr/acacia/fabien/>;
dc11:publisher <http://www-sop.inria.fr/acacia/fabien/> .
Test Test 0056: @typeof applies to @about on same element with hanging rel

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#ben> a foaf:Person;
foaf:knows <http://www.example.org/#mark> .

<http://www.example.org/#mark> foaf:name "Mark Birbeck" .
Test Test 0057: hanging @rel creates multiple triples

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#ben> foaf:knows <http://www.example.org/#ivan>,
<http://www.example.org/#mark> .

<http://www.example.org/#ivan> foaf:name "Ivan Herman" .

<http://www.example.org/#mark> foaf:name "Mark Birbeck" .
Test Test 0059: multiple hanging @rels with multiple children

Input

<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/elements/1.1/ 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0059.html> dc11:creator <http://www.example.org/#manu>,
<http://www.example.org/#fabien>;
dc11:publisher <http://www.example.org/#manu>,
<http://www.example.org/#fabien> .

<http://www.example.org/#fabien> foaf:name "Fabien Gandon" .

<http://www.example.org/#manu> foaf:name "Manu Sporny" .
Test Test 0060: UTF-8 conformance

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#matsumoto-kimiko> a foaf:Person;
foaf:name "松本 后子" .
Test Test 0063: @rel in head using reserved XHTML value and empty-prefix CURIE syntax

Input

<!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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0063.html> xhv:next <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0064.html> .
Test Test 0064: @about with safe CURIE

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

[ foaf:knows <http://digitalbazaar.com/people/manu>] .
Test Test 0065: @rel with safe CURIE

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

[
foaf:knows [ foaf:mbox <mailto:michael.hausenblas@joanneum.at>];
foaf:mbox <mailto:manu.sporny@digitalbazaar.com>
] .
Test Test 0066: @about with @typeof in the head

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0066.html> a foaf:Document .
Test Test 0067: @property in the head

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0067.html> foaf:topic "Test 0067" .
Test Test 0068: Relative URI in @about

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0067.html> dc11:title "Test 0067" .
Test Test 0069: Relative URI in @href

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0069.html> xhv:next <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0070.html> .
Test Test 0070: Relative URI in @resource

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0070.html> xhv:prev <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0069.html> .
Test Test 0071: No explicit @about

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix cc: <http://creativecommons.org/ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0071.html> cc:license <http://creativecommons.org/licenses/by-nd/3.0/> .
Test Test 0072: Relative URI in @about (with XHTML base in head)

Input

<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"/>
<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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/faq> dc11:title "Example FAQ" .
Test Test 0073: Relative URI in @resource (with XHTML base in head)

Input

<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"/>
<title>Test 0073</title>
</head>
<body>
<p>
This article was written by
<span rel="dc:creator" resource="jane">Jane</span>.
</p>
</body>
</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://www.example.org/> dc11:creator <http://www.example.org/jane> .
Test Test 0074: Relative URI in @href (with XHTML base in head)

Input

<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"/>
<title>Test 0074</title>
</head>
<body>
<p>
This article was written by
<a rel="dc:creator" href="jane">Jane</a>.
</p>
</body>
</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://www.example.org/> dc11:creator <http://www.example.org/jane> .
Test Test 0075: Reserved word 'license' in @rel with no explicit @about

Input

<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"/>
<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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://www.example.org/> xhv:license <http://creativecommons.org/licenses/by-nd/3.0/> .
Test Test 0080: @about overrides @resource in incomplete triples

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://www.example.org/#somebody> foaf:knows <http://danbri.org/foaf.rdf#danbri> .
Test Test 0083: multiple ways of handling incomplete triples (merged)

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#somebody> foaf:knows [
foaf:mailbox <mailto:ivan@w3.org>;
foaf:name "Ivan Herman"
],
<http://danbri.org/foaf.rdf#danbri> .

<http://danbri.org/foaf.rdf#danbri> a foaf:Person;
foaf:name "Dan Brickley" .
Test Test 0084: multiple ways of handling incomplete triples, this time with both @rel and @rev

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://danbri.org/foaf.rdf#danbri> a foaf:Person;
foaf:knows <http://www.example.org/#somebody>;
foaf:name "Dan Brickley" .

<http://www.example.org/#somebody> foaf:knows [
foaf:knows <http://www.example.org/#somebody>;
foaf:mailbox <mailto:ivan@w3.org>;
foaf:name "Ivan Herman"
],
<http://danbri.org/foaf.rdf#danbri> .
Test Test 0088: Interpretation of the CURIE "_:"

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#somebody> foaf:knows [
a foaf:Person;
foaf:name "Dan Brickley"
] .
Test Test 0089: @src sets a new subject (@typeof)

Input

<!DOCTYPE html>
<html prefix="foaf: http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0089</title>
</head>
<body>
<div>
<img src="http://example.org/example.png" typeof="foaf:Image" alt="example image" />
</div>
</body>
</html>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://example.org/example.png> a foaf:Image .
Test Test 0091: Non-reserved, un-prefixed CURIE in @property

Input

<!DOCTYPE html>
<html>
<head>
<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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
xhv:definition "a bi-pedal primate";
xhv:foo "Milky Way";
xhv:note "confused animal"
] .
Test Test 0093: Tests XMLLiteral content with explicit @datatype (user-data-typed literal)

Input

<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/elements/1.1/ ex: http://www.example.org/">
<head>
<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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix ex: <http://www.example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0093.html> dc11:creator "Albert Einstein";
dc11:title "E = mc2: The Most Urgent Problem of Our Time"^^ex:XMLLiteral .
Test Test 0099: Preservation of white space in literals

Input

<!DOCTYPE html>
<html prefix="example: http://www.example.org/">
<head>
<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>

Expected Result

@prefix example: <http://www.example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.cwi.nl/~steven/> 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""" .
Test Test 0104: rdf:value

Input

<!DOCTYPE html>
<html prefix="rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# example: http://www.example.org/">
<head>
<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>

Expected Result

@prefix example: <http://www.example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0104.html#interfenestration> example:size [
example:unit "character";
rdf:value "17"
] .
Test Test 0106: chaining with empty value in inner @rel

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0106.html> dc11:creator [] .
Test Test 0107: no garbage collecting bnodes

Input

<!DOCTYPE html>
<html prefix="ex: http://example.org/">
<head>
<title>Test 0107</title>
</head>
<body>
<div rel="next"></div>
</body>
</html>

Expected Result


Test Test 0110: bNode generated even though no nested @about exists

Input

<!DOCTYPE html>
<html prefix="xhv: http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0110</title>
</head>
<body>
<div rel="xhv:next">
<div rel="xhv:next"></div>
</div>
</body>
</html>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0110.html> xhv:next [] .
Test Test 0111: two bNodes generated after three levels of nesting

Input

<!DOCTYPE html>
<html prefix="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>
</div>
</body>
</html>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0111.html> xhv:next [ xhv:next []] .
Test Test 0112: plain literal with datatype=""

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix ex: <http://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

ex:node ex:property """not an XML Literal,
whitespace preserved
""" .
Test Test 0115: XML Entities must be supported by RDFa parser

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix ex: <http://www.example.com/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0115.html> ex:entity1 ">";
ex:entity2 "Ben & Co.";
ex:entity3 "@";
ex:entity4 "@" .
Test Test 0117: Fragment identifiers stripped from BASE

Input

<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/tc117.xhtml#fragment"/>
<title property="dc:title">Test 0117</title>
</head>
<body>
<p>
<span property="dc:contributor">Mark Birbeck</span>
added this triple test.
</p>
</body>
</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/tc117.xhtml> dc11:contributor "Mark Birbeck";
dc11:title "Test 0117" .
Test Test 0118: empty string "" is not equivalent to NULL - @about

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0118.html> dc11:creator "Ben" .
Test Test 0119: "[prefix:]" CURIE format is valid

Input

<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/elements/1.1/ 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix example: <http://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

example: dc11:title "Example Website" .
Test Test 0120: "[:]" CURIE format is valid

Input

<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/elements/1.1/ 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

xhv: dc11:title "The XHTML Vocabulary Document" .
Test Test 0122: resource="[]" does not set the object

Input

<!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>

Expected Result


Test Test 0126: Multiple @typeof values

Input

<!DOCTYPE html>
<html prefix="dct: http://purl.org/dc/terms/ sioc: http://rdfs.org/sioc/ns# 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>

Expected Result

@prefix dct: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#article> a sioc:Post,
foaf:Document;
dct:title "My article" .
Test Test 0134: Uppercase reserved words

Input

<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<link rel="LICENSE" href="http://example.org/test.css" />
</head>
<body>
</body>
</html>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0134.html> xhv:license <http://example.org/test.css> .
Test Test 0140: Blank nodes identifiers are not allowed as predicates

Input

<!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>

Expected Result


Test Test 0174: Support single character prefix in CURIEs

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/jd> vcard:fn "John Doe" .
Test Test 0175: IRI for @property is allowed

Input

<!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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[ foaf:name "Gregg Kellogg"] .
Test Test 0176: IRI for @rel and @rev is allowed

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

_:gregg foaf:knows [
foaf:knows _:gregg;
foaf:mbox <mailto:manu.sporny@digitalbazaar.com>
];
foaf:mbox <mailto:gregg@kellogg-assoc.com> .
Test Test 0177: Test @prefix

Input

<!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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/#me> foaf:name "Ivan Herman" .
Test Test 0178: Test @prefix with multiple mappings

Input

<!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>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/#this> a dcterms:Agent;
foaf:name "A particular agent" .
Test Test 0181: Test default XHTML vocabulary

Input

<!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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://www.example.org/software> xhv:license <http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
Test Test 0182: Test prefix locality

Input

<!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>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/#this> a dcterms:Agent;
foaf:name "A particular agent" .
Test Test 0186: @vocab after subject declaration

Input

<!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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdfa:usesVocabulary foaf: .

<http://example.org/#me> foaf:name "Ivan Herman" .
Test Test 0187: @vocab redefinition

Input

<!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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdfa:usesVocabulary foaf:,
<http://example.org/wrong/foaf/uri/> .

<http://example.org/#me> foaf:name "Ivan Herman" .
Test Test 0188: @vocab only affects predicates

Input

<!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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdfa:usesVocabulary foaf: .

<http://example.org/#me> foaf:name "Ivan Herman" .
Test Test 0189: @vocab overrides default term

Input

<!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>

Expected Result

@prefix rdfa: <http://www.w3.org/ns/rdfa#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0189.html> rdfa:usesVocabulary <http://www.example.org/vocab#> .

<http://www.example.org/software> <http://www.example.org/vocab#license> <http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
Test Test 0190: Test term case insensitivity

Input

<!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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://www.example.org/software> xhv:license <http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
Test Test 0196: Test process explicit XMLLiteral

Input

<!DOCTYPE html>
<html prefix="ex: http://example.org/rdf/ 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>

Expected Result

@prefix ex: <http://example.org/rdf/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org> ex:plainlit "This is a plain literal";
ex:xmllit "This is an XMLLiteral"^^rdf:XMLLiteral .
Test Test 0197: Test TERMorCURIEorAbsURI requires an absolute URI

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/me> dcterms:language "Ruby" .
Test Test 0206: Usage of Initial Context

Input

<!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>

Expected Result

@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

xsd:maxExclusive a owl:DatatypeProperty .
Test Test 0207: Vevent using @typeof

Input

<!DOCTYPE html>
<html prefix="cal: http://www.w3.org/2002/12/cal/icaltzd# 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>

Expected Result

@prefix cal: <http://www.w3.org/2002/12/cal/icaltzd#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0207.html#event1> a cal:Vevent;
cal:dtend "2006-10-23"^^xsd:date;
cal:dtstart "2006-10-21"^^xsd:date;
cal:location "Iona, UK";
cal:summary "Weekend off in Iona";
cal:url <http://freetime.example.org/> .
Test Test 0213: Datatype generation for a literal with XML content, version 1.1

Input

<!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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/> dc11:title "E = mc2: The Most Urgent Problem of Our Time" .
Test Test 0214: Root element has implicit @about=""

Input

<!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>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0214.html> a foaf:Document;
dcterms:title "Test 0214" .
Test Test 0216: Proper character encoding detection in spite of large headers

Input

<!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" />
<title>Test 0216</title>
</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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.ivan-herman.net/foaf#me> foaf:name "Iván" .
Test Test 0217: @vocab causes rdfa:usesVocabulary triple to be added

Input

<!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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdfa:usesVocabulary foaf: .

<http://example.org/#me> foaf:name "Gregg Kellogg" .
Test Test 0218: @inlist to create empty list

Input

<!DOCTYPE html>
<html>
<head>
<title>Test 0218</title>
</head>
<body>
<div about ="">
<p rel="rdf:value" inlist=""></p>
</div>
</body>
</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0218.html> rdf:value () .
Test Test 0219: @inlist with literal

Input

<!DOCTYPE html>
<html>
<head>
<title>Test 0219</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
</div>
</body>
</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0219.html> rdf:value ("Foo") .
Test Test 0220: @inlist with IRI

Input

<!DOCTYPE html>
<html>
<head>
<title>Test 0220</title>
</head>
<body>
<div about="">
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
</body>
</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0220.html> rdf:value (<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/foo>) .
Test Test 0221: @inlist with hetrogenious membership

Input

<!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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0221.html> rdf:value ("Foo" <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/foo>) .
Test Test 0224: @inlist hanging @rel

Input

<!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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0224.html> rdf:value (<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/foo> <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/bar>) .
Test Test 0225: @inlist on different elements with same subject

Input

<!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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/foo> rdf:value ("Foo"), ("Bar") .
Test Test 0228: 1.1 alternate for test 0040: @rev - @src/@resource test

Input

<!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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://sw-app.org/img/mic_2006_03.jpg> xhv:alternate <http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0228.html> .
Test Test 0229: img[@src] test with omitted @about

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0229.html> foaf:img <http://sw-app.org/img/mic_2007_01.jpg> .
Test Test 0231: Set image license information

Input

<!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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://example.org/example.png> xhv:license <http://creativecommons.org/licenses/by-nc-sa/2.0/> .
Test Test 0232: @typeof with @rel present, no @href, @resource, or @about (1.1 behavior of 0046);

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0232.html> foaf:maker [
a foaf:Person;
foaf:name "John Doe"
] .
Test Test 0233: @typeof with @rel and @resource present, no @about (1.1 behavior of 0047)

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0233.html> foaf:maker <http://www.example.org/#me> .

<http://www.example.org/#me> a foaf:Person;
foaf:name "John Doe" .
Test Test 0246: hanging @rel creates multiple triples, @typeof permutation; RDFa 1.1 version

Input

<!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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#ben> foaf:knows [
a foaf:Person;
foaf:name "Ivan Herman"
], [
a foaf:Person;
foaf:name "Mark Birbeck"
] .
Test Test 0247: Multiple incomplete triples, RDFa 1.1version

Input

<!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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#somebody> foaf:knows [
foaf:mailbox <mailto:ivan@w3.org>;
foaf:name "Ivan Herman"
], [
a foaf:Person;
foaf:name "Mark Birbeck"
] .
Test Test 0248: multiple ways of handling incomplete triples (with @rev); RDFa 1.1 version

Input

<!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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
a foaf:Person;
foaf:knows <http://www.example.org/#somebody>;
foaf:name "Mark Birbeck"
] .

[
foaf:knows <http://www.example.org/#somebody>;
foaf:mailbox <mailto:ivan@w3.org>;
foaf:name "Ivan Herman"
] .
Test Test 0249: multiple ways of handling incomplete triples (with @rel and @rev); RDFa 1.1 version

Input

<!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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#somebody> foaf:knows [
a foaf:Person;
foaf:knows <http://www.example.org/#somebody>;
foaf:name "Mark Birbeck"
], [
foaf:knows <http://www.example.org/#somebody>;
foaf:mailbox <mailto:ivan@w3.org>;
foaf:name "Ivan Herman"
] .
Test Test 0250: Checking the right behaviour of @typeof with @about, in presence of @property

Input

<!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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.ivan-herman.net/foaf#me> a foaf:Person;
foaf:name "Ivan Herman" .
Test Test 0251: lang

Input

<!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>

Expected Result

@prefix ex: <http://example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

ex:node ex:property "chat"@fr .
Test Test 0252: lang inheritance

Input

<!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>

Expected Result

@prefix ex: <http://example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

ex:node ex:property "chat"@fr .
Test Test 0253: plain literal with datatype="" and lang preservation

Input

<!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>

Expected Result

@prefix ex: <http://example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

ex:node ex:property """ελληνικό
άσπρο διάστημα
"""@el .
Test Test 0254: @datatype="" generates plain literal in presence of child nodes

Input

<!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>

Expected Result

@prefix ex: <http://example.org/terms#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://example.org/> ex:prop "A plain literal with a lang tag."@en .
Test Test 0255: lang="" clears language setting

Input

<!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>

Expected Result

@prefix ex: <http://example.org/terms#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> ex:prop "Just a plain literal." .
Test Test 0257: element with @property and no child nodes generates empty plain literal (HTML5 version of 0113)

Input

<!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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0257.html#a> dc11:title "" .
Test Test 0259: XML+RDFa Initial Context

Input

<!DOCTYPE html>
<html>
<head>
<title>Test 0259</title>
</head>
<body>
<div>
Vocabulary Prefixes
<span property="csvw:">CSVW</span>
<span property="dcat:">DCAT</span>
<span property="qb:">QB</span>
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="org:">ORG</span>ORG
<span property="owl:">OWL</span>
<span property="prov:">PROV</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="rr:">RR</span>
<span property="sd:">SD</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>

Expected Result

@prefix cc: <http://creativecommons.org/ns#> .
@prefix csvw: <http://www.w3.org/ns/csvw#> .
@prefix ctag: <http://commontag.org/ns#> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix gr: <http://purl.org/goodrelations/v1#> .
@prefix grddl: <http://www.w3.org/2003/g/data-view#> .
@prefix ical: <http://www.w3.org/2002/12/cal/icaltzd#> .
@prefix ma: <http://www.w3.org/ns/ma-ont#> .
@prefix og: <http://ogp.me/ns#> .
@prefix org: <http://www.w3.org/ns/org#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix qb: <http://purl.org/linked-data/cube#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rev: <http://purl.org/stuff/rev#> .
@prefix rif: <http://www.w3.org/2007/rif#> .
@prefix rr: <http://www.w3.org/ns/r2rml#> .
@prefix schema: <http://schema.org/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .
@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix skosxl: <http://www.w3.org/2008/05/skos-xl#> .
@prefix v: <http://rdf.data-vocabulary.org/#> .
@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
@prefix void: <http://rdfs.org/ns/void#> .
@prefix wdr: <http://www.w3.org/2007/05/powder#> .
@prefix wdrs: <http://www.w3.org/2007/05/powder-s#> .
@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0259.html> ctag: "CTAG";
cc: "CC";
og: "OG";
dcterms: "DC",
"DCTERMS";
gr: "GR";
qb: "QB";
rev: "REV";
v: "V";
void: "VOID";
sioc: "SIOC";
schema: "Schema";
rdf: "RDF";
xhv: "XHV";
xhv:license "License";
xhv:role "Role";
rdfs: "RDFS";
xsd: "XSD";
owl: "OWL";
ical: "ICAL";
grddl: "GRDDL";
skos: "SKOS";
vcard: "VCARD";
wdr: "WDR";
wdrs: "WDRS";
wdrs:describedby "DescribedBy";
rif: "RIF";
skosxl: "SKOS-XL";
xml: "XML";
csvw: "CSVW";
dcat: "DCAT";
ma: "MA";
org: "ORG";
prov: "PROV";
rr: "RR";
rdfa: "RDFa";
sd: "SD";
foaf: "FOAF" .
Test Test 0261: White space preservation in XMLLiteral

Input

<!DOCTYPE html>
<html prefix="ex: http://example.org/rdf/ 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>

Expected Result

@prefix ex: <http://example.org/rdf/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://www.example.org> ex:xmllit """This is
an XMLLiteral"""^^rdf:XMLLiteral .
Test Test 0262: Predicate establishment with @property, with white spaces before and after the attribute value

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/photo1.jpg> dc11:creator "Mark Birbeck" .
Test Test 0263: @property appearing on the html element yields the base as the subject

Input

<!DOCTYPE html>
<html property="rdfs:seeAlso" resource="http://www.example.org">
<head >
<title>Test 0263</title>
</head>
<body>
<p> </p>
</body>
</html>

Expected Result

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0263.html> rdfs:seeAlso <http://www.example.org> .
Test Test 0264: @property appearing on the head element gets the subject from <html>, ie, parent

Input

<!DOCTYPE html>
<html>
<head property="rdfs:seeAlso" resource="http://www.example.org">
<title>Test 0264</title>
</head>
<body>
<p> </p>
</body>
</html>

Expected Result

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0264.html> rdfs:seeAlso <http://www.example.org> .
Test Test 0265: @property appearing on the head element gets the subject from <html>, ie, parent

Input

<!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>

Expected Result

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<http://www.example.com> rdfs:seeAlso <http://www.example.org> .
Test Test 0266: @property without @content or @datatype, typed object set by @href and @typeof

Input

<!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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

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

Input

<!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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

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

Input

<!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" alt="Ivan Herman" />
</div>
</body>
</html>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

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

Input

<!DOCTYPE html>
<html property="rdfs:comment" content="This is an RDFa test">
<head >
<title>Test 0269</title>
</head>
<body>
<p> </p>
</body>
</html>

Expected Result

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0269.html> rdfs:comment "This is an RDFa test" .
Test Test 0271: Use of @property in HEAD with explicit parent subject via @about

Input

<!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>

Expected Result

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/> rdfs:comment "This is an RDFa test" .
Test Test 0272: time element with @datetime an xsd:date

Input

<!DOCTYPE html>
<html>
<head>
<title>Test 0272</title>
</head>
<body>
<time property="rdf:value" datetime="2012-03-18">18 March 2012</time>
</body>
</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0272.html> rdf:value "2012-03-18"^^xsd:date .
Test Test 0273: time element with @datetime an xsd:time

Input

<!DOCTYPE html>
<html>
<head>
<title>Test 0273</title>
</head>
<body>
<time property="rdf:value" datetime="00:00:00">midnight</time>
</body>
</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0273.html> rdf:value "00:00:00"^^xsd:time .
Test Test 0274: time element with @datetime an xsd:dateTime

Input

<!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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0274.html> rdf:value "2012-03-18T00:00:00Z"^^xsd:dateTime .
Test Test 0275: time element with value an xsd:date

Input

<!DOCTYPE html>
<html>
<head>
<title>Test 0275</title>
</head>
<body>
<time property="rdf:value">2012-03-18</time>
</body>
</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0275.html> rdf:value "2012-03-18"^^xsd:date .
Test Test 0276: time element with value an xsd:time

Input

<!DOCTYPE html>
<html>
<head>
<title>Test 0275</title>
</head>
<body>
<time property="rdf:value">00:00:00</time>
</body>
</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0276.html> rdf:value "00:00:00"^^xsd:time .
Test Test 0277: time element with value an xsd:dateTime

Input

<!DOCTYPE html>
<html>
<head>
<title>Test 0277</title>
</head>
<body>
<time property="rdf:value">2012-03-18T00:00:00Z</time>
</body>
</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0277.html> rdf:value "2012-03-18T00:00:00Z"^^xsd:dateTime .
Test Test 0278: @content overrides @datetime

Input

<!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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0278.html> rdf:value "this should be the value" .
Test Test 0279: @datatype used with @datetime overrides default datatype

Input

<!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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0279.html> rdf:value "2012-03-18T00:00:00Z"^^xsd:date .
Test Test 0281: time element with @datetime an xsd:gYear

Input

<!DOCTYPE html>
<html>
<head>
<title>Test 0281</title>
</head>
<body>
<time property="rdf:value" datetime="2012">Two Thousand Twelve</time>
</body>
</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0281.html> rdf:value "2012"^^xsd:gYear .
Test Test 0282: time element with @datetime an xsd:gYearMonth

Input

<!DOCTYPE html>
<html>
<head>
<title>Test 0282</title>
</head>
<body>
<time property="rdf:value" datetime="2012-03">March, Two Thousand Twelve</time>
</body>
</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0282.html> rdf:value "2012-03"^^xsd:gYearMonth .
Test Test 0283: time element with @datetime an invalid datatype generates plain literal

Input

<!DOCTYPE html>
<html>
<head>
<title>Test 0283</title>
</head>
<body>
<time property="rdf:value"> 2012-03-18</time>
</body>
</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0283.html> rdf:value " 2012-03-18" .
Test Test 0284: time element not matching datatype but with explicit @datatype

Input

<!DOCTYPE html>
<html>
<head>
<title>Test 0284</title>
</head>
<body>
<time property="rdf:value" datatype="xsd:dateTime"> 2012-03-18</time>
</body>
</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0284.html> rdf:value " 2012-03-18"^^xsd:dateTime .
Test Test 0287: time element with @datetime an xsd:dateTime with TZ offset

Input

<!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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0287.html> rdf:value "2012-03-18T00:00:00-08:00"^^xsd:dateTime .
Test Test 0289: @href becomes subject when @property and @content are present

Input

<!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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdf:value "value" .
Test Test 0290: @href becomes subject when @property and @datatype are present

Input

<!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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdf:value "value" .
Test Test 0291: @href as subject overridden by @about

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.net/> rdf:value "value" .
Test Test 0292: @about overriding @href as subject is used as parent resource

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.net/> rdf:value "value one",
"value two" .
Test Test 0293: Testing the ':' character usage in a CURIE

Input

<!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>

Expected Result

@prefix ex: <http://www.example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org> ex:column:test "Test" .
Test Test 0296: @property does set parent object without @typeof

Input

<!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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.com/gregg/#me> a foaf:Person;
foaf:homepage <http://example.com/gregg/>;
foaf:knows <http://example.com/niklas/#me>,
<http://example.com/ivan/#me>,
<http://example.com/manu/#me>,
<http://example.com/stéphane/#me>;
foaf:name "Gregg" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0296.html> rdfa:usesVocabulary foaf: .

<http://example.com/ivan/#me> a foaf:Person;
foaf:homepage <http://example.com/ivan/>;
foaf:name "Ivan" .

<http://example.com/manu/#me> a foaf:Person;
foaf:homepage <http://example.com/manu/>;
foaf:name "Manu" .

<http://example.com/niklas/#me> a foaf:Person;
foaf:homepage <http://example.com/niklas/>;
foaf:name "Niklas" .

<http://example.com/stéphane/#me> a foaf:Person;
foaf:homepage <http://example.com/stéphane/>;
foaf:name "Stéphane" .
Test Test 0297: @about=[] with @typeof does not create a new subject

Input

<!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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0297.html> foaf:name "Alex Milowski" .

[ a foaf:Person] .
Test Test 0298: @about=[] with @typeof does not create a new object

Input

<!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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
a foaf:Person;
foaf:name "Alex Milowski"
] .
Test Test 0299: @resource=[] with @href or @src uses @href or @src (@rel)

Input

<!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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://www.example.org/> xhv:license <http://www.example.org/license.xhtml> .
Test Test 0300: @resource=[] with @href or @src uses @href or @src (@property)

Input

<!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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://www.example.org/> xhv:license <http://www.example.org/license.xhtml> .
Test Test 0301: @property with @typeof creates a typed_resource for chaining

Input

<!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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<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"
];
rdfa:usesVocabulary <http://www.milowski.com/V/> .
Test Test 0302: @typeof with different content types

Input

<!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>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix schema: <http://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://openspring.net/scor#me> a dcterms:Agent,
foaf:Person,
schema:Person;
schema:homepage <http://openspring.net/>;
schema:name "Stéphane Corlosquet" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0302.html> rdfa:usesVocabulary schema: .
Test Test 0311: Ensure no triples are generated when @property is empty

Input

<!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>

Expected Result


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

Input

<!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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix schema: <http://schema.org/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0312.html> rdfa:usesVocabulary schema: .

[
a schema:Person;
schema:homepage <http://example.org/>
] .
Test Test 0315: @property and @typeof with incomplete triples

Input

<!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>
<dd></dd>
</dl>
</body>
</html>

Expected Result

@prefix po: <http://example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0315.html> po:role [ rdfs:label [ a po:Role]] .
Test Test 0316: @property and @typeof with incomplete triples (@href variant)

Input

<!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>
<dd></dd>
</dl>
</body>
</html>

Expected Result

@prefix po: <http://example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0316.html> po:role [ rdfs:label <http://example.org/profiles/director.html>] .

<http://example.org/profiles/director.html> a po:Role .
Test Test 0317: @datatype inhibits new @property behavior

Input

<!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>
<dd></dd>
</dl>
</body>
</html>

Expected Result

@prefix po: <http://purl.org/ontology/po/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0317.html> po:role <http://example.org/profiles/director.html> .

<http://example.org/profiles/director.html> a po:Role;
rdfs:label "Director" .
Test Test 0318: Setting @vocab to empty strings removes default vocabulary

Input

<!DOCTYPE html>
<html>
<head>
<title>Test 0318</title>
</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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0318.html> rdfa:usesVocabulary foaf: .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0318.html#me> foaf:name "Ivan Herman" .
Test Test 0321: rdfa:copy to rdfa:Pattern

Input

<!DOCTYPE html>
<html>
<head>
<title>Test 0321</title>
</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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix schema: <http://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0321.html> rdfa:usesVocabulary schema: .

[
a schema:Person;
schema:name "Amanda"
] .
Test Test 0322: rdfa:copy for additional property value

Input

<!DOCTYPE html>
<html>
<head>
<title>Test 0322</title>
</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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix schema: <http://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0322.html> rdfa:usesVocabulary schema: .

[
a schema:Person;
schema:name "Gregg",
"Kellogg"
] .
Test Test 0323: Multiple references to rdfa:Pattern

Input

<!DOCTYPE html>
<html>
<head>
<title>Test 0323</title>
</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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix schema: <http://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
a foaf:Person;
schema:name "Amanda";
foaf:name "Amanda"
] .

[
a schema:Person;
schema:name "Amanda";
foaf:name "Amanda"
] .
Test Test 0324: Multiple references to rdfa:Pattern

Input

<!DOCTYPE html>
<html>
<head>
<title>Test 0324</title>
</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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix schema: <http://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
a schema:Person;
schema:band "Jazz Band";
schema:name "Amanda"
] .
Test Test 0325: Multiple references to rdfa:Pattern creating a resource

Input

<!DOCTYPE html>
<html>
<head>
<base href="http://example.org/"/>
<title>Test 0325</title>
</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>

Expected Result

@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix schema: <http://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdfa:usesVocabulary schema: .

<http://example.org/#bar> schema:refers-to _:g70125090349220 .

<http://example.org/#foo> schema:refers-to _:g70125090349220 .

_:g70125090349220 schema:name "Amanda" .
Test Test 0326: rdfa:Pattern removed only if referenced

Input

<!DOCTYPE html>
<html>
<head>
<base href="http://example.com/"/>
<title>Test 0326</title>
</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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix schema: <http://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.com/> rdfa:usesVocabulary schema: .

<http://example.com/#referencing> a schema:Person;
schema:name "Bella" .

<http://example.com/#unreferenced> a rdfa:Pattern;
schema:name "Lola" .
Test Test 0327: rdfa:Pattern chaining

Input

<!DOCTYPE html>
<html>
<head>
<base href="http://example.com/"/>
<title>Test 0327</title>
</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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix schema: <http://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
a schema:Person;
schema:band [
a schema:MusicGroup;
schema:name "Jazz Band";
schema:size "12"
];
schema:name "Amanda"
] .
Test Test 0328: @content overrides the content of the time element.

Input

<!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">2012-03-18</time>
</body>

</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0328.html> rdf:value "this should be the value" .
Test Test 0329: Recursive triple generation

Input

<!DOCTYPE html>
<html prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/foaf#me> foaf:familyName "Doe";
foaf:givenName "John";
foaf:name """
John
Doe
""" .
Test Test 0330: @datatype overrides inherited @lang

Input

<!DOCTYPE html>
<html prefix="dcterms: http://purl.org/dc/terms/ xsd: http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0330</title>
</head>
<body lang="en" xml:lang="en">
<div property="dc:date" datatype="xsd:date">2010-11-12</div>
</body>
</html>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0330.html> dcterms:date "2010-11-12"^^xsd:date .
Test Test 0331: @datatype overrides inherited @lang, with @content

Input

<!DOCTYPE html>
<html prefix="dcterms: http://purl.org/dc/terms/">
<head>
<title>Test 0331</title>
</head>
<body lang="en" xml:lang="en">
<div property="dcterms:language" datatype="dcterms:RFC5646" content="af">Afrikaans</div>
</body>
</html>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0331.html> dcterms:language "af"^^dcterms:RFC5646 .
Test Test 0332: Empty @datatype doesn't override inherited @lang, with @content

Input

<!DOCTYPE html>
<html prefix="dcterms: http://purl.org/dc/terms/">
<head>
<title>Test 0332</title>
</head>
<body lang="en" xml:lang="en">
<div property="dcterms:language" datatype="" content="af">Afrikaans</div>
</body>
</html>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0332.html> dcterms:language "af"@en .
Test Test 0333: @content overrides @datetime (with @datatype specified)

Input

<!DOCTYPE html>
<html>
<head>
<title>Test 0279</title>
</head>
<body>
<time property="rdf:value" content="2012-03-12" datetime="2012-03-11" datatype="xsd:date">10 March 2012 at midnight</time>
</body>
</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0333.html> rdf:value "2012-03-12"^^xsd:date .
Test Test 0334: @resource changes the current subject for the nested elements

Input

<!DOCTYPE html>
<html>
<head>
<title>Test 0334: @resource changes the current subject for the nested elements</title>
</head>
<body>
<div vocab="http://schema.org/" resource="http://example.org/base">
<a property="uri" href="http://example.orb/val1">Not This</a>
<div resource="http://greggkellogg.net/#me">
<a property="name" rel="homepage foaf:homepage" href="http://greggkellogg.net/">Gregg Kellogg</a>
</div>
</div>
</body>
</html>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix schema: <http://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/base> schema:uri <http://example.orb/val1> .

<http://greggkellogg.net/#me> schema:name "Gregg Kellogg";
foaf:homepage <http://greggkellogg.net/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0334.html> rdfa:usesVocabulary schema: .
Test Test 0001: Predicate establishment with @property

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/photo1.jpg> dc11:creator "Mark Birbeck" .
Test Test 0006: @rel and @rev

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="dc: http://purl.org/dc/elements/1.1/ 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/photo1.jpg> dc11:creator <http://www.blogger.com/profile/1109404> .

<http://www.blogger.com/profile/1109404> foaf:img <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/photo1.jpg> .
Test Test 0007: @rel, @rev, @property, @content

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="dc: http://purl.org/dc/elements/1.1/ 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/photo1.jpg> dc11:creator <http://www.blogger.com/profile/1109404>;
dc11:title "Portrait of Mark" .

<http://www.blogger.com/profile/1109404> foaf:img <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/photo1.jpg> .
Test Test 0008: empty string @about

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix cc: <http://creativecommons.org/ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0008.xhtml> cc:license <http://creativecommons.org/licenses/by-nc-nd/2.5/> .
Test Test 0009: @rev

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="foaf: http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0009</title>
<link about="http://example.org/people#Person1" rel=""
rev="foaf:knows" href="http://example.org/people#Person2" />

</head>
<body>
<p></p>
</body>
</html>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://example.org/people#Person2> foaf:knows <http://example.org/people#Person1> .
Test Test 0010: @rel, @rev, @href

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://example.org/people#Person1> foaf:knows <http://example.org/people#Person2> .

<http://example.org/people#Person2> foaf:knows <http://example.org/people#Person1> .
Test Test 0012: @xml:lang

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="ex: http://example.org/">
<head about="">
<title>Test 0012</title>
<meta about="http://example.org/node" property="ex:property" xml:lang="fr" content="chat" />
</head>
<body>
<p></p>
</body>
</html>

Expected Result

@prefix ex: <http://example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

ex:node ex:property "chat"@fr .
Test Test 0013: @xml:lang inheritance

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="ex: http://example.org/">
<head about="" xml:lang="fr">
<title xml:lang="en">Test 0013</title>
<meta about="http://example.org/node" property="ex:property" content="chat" />
</head>
<body>
<p></p>
</body>
</html>

Expected Result

@prefix ex: <http://example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

ex:node ex:property "chat"@fr .
Test Test 0014: @datatype, xsd:integer

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="ex: http://example.org/ 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>

Expected Result

@prefix ex: <http://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

ex:foo ex:bar 10 .
Test Test 0015: meta and link

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0015.xhtml> dc11:creator "Fyodor Dostoevsky";
dc11:source <urn:isbn:0140449132> .
Test Test 0017: Related blanknodes

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
foaf:knows [ foaf:name "Ralph Swick"];
foaf:name "Manu Sporny"
] .
Test Test 0018: @rel for predicate

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/photo1.jpg> dc11:creator <http://www.blogger.com/profile/1109404> .
Test Test 0019: @about for subject

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<mailto:manu.sporny@digitalbazaar.com> foaf:knows <mailto:michael.hausenblas@joanneum.at> .
Test Test 0020: Inheriting @about for subject

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/photo1.jpg> dc11:creator "Mark Birbeck" .
Test Test 0021: Subject inheritance with no @about

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0021.xhtml> dc11:creator "Mark Birbeck" .
Test Test 0023: @id does not generate subjects

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0023.xhtml> dc11:creator "Mark Birbeck" .
Test Test 0025: simple chaining test

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="dc: http://purl.org/dc/elements/1.1/ 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0025.xhtml> dc11:creator <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0025.xhtml#me> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0025.xhtml#me> foaf:name "Ben Adida" .
Test Test 0026: @content

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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"></span>
</p>
</body>


</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://internet-apps.blogspot.com/> dc11:creator "Mark Birbeck" .
Test Test 0027: @content, ignore element content

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://internet-apps.blogspot.com/> dc11:creator "Mark Birbeck" .
Test Test 0029: markup stripping with @datatype

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="dc: http://purl.org/dc/elements/1.1/ 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/foo> dc11:creator "Mark Birbeck" .
Test Test 0030: omitted @about

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix cc: <http://creativecommons.org/ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0030.xhtml> cc:license <http://creativecommons.org/licenses/by-nc-nd/2.5/> .
Test Test 0031: simple @resource

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0031.xhtml#wtw> dc11:identifier <urn:ISBN:0752820907> .
Test Test 0032: @resource overrides @href

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0032.xhtml#wtw> dc11:identifier <urn:ISBN:0752820907> .
Test Test 0033: simple chaining test with bNode

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="dc: http://purl.org/dc/elements/1.1/ 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0033.xhtml> dc11:creator [ foaf:name "Ben Adida"] .
Test Test 0034: simple img[@src] test

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/mic.xhtml#i> foaf:img <http://sw-app.org/img/mic_2007_01.jpg> .
Test Test 0035: @src/@href test

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/mic.xhtml#i> foaf:img <http://sw-app.org/img/mic_2006_03.jpg> .
Test Test 0036: @src/@resource test

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/mic.xhtml#i> foaf:img <http://sw-app.org/img/mic_2006_03.jpg> .
Test Test 0037: @src/@href/@resource test

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/mic.xhtml#i> foaf:img <http://sw-app.org/mic.xhtml#photo> .
Test Test 0038: @rev - img[@src] test

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/img/mic_2007_01.jpg> foaf:depicts <http://sw-app.org/mic.xhtml#i> .
Test Test 0039: @rev - @src/@href test

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/img/mic_2006_03.jpg> foaf:depicts <http://sw-app.org/mic.xhtml#i> .
Test Test 0041: @rev - @src/@href/@resource test

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/mic.xhtml#photo> foaf:depicts <http://sw-app.org/mic.xhtml#i> .
Test Test 0048: @typeof with @about and @rel present, no @resource

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#me> a foaf:Person;
foaf:knows [ foaf:name "John Doe"] .
Test Test 0049: @typeof with @about, no @rel or @resource

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#me> a foaf:Person;
foaf:name "John Doe" .
Test Test 0050: @typeof without anything else

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
a foaf:Person;
foaf:name "John Doe"
] .
Test Test 0051: @typeof with a single @property

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0051.xhtml> a foaf:Document;
foaf:topic "John Doe" .
Test Test 0052: @typeof with @resource and nothing else

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://www.example.org/#me> a foaf:Person .
Test Test 0053: @typeof with @resource and nothing else, with a subelement

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#me> a foaf:Person;
foaf:name "John Doe" .
Test Test 0054: multiple @property

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0054.xhtml> dc11:creator "Fabien Gandon";
dc11:publisher "Fabien Gandon" .
Test Test 0055: multiple @rel

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0055.xhtml> dc11:creator <http://www-sop.inria.fr/acacia/fabien/>;
dc11:publisher <http://www-sop.inria.fr/acacia/fabien/> .
Test Test 0056: @typeof applies to @about on same element with hanging rel

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#ben> a foaf:Person;
foaf:knows <http://www.example.org/#mark> .

<http://www.example.org/#mark> foaf:name "Mark Birbeck" .
Test Test 0057: hanging @rel creates multiple triples

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#ben> foaf:knows <http://www.example.org/#ivan>,
<http://www.example.org/#mark> .

<http://www.example.org/#ivan> foaf:name "Ivan Herman" .

<http://www.example.org/#mark> foaf:name "Mark Birbeck" .
Test Test 0059: multiple hanging @rels with multiple children

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="dc: http://purl.org/dc/elements/1.1/ 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0059.xhtml> dc11:creator <http://www.example.org/#manu>,
<http://www.example.org/#fabien>;
dc11:publisher <http://www.example.org/#manu>,
<http://www.example.org/#fabien> .

<http://www.example.org/#fabien> foaf:name "Fabien Gandon" .

<http://www.example.org/#manu> foaf:name "Manu Sporny" .
Test Test 0060: UTF-8 conformance

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#matsumoto-kimiko> a foaf:Person;
foaf:name "松本 后子" .
Test Test 0061: @rel in head using reserved, non-prefixed XHTML value

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0061</title>
<link rel="next" href="http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0062.xhtml" />
</head>
<body>
<p>This is the first chapter in a series of chapters.</p>
</body>
</html>

Expected Result

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0061.xhtml> <http://www.w3.org/1999/xhtml/vocab#next> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0062.xhtml> .
Test Test 0062: @rev in head using reserved, non-prefixed XHTML value

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0062</title>
<link rev="prev" href="http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0063.xhtml" />
</head>
<body>
<p>This is unit test #62. The next unit test is #63.</p>
</body>
</html>

Expected Result

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0063.xhtml> <http://www.w3.org/1999/xhtml/vocab#prev> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0062.xhtml> .
Test Test 0063: @rel in head using reserved XHTML value and empty-prefix CURIE syntax

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0063</title>
<link rel=":next" href="http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0064.xhtml" />
</head>
<body>
<p>This is the 63<sup>rd</sup> test. The next test is #64.</p>
</body>
</html>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0063.xhtml> xhv:next <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0064.xhtml> .
Test Test 0064: @about with safe CURIE

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

[ foaf:knows <http://digitalbazaar.com/people/manu>] .
Test Test 0065: @rel with safe CURIE

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

[
foaf:knows [ foaf:mbox <mailto:michael.hausenblas@joanneum.at>];
foaf:mbox <mailto:manu.sporny@digitalbazaar.com>
] .
Test Test 0066: @about with @typeof in the head

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0066.xhtml> a foaf:Document .
Test Test 0067: @property in the head

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0067.xhtml> foaf:topic "Test 0067" .
Test Test 0068: Relative URI in @about

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0067.xhtml> dc11:title "Test 0067" .
Test Test 0069: Relative URI in @href

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0069.xhtml> xhv:next <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0070.xhtml> .
Test Test 0070: Relative URI in @resource

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0070.xhtml> xhv:prev <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0069.xhtml> .
Test Test 0071: No explicit @about

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix cc: <http://creativecommons.org/ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0071.xhtml> cc:license <http://creativecommons.org/licenses/by-nd/3.0/> .
Test Test 0072: Relative URI in @about (with XHTML base in head)

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"/>
<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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/faq> dc11:title "Example FAQ" .
Test Test 0073: Relative URI in @resource (with XHTML base in head)

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"/>
<title>Test 0073</title>
</head>
<body>
<p>
This article was written by
<span rel="dc:creator" resource="jane">Jane</span>.
</p>
</body>
</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://www.example.org/> dc11:creator <http://www.example.org/jane> .
Test Test 0074: Relative URI in @href (with XHTML base in head)

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"/>
<title>Test 0074</title>
</head>
<body>
<p>
This article was written by
<a rel="dc:creator" href="jane">Jane</a>.
</p>
</body>
</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://www.example.org/> dc11:creator <http://www.example.org/jane> .
Test Test 0075: Reserved word 'license' in @rel with no explicit @about

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/"/>
<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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://www.example.org/> xhv:license <http://creativecommons.org/licenses/by-nd/3.0/> .
Test Test 0076: All reserved XHTML @rel values

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0076</title>
</head>
<body>
<p>
<a rel="alternate" href="http://example.org/alternate">alternate</a>
<a rel="appendix" href="http://example.org/appendix">appendix</a>
<a rel="bookmark" href="http://example.org/bookmark">bookmark</a>
<a rel="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>
</body>
</html>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0076.xhtml>
xhv:alternate <http://example.org/alternate> ;
xhv:appendix <http://example.org/appendix> ;
xhv:bookmark <http://example.org/bookmark> ;
xhv:cite <http://example.org/cite> ;
xhv:chapter <http://example.org/chapter> ;
xhv:contents <http://example.org/contents> ;
xhv:copyright <http://example.org/copyright> ;
xhv:glossary <http://example.org/glossary> ;
xhv:help <http://example.org/help> ;
xhv:icon <http://example.org/icon> ;
xhv:index <http://example.org/index> ;
xhv:meta <http://example.org/meta> ;
xhv:next <http://example.org/next> ;
xhv:p3pv1 <http://example.org/p3pv1> ;
xhv:prev <http://example.org/prev> ;
xhv:role <http://example.org/role> ;
xhv:section <http://example.org/section> ;
xhv:subsection <http://example.org/subsection> ;
xhv:start <http://example.org/start> ;
xhv:license <http://example.org/license> ;
xhv:up <http://example.org/up> ;
xhv:last <http://example.org/last> ;
xhv:stylesheet <http://example.org/stylesheet> ;
.
Test Test 0077: All reserved XHTML @rev values

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0077</title>
</head>
<body>
<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>
</body>
</html>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0077.xhtml>
xhv:alternate <http://example.org/alternate> ;
xhv:appendix <http://example.org/appendix> ;
xhv:bookmark <http://example.org/bookmark> ;
xhv:cite <http://example.org/cite> ;
xhv:chapter <http://example.org/chapter> ;
xhv:contents <http://example.org/contents> ;
xhv:copyright <http://example.org/copyright> ;
xhv:glossary <http://example.org/glossary> ;
xhv:help <http://example.org/help> ;
xhv:icon <http://example.org/icon> ;
xhv:index <http://example.org/index> ;
xhv:meta <http://example.org/meta> ;
xhv:next <http://example.org/next> ;
xhv:p3pv1 <http://example.org/p3pv1> ;
xhv:prev <http://example.org/prev> ;
xhv:role <http://example.org/role> ;
xhv:section <http://example.org/section> ;
xhv:subsection <http://example.org/subsection> ;
xhv:start <http://example.org/start> ;
xhv:license <http://example.org/license> ;
xhv:up <http://example.org/up> ;
xhv:first <http://example.org/first> ;
xhv:last <http://example.org/last> ;
xhv:stylesheet <http://example.org/stylesheet> ;
.
Test Test 0079: @resource and @href in completing incomplete triples

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://www.example.org/#somebody> foaf:knows <http://www.w3.org/People/Berners-Lee/card#i>,
<http://www.ivan-herman.org/Ivan_Herman>,
<http://danbri.org/foaf.rdf#danbri> .
Test Test 0080: @about overrides @resource in incomplete triples

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://www.example.org/#somebody> foaf:knows <http://danbri.org/foaf.rdf#danbri> .
Test Test 0083: multiple ways of handling incomplete triples (merged)

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#somebody> foaf:knows [
foaf:mailbox <mailto:ivan@w3.org>;
foaf:name "Ivan Herman"
],
<http://danbri.org/foaf.rdf#danbri> .

<http://danbri.org/foaf.rdf#danbri> a foaf:Person;
foaf:name "Dan Brickley" .
Test Test 0084: multiple ways of handling incomplete triples, this time with both @rel and @rev

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://danbri.org/foaf.rdf#danbri> a foaf:Person;
foaf:knows <http://www.example.org/#somebody>;
foaf:name "Dan Brickley" .

<http://www.example.org/#somebody> foaf:knows <http://danbri.org/foaf.rdf#danbri>, [
foaf:knows <http://www.example.org/#somebody>;
foaf:mailbox <mailto:ivan@w3.org>;
foaf:name "Ivan Herman"
] .
Test Test 0085: @resource and @href in completing incomplete triples

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://www.example.org/#somebody> foaf:knows [ foaf:knows <http://www.w3.org/People/Berners-Lee/card#i>,
<http://www.ivan-herman.org/Ivan_Herman>,
<http://danbri.org/foaf.rdf#danbri>] .
Test Test 0087: All reserved XHTML @rel values (with :xxx)

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0087.xhtml> xhv:alternate <http://example.org/alternate>;
xhv:appendix <http://example.org/appendix>;
xhv:bookmark <http://example.org/bookmark>;
xhv:chapter <http://example.org/chapter>;
xhv:cite <http://example.org/cite>;
xhv:contents <http://example.org/contents>;
xhv:copyright <http://example.org/copyright>;
xhv:first <http://example.org/first>;
xhv:glossary <http://example.org/glossary>;
xhv:help <http://example.org/help>;
xhv:icon <http://example.org/icon>;
xhv:index <http://example.org/index>;
xhv:last <http://example.org/last>;
xhv:license <http://example.org/license>;
xhv:meta <http://example.org/meta>;
xhv:next <http://example.org/next>;
xhv:p3pv1 <http://example.org/p3pv1>;
xhv:prev <http://example.org/prev>;
xhv:role <http://example.org/role>;
xhv:section <http://example.org/section>;
xhv:start <http://example.org/start>;
xhv:stylesheet <http://example.org/stylesheet>;
xhv:subsection <http://example.org/subsection>;
xhv:up <http://example.org/up> .
Test Test 0088: Interpretation of the CURIE "_:"

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#somebody> foaf:knows [
a foaf:Person;
foaf:name "Dan Brickley"
] .
Test Test 0089: @src sets a new subject (@typeof)

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="foaf: http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0089</title>
</head>
<body>
<div>
<img src="http://example.org/example.png" typeof="foaf:Image" alt="example image" />
</div>
</body>
</html>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://example.org/example.png> a foaf:Image .
Test Test 0091: Non-reserved, un-prefixed CURIE in @property

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
xhv:definition "a bi-pedal primate";
xhv:foo "Milky Way";
xhv:note "confused animal"
] .
Test Test 0093: Tests XMLLiteral content with explicit @datatype (user-data-typed literal)

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="dc: http://purl.org/dc/elements/1.1/ ex: http://www.example.org/">
<head>
<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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix ex: <http://www.example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0093.xhtml> dc11:creator "Albert Einstein";
dc11:title "E = mc2: The Most Urgent Problem of Our Time"^^ex:XMLLiteral .
Test Test 0099: Preservation of white space in literals

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="example: http://www.example.org/">
<head>
<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>

Expected Result

@prefix example: <http://www.example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.cwi.nl/~steven/> 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""" .
Test Test 0104: rdf:value

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# example: http://www.example.org/">
<head>
<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>

Expected Result

@prefix example: <http://www.example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0104.xhtml#interfenestration> example:size [
example:unit "character";
rdf:value "17"
] .
Test Test 0106: chaining with empty value in inner @rel

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0106.xhtml> dc11:creator [] .
Test Test 0107: no garbage collecting bnodes

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="ex: http://example.org/">
<head>
<title>Test 0107</title>
</head>
<body>
<div rel="next"></div>
</body>
</html>

Expected Result


Test Test 0108: plain literal with datatype="" and xml:lang preservation

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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="" xml:lang="el">ελληνικό
άσπρο διάστημα
</p>
</body>
</html>

Expected Result

@prefix ex: <http://example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

ex:node ex:property """ελληνικό
άσπρο διάστημα
"""@el .
Test Test 0110: bNode generated even though no nested @about exists

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="xhv: http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0110</title>
</head>
<body>
<div rel="xhv:next">
<div rel="xhv:next"></div>
</div>
</body>
</html>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0110.xhtml> xhv:next [] .
Test Test 0111: two bNodes generated after three levels of nesting

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>
</div>
</body>
</html>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0111.xhtml> xhv:next [ xhv:next []] .
Test Test 0112: plain literal with datatype=""

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix ex: <http://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

ex:node ex:property """not an XML Literal,
whitespace preserved
""" .
Test Test 0113: element with @property and no child nodes generates empty plain literal

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0113</title>
</head>
<body>
<span about="#a" property="dc:title"></span>
<span about="#b" property="dc:title" />
</body>
</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0113.xhtml#a> dc11:title "" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0113.xhtml#b> dc11:title "" .
Test Test 0114: Relative URI dot-segment removal

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="cc: http://creativecommons.org/ns# xhv: http://www.w3.org/1999/xhtml/vocab# 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>

Expected Result

@prefix cc: <http://creativecommons.org/ns#> .
@prefix rdfatest: <http://rdfa.info/vocabs/rdfa-test#> .
@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0114.xhtml> cc:attributionURL <http://rdfa.info/>;
rdfatest:cornerCase1 <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/>;
rdfatest:cornerCase3 <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/...>;
rdfatest:cornerCase4 <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0114.xhtml?foo=bar../baz>;
rdfatest:cornerCase5 <http://rdfa.info/test-suite/test-cases/.../.htaccess>;
xhv:index <http://rdfa.info/test-suite/#>;
xhv:next <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0115.xhtml>;
xhv:up <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/> .
Test Test 0115: XML Entities must be supported by RDFa parser

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix ex: <http://www.example.com/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0115.xhtml> ex:entity1 ">";
ex:entity2 "Ben & Co.";
ex:entity3 "@";
ex:entity4 "@" .
Test Test 0117: Fragment identifiers stripped from BASE

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<base href="http://www.example.org/tc117.xhtml#fragment"/>
<title property="dc:title">Test 0117</title>
</head>
<body>
<p>
<span property="dc:contributor">Mark Birbeck</span>
added this triple test.
</p>
</body>
</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/tc117.xhtml> dc11:contributor "Mark Birbeck";
dc11:title "Test 0117" .
Test Test 0118: empty string "" is not equivalent to NULL - @about

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0118.xhtml> dc11:creator "Ben" .
Test Test 0119: "[prefix:]" CURIE format is valid

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="dc: http://purl.org/dc/elements/1.1/ 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix example: <http://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

example: dc11:title "Example Website" .
Test Test 0120: "[:]" CURIE format is valid

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="dc: http://purl.org/dc/elements/1.1/ 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

xhv: dc11:title "The XHTML Vocabulary Document" .
Test Test 0121: "[]" is a valid safe CURIE

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0121</title>
</head>
<body>
<div>
<div 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>
</div>
</div>
</body>




</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/>
dc11:title "Test Case 0121" ;
dc11:contributor "Shane McCarron" .
Test Test 0122: resource="[]" does not set the object

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result


Test Test 0126: Multiple @typeof values

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="dct: http://purl.org/dc/terms/ sioc: http://rdfs.org/sioc/ns# 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>

Expected Result

@prefix dct: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#article> a sioc:Post,
foaf:Document;
dct:title "My article" .
Test Test 0131: Whitespace alternatives in attributes

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0131.xhtml> xhv:first <http://example.org/test.css>;
xhv:last <http://example.org/test.css>;
xhv:next <http://example.org/test.css>;
xhv:prev <http://example.org/test.css>;
xhv:subsection <http://example.org/test.css> .
Test Test 0134: Uppercase reserved words

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test</title>
<link rel="LICENSE" href="http://example.org/test.css" />
</head>
<body>
</body>
</html>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0134.xhtml> xhv:license <http://example.org/test.css> .
Test Test 0140: Blank nodes identifiers are not allowed as predicates

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result


Test Test 0147: xmlns prefix 'xmlzzz' (reserved)

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test</title>
</head>
<body>
<p xmlns:xmlzzz="http://example.org/" property="xmlzzz:test">Test</p>
</body>
</html>

Expected Result

@prefix xmlzzz: <http://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0147.xhtml> xmlzzz:test "Test" .
Test Test 0172: @datatype="" generates plain literal in presence of child nodes

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="ex: http://example.org/terms#">
<head>
<title>Test 0172</title>
<base href="http://example.org/"/>
</head>
<body xml:lang="en">
<p property="ex:prop" datatype="">A <strong>plain literal</strong> with a lang tag.</p>
</body>
</html>

Expected Result

@prefix ex: <http://example.org/terms#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://example.org/> ex:prop "A plain literal with a lang tag."@en .
Test Test 0173: @xml:lang="" clears language setting

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="ex: http://example.org/terms#">
<head>
<title>Test 0173</title>
<base href="http://example.org/"/>
</head>
<body xml:lang="en">
<p property="ex:prop" xml:lang="">Just a plain literal.</p>
</body>
</html>

Expected Result

@prefix ex: <http://example.org/terms#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> ex:prop "Just a plain literal." .
Test Test 0174: Support single character prefix in CURIEs

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/jd> vcard:fn "John Doe" .
Test Test 0175: IRI for @property is allowed

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[ foaf:name "Gregg Kellogg"] .
Test Test 0176: IRI for @rel and @rev is allowed

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

_:gregg foaf:knows [
foaf:knows _:gregg;
foaf:mbox <mailto:manu.sporny@digitalbazaar.com>
];
foaf:mbox <mailto:gregg@kellogg-assoc.com> .
Test Test 0177: Test @prefix

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/#me> foaf:name "Ivan Herman" .
Test Test 0178: Test @prefix with multiple mappings

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/#this> a dcterms:Agent;
foaf:name "A particular agent" .
Test Test 0179: Test @prefix vs @xmlns priority

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/#me> foaf:name "Ivan Herman" .
Test Test 0180: Test @prefix with empty mapping

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://example.org/#me> foaf:name "Ivan Herman" .
Test Test 0181: Test default XHTML vocabulary

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://www.example.org/software> xhv:license <http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
Test Test 0182: Test prefix locality

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/#this> a dcterms:Agent;
foaf:name "A particular agent" .
Test Test 0183: Test @xmlns redefines @prefix

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/#this> a dcterms:Agent;
foaf:name "A particular agent" .
Test Test 0186: @vocab after subject declaration

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdfa:usesVocabulary foaf: .

<http://example.org/#me> foaf:name "Ivan Herman" .
Test Test 0187: @vocab redefinition

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdfa:usesVocabulary foaf:,
<http://example.org/wrong/foaf/uri/> .

<http://example.org/#me> foaf:name "Ivan Herman" .
Test Test 0188: @vocab only affects predicates

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdfa:usesVocabulary foaf: .

<http://example.org/#me> foaf:name "Ivan Herman" .
Test Test 0189: @vocab overrides default term

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix rdfa: <http://www.w3.org/ns/rdfa#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0189.xhtml> rdfa:usesVocabulary <http://www.example.org/vocab#> .

<http://www.example.org/software> <http://www.example.org/vocab#license> <http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
Test Test 0190: Test term case insensitivity

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://www.example.org/software> xhv:license <http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
Test Test 0196: Test process explicit XMLLiteral

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="ex: http://example.org/rdf/ 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>

Expected Result

@prefix ex: <http://example.org/rdf/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org> ex:plainlit "This is a plain literal";
ex:xmllit "This is an XMLLiteral"^^rdf:XMLLiteral .
Test Test 0197: Test TERMorCURIEorAbsURI requires an absolute URI

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/me> dcterms:language "Ruby" .
Test Test 0198: datatype XMLLiteral with other embedded RDFa

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="foaf: http://xmlns.com/foaf/0.1/ 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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/me#mark> a foaf:Person;
foaf:firstName "Mark";
foaf: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>"^^rdf:XMLLiteral;
foaf:surname "Birbeck" .
Test Test 0206: Usage of Initial Context

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

xsd:maxExclusive a owl:DatatypeProperty .
Test Test 0207: Vevent using @typeof

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="cal: http://www.w3.org/2002/12/cal/icaltzd# 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>

Expected Result

@prefix cal: <http://www.w3.org/2002/12/cal/icaltzd#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0207.xhtml#event1> a cal:Vevent;
cal:dtend "2006-10-23"^^xsd:date;
cal:dtstart "2006-10-21"^^xsd:date;
cal:location "Iona, UK";
cal:summary "Weekend off in Iona";
cal:url <http://freetime.example.org/> .
Test Test 0213: Datatype generation for a literal with XML content, version 1.1

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/> dc11:title "E = mc2: The Most Urgent Problem of Our Time" .
Test Test 0214: Root element has implicit @about=""

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0214.xhtml> a foaf:Document;
dcterms:title "Test 0214" .
Test Test 0216: Proper character encoding detection in spite of large headers

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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" />
<title>Test 0216</title>
</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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.ivan-herman.net/foaf#me> foaf:name "Iván" .
Test Test 0217: @vocab causes rdfa:usesVocabulary triple to be added

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdfa:usesVocabulary foaf: .

<http://example.org/#me> foaf:name "Gregg Kellogg" .
Test Test 0218: @inlist to create empty list

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0218</title>
</head>
<body>
<div about ="">
<p rel="rdf:value" inlist=""></p>
</div>
</body>
</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0218.xhtml> rdf:value () .
Test Test 0219: @inlist with literal

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0219</title>
</head>
<body>
<div about="">
<p property="rdf:value" inlist="">Foo</p>
</div>
</body>
</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0219.xhtml> rdf:value ("Foo") .
Test Test 0220: @inlist with IRI

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0220</title>
</head>
<body>
<div about="">
<a rel="rdf:value" inlist="" href="foo">Foo</a>
</div>
</body>
</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0220.xhtml> rdf:value (<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/foo>) .
Test Test 0221: @inlist with hetrogenious membership

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0221.xhtml> rdf:value ("Foo" <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/foo>) .
Test Test 0222: @inlist with multi-level elements

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0222.xhtml> rdf:value ("Foo" "Bar") .
Test Test 0223: @inlist with non-list property

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0223.xhtml> rdf:value "Baz", ("Foo" "Bar") .
Test Test 0224: @inlist hanging @rel

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0224.xhtml> rdf:value (<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/foo> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/bar>) .
Test Test 0225: @inlist on different elements with same subject

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/foo> rdf:value ("Bar"), ("Foo") .
Test Test 0226: confusion between multiple implicit collections (resource)

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix ex: <http://www.example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0226.xhtml> ex:inlist <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/res>;
rdf:value ("Foo") .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/res> rdf:value ("Bar") .
Test Test 0227: confusion between multiple implicit collections (about)

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix ex: <http://www.example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0227.xhtml> ex:inlist <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/res>;
rdf:value ("Foo") .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/res> rdf:value ("Bar") .
Test Test 0228: 1.1 alternate for test 0040: @rev - @src/@resource test

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://sw-app.org/img/mic_2006_03.jpg> xhv:alternate <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0228.xhtml> .
Test Test 0229: img[@src] test with omitted @about

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0229.xhtml> foaf:img <http://sw-app.org/img/mic_2007_01.jpg> .
Test Test 0230: @src does not set a new subject (@rel/@href)

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0230.xhtml> xhv:license <http://creativecommons.org/licenses/by-nc-sa/2.0/> .
Test Test 0231: Set image license information

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://example.org/example.png> xhv:license <http://creativecommons.org/licenses/by-nc-sa/2.0/> .
Test Test 0232: @typeof with @rel present, no @href, @resource, or @about (1.1 behavior of 0046);

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0232.xhtml> foaf:maker [
a foaf:Person;
foaf:name "John Doe"
] .
Test Test 0233: @typeof with @rel and @resource present, no @about (1.1 behavior of 0047)

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0233.xhtml> foaf:maker <http://www.example.org/#me> .

<http://www.example.org/#me> a foaf:Person;
foaf:name "John Doe" .
Test Test 0234: All defined HTML link relation values

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix wdrs: <http://www.w3.org/2007/05/powder-s#> .
@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0234.xhtml> xhv:license <http://example.org/license>;
xhv:role <http://example.org/role>;
wdrs:describedby <http://example.org/describedby> .
Test Test 0246: hanging @rel creates multiple triples, @typeof permutation; RDFa 1.1 version

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#ben> foaf:knows [
a foaf:Person;
foaf:name "Ivan Herman"
], [
a foaf:Person;
foaf:name "Mark Birbeck"
] .
Test Test 0247: Multiple incomplete triples, RDFa 1.1version

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#somebody> foaf:knows [
a foaf:Person;
foaf:name "Mark Birbeck"
], [
foaf:mailbox <mailto:ivan@w3.org>;
foaf:name "Ivan Herman"
] .
Test Test 0248: multiple ways of handling incomplete triples (with @rev); RDFa 1.1 version

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
a foaf:Person;
foaf:knows <http://www.example.org/#somebody>;
foaf:name "Mark Birbeck"
] .

[
foaf:knows <http://www.example.org/#somebody>;
foaf:mailbox <mailto:ivan@w3.org>;
foaf:name "Ivan Herman"
] .
Test Test 0249: multiple ways of handling incomplete triples (with @rel and @rev); RDFa 1.1 version

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#somebody> foaf:knows [
foaf:knows <http://www.example.org/#somebody>;
foaf:mailbox <mailto:ivan@w3.org>;
foaf:name "Ivan Herman"
], [
a foaf:Person;
foaf:knows <http://www.example.org/#somebody>;
foaf:name "Mark Birbeck"
] .
Test Test 0250: Checking the right behaviour of @typeof with @about, in presence of @property

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.ivan-herman.net/foaf#me> a foaf:Person;
foaf:name "Ivan Herman" .
Test Test 0251: lang

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix ex: <http://example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

ex:node ex:property "chat"@fr .
Test Test 0252: lang inheritance

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix ex: <http://example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

ex:node ex:property "chat"@fr .
Test Test 0253: plain literal with datatype="" and lang preservation

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix ex: <http://example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

ex:node ex:property """ελληνικό
άσπρο διάστημα
"""@el .
Test Test 0254: @datatype="" generates plain literal in presence of child nodes

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix ex: <http://example.org/terms#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://example.org/> ex:prop "A plain literal with a lang tag."@en .
Test Test 0255: lang="" clears language setting

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix ex: <http://example.org/terms#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> ex:prop "Just a plain literal." .
Test Test 0256: lang and xml:lang on the same element

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" 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>

Expected Result

@prefix ex: <http://example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

ex:node ex:property "chat"@fr .
Test Test 0257: element with @property and no child nodes generates empty plain literal (HTML5 version of 0113)

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0257.xhtml#a> dc11:title "" .
Test Test 0258: The underscore character is not allowed as a prefix or in xmlns

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix earl: <http://www.w3.org/ns/earl#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0258.xhtml> earl:testcase [] .
Test Test 0259: XML+RDFa Initial Context

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0259</title>
</head>
<body>
<div>
Vocabulary Prefixes
<span property="csvw:">CSVW</span>
<span property="dcat:">DCAT</span>
<span property="qb:">QB</span>
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="org:">ORG</span>ORG
<span property="owl:">OWL</span>
<span property="prov:">PROV</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="rr:">RR</span>
<span property="sd:">SD</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>

Expected Result

@prefix cc: <http://creativecommons.org/ns#> .
@prefix csvw: <http://www.w3.org/ns/csvw#> .
@prefix ctag: <http://commontag.org/ns#> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix gr: <http://purl.org/goodrelations/v1#> .
@prefix grddl: <http://www.w3.org/2003/g/data-view#> .
@prefix ical: <http://www.w3.org/2002/12/cal/icaltzd#> .
@prefix ma: <http://www.w3.org/ns/ma-ont#> .
@prefix og: <http://ogp.me/ns#> .
@prefix org: <http://www.w3.org/ns/org#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix qb: <http://purl.org/linked-data/cube#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rev: <http://purl.org/stuff/rev#> .
@prefix rif: <http://www.w3.org/2007/rif#> .
@prefix rr: <http://www.w3.org/ns/r2rml#> .
@prefix schema: <http://schema.org/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .
@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix skosxl: <http://www.w3.org/2008/05/skos-xl#> .
@prefix v: <http://rdf.data-vocabulary.org/#> .
@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
@prefix void: <http://rdfs.org/ns/void#> .
@prefix wdr: <http://www.w3.org/2007/05/powder#> .
@prefix wdrs: <http://www.w3.org/2007/05/powder-s#> .
@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0259.xhtml> ctag: "CTAG";
cc: "CC";
og: "OG";
dcterms: "DC",
"DCTERMS";
gr: "GR";
qb: "QB";
rev: "REV";
v: "V";
void: "VOID";
sioc: "SIOC";
schema: "Schema";
rdf: "RDF";
xhv: "XHV";
xhv:license "License";
xhv:role "Role";
rdfs: "RDFS";
xsd: "XSD";
owl: "OWL";
ical: "ICAL";
grddl: "GRDDL";
skos: "SKOS";
vcard: "VCARD";
wdr: "WDR";
wdrs: "WDRS";
wdrs:describedby "DescribedBy";
rif: "RIF";
skosxl: "SKOS-XL";
xml: "XML";
csvw: "CSVW";
dcat: "DCAT";
ma: "MA";
org: "ORG";
prov: "PROV";
rr: "RR";
rdfa: "RDFa";
sd: "SD";
foaf: "FOAF" .
Test Test 0260: XHTML+RDFa Initial Context

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0259</title>
</head>
<body>
<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>
</body></html>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0260.xhtml>
# Vocabulary Terms
xhv:alternate "alternate";
xhv:appendix "appendix";
xhv:cite "cite";
xhv:bookmark "bookmark";
xhv:contents "contents";
xhv:chapter "chapter";
xhv:copyright "copyright";
xhv:first "first";
xhv:glossary "glossary";
xhv:help "help";
xhv:icon "icon";
xhv:index "index";
xhv:last "last";
xhv:license "license";
xhv:meta "meta";
xhv:next "next";
xhv:prev "prev";
xhv:previous "previous";
xhv:section "section";
xhv:start "start";
xhv:stylesheet "stylesheet";
xhv:subsection "subsection";
xhv:top "top";
xhv:up "up";

# Other terms
xhv:p3pv1 "p3pv1"
.
Test Test 0261: White space preservation in XMLLiteral

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="ex: http://example.org/rdf/ 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>

Expected Result

@prefix ex: <http://example.org/rdf/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://www.example.org> ex:xmllit """This is
an XMLLiteral"""^^rdf:XMLLiteral .
Test Test 0262: Predicate establishment with @property, with white spaces before and after the attribute value

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/photo1.jpg> dc11:creator "Mark Birbeck" .
Test Test 0263: @property appearing on the html element yields the base as the subject

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" property="rdfs:seeAlso" resource="http://www.example.org">
<head >
<title>Test 0263</title>
</head>
<body>
<p> </p>
</body>
</html>

Expected Result

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0263.xhtml> rdfs:seeAlso <http://www.example.org> .
Test Test 0264: @property appearing on the head element gets the subject from <html>, ie, parent

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head property="rdfs:seeAlso" resource="http://www.example.org">
<title>Test 0264</title>
</head>
<body>
<p> </p>
</body>
</html>

Expected Result

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0264.xhtml> rdfs:seeAlso <http://www.example.org> .
Test Test 0265: @property appearing on the head element gets the subject from <html>, ie, parent

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<http://www.example.com> rdfs:seeAlso <http://www.example.org> .
Test Test 0266: @property without @content or @datatype, typed object set by @href and @typeof

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

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

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

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

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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" alt="Ivan Herman" />
</div>
</body>
</html>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

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

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" property="rdfs:comment" content="This is an RDFa test">
<head >
<title>Test 0269</title>
</head>
<body>
<p> </p>
</body>
</html>

Expected Result

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0269.xhtml> rdfs:comment "This is an RDFa test" .
Test Test 0271: Use of @property in HEAD with explicit parent subject via @about

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/> rdfs:comment "This is an RDFa test" .
Test Test 0289: @href becomes subject when @property and @content are present

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdf:value "value" .
Test Test 0290: @href becomes subject when @property and @datatype are present

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdf:value "value" .
Test Test 0291: @href as subject overridden by @about

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.net/> rdf:value "value" .
Test Test 0292: @about overriding @href as subject is used as parent resource

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.net/> rdf:value "value one",
"value two" .
Test Test 0293: Testing the ':' character usage in a CURIE

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix ex: <http://www.example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org> ex:column:test "Test" .
Test Test 0295: Benchmark test

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="air: http://www.daml.org/2001/10/html/airport-ont# bio: http://vocab.org/bio/0.1/ cal: http://www.w3.org/2002/12/cal/icaltzd# cc: http://creativecommons.org/ns# cert: http://www.w3.org/ns/auth/cert# contact: http://www.w3.org/2000/10/swap/pim/contact# dc: http://purl.org/dc/terms/ dct: http://purl.org/dc/terms/ earl: http://www.w3.org/ns/earl# example: http://example.org/ ex: http://example.org/ foaf: http://xmlns.com/foaf/0.1/ google: http://rdf.data-vocabulary.org/# ical: http://www.w3.org/2002/12/cal/icaltzd# openid: http://xmlns.openid.net/auth# owl: http://www.w3.org/2002/07/owl# rdfatest: http://rdfa.info/vocabs/rdfa-test# 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/ rsa: http://www.w3.org/ns/auth/rsa# rss: http://web.resource.org/rss/1.0/ sioc: http://rdfs.org/sioc/ns# v: http://www.w3.org/2006/vcard/ns# wot: http://xmlns.com/wot/0.1/ xhv: http://www.w3.org/1999/xhtml/vocab# 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">
<img rel="xhv:next" />
</div>
<div rel="xhv:next">
<div rel="xhv:next">
<img 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>
<div 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>
</div>
</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 does not override @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>

Expected Result

@prefix : <http://xmlns.com/foaf/0.1/> .
@prefix cal: <http://www.w3.org/2002/12/cal/icaltzd#> .
@prefix cc: <http://creativecommons.org/ns#> .
@prefix ctag: <http://commontag.org/ns#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix earl: <http://www.w3.org/ns/earl#> .
@prefix ex: <http://www.example.org/> .
@prefix gr: <http://purl.org/goodrelations/v1#> .
@prefix grddl: <http://www.w3.org/2003/g/data-view#> .
@prefix ma: <http://www.w3.org/ns/ma-ont#> .
@prefix og: <http://ogp.me/ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix rdfatest: <http://rdfa.info/vocabs/rdfa-test#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rev: <http://purl.org/stuff/rev#> .
@prefix rif: <http://www.w3.org/2007/rif#> .
@prefix schema: <http://schema.org/> .
@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix skosxl: <http://www.w3.org/2008/05/skos-xl#> .
@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
@prefix void: <http://rdfs.org/ns/void#> .
@prefix wdr: <http://www.w3.org/2007/05/powder#> .
@prefix wdrs: <http://www.w3.org/2007/05/powder-s#> .
@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xmlzzz: <http://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.net/> rdf:value "value",
"value one",
"value two" .

xmlzzz: dct:title "Test Case 0121",
"Example Website";
rdf:value "value" ;
dct:contributor "Shane McCarron" .

xmlzzz:example.png a :Image;
xhv:license <http://creativecommons.org/licenses/by-nc-sa/2.0/> .

xmlzzz:foo xmlzzz:bar 10;
dct:creator "Mark Birbeck" .

xmlzzz:jd vcard:fn "John Doe" .

<http://internet-apps.blogspot.com/> dct:creator "Mark Birbeck" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0067.xhtml> dct:title "Test 0067" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0077.xhtml>
xhv:alternate xmlzzz:alternate ;
xhv:appendix xmlzzz:appendix ;
xhv:bookmark xmlzzz:bookmark ;
xhv:cite xmlzzz:cite ;
xhv:chapter xmlzzz:chapter ;
xhv:contents xmlzzz:contents ;
xhv:copyright xmlzzz:copyright ;
xhv:glossary xmlzzz:glossary ;
xhv:help xmlzzz:help ;
xhv:icon xmlzzz:icon ;
xhv:index xmlzzz:index ;
xhv:first xmlzzz:first ;
xhv:last xmlzzz:last ;
xhv:license xmlzzz:license ;
xhv:meta xmlzzz:meta ;
xhv:next xmlzzz:next ;
xhv:p3pv1 xmlzzz:p3pv1 ;
xhv:prev xmlzzz:prev ;
xhv:role xmlzzz:role ;
xhv:section xmlzzz:section ;
xhv:subsection xmlzzz:subsection ;
xhv:start xmlzzz:start ;
xhv:stylesheet xmlzzz:stylesheet ;
xhv:up xmlzzz:up .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0295.xhtml> a :Document;
dct:title "E = mc2: The Most Urgent Problem of Our Time"^^xmlzzz:XMLLiteral,
"Test 0109";
cc:license <http://creativecommons.org/licenses/by-nc-nd/2.5/>,
<http://creativecommons.org/licenses/by-nd/3.0/>;
dct:creator "Albert Einstein", [],
"Mark Birbeck",
<http://www-sop.inria.fr/acacia/fabien/>,
"Fabien Gandon",
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0295.xhtml#me>,
<http://www.example.org/#manu>, [ :name "Ben Adida"],
<http://www.example.org/#fabien>,
"Ben",
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/jane>;
dct:publisher <http://www-sop.inria.fr/acacia/fabien/>,
"Fabien Gandon",
<http://www.example.org/#manu>,
<http://www.example.org/#fabien>;
rdf:inlist <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/res>;
rdf:value (<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/foo>), ("Foo" "Bar"),
(), (<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/foo> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/bar>), ("Foo" <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/foo>),
"Baz", ("Foo" "Bar"), ("Foo"), ("Foo"), ("Foo");
xhv:alternate xmlzzz:alternate;
xhv:appendix xmlzzz:appendix;
xhv:bookmark xmlzzz:bookmark;
xhv:chapter xmlzzz:chapter;
xhv:cite xmlzzz:cite;
xhv:contents xmlzzz:contents;
xhv:copyright xmlzzz:copyright;
xhv:first xmlzzz:first;
xhv:glossary xmlzzz:glossary;
xhv:help xmlzzz:help;
xhv:icon xmlzzz:icon;
xhv:index xmlzzz:index;
xhv:last xmlzzz:last;
xhv:license xmlzzz:license,
<http://creativecommons.org/licenses/by-nc-sa/2.0/>,
<http://creativecommons.org/licenses/by-nd/3.0/>;
xhv:meta xmlzzz:meta;
xhv:next <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0070.xhtml>,
[ xhv:next [] ],
[],
xmlzzz:next;
xhv:p3pv1 xmlzzz:p3pv1;
xhv:prev xmlzzz:prev,
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0069.xhtml>;
xhv:role xmlzzz:role;
xhv:section xmlzzz:section;
xhv:start xmlzzz:start;
xhv:stylesheet xmlzzz:stylesheet;
xhv:subsection xmlzzz:subsection;
xhv:up xmlzzz:up;
rdfa:usesVocabulary :,
<http://example.org/wrong/foaf/uri/>,
<http://www.example.org/vocab#>;
:img <http://sw-app.org/img/mic_2007_01.jpg>;
:maker [
a :Document;
:name "John Doe"
],
<http://www.example.org/#me>;
:topic "John Doe" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0295.xhtml#event1> a cal:Vevent;
cal:dtend "2006-10-23"^^xsd:date;
cal:dtstart "2006-10-21"^^xsd:date;
cal:location "Iona, UK";
cal:summary "Weekend off in Iona";
cal:url <http://freetime.example.org/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0295.xhtml#interfenestration> xmlzzz:size [
xmlzzz:unit "character";
rdf:value "17"
] .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0295.xhtml#mark> a :Person;
:firstName "Mark";
:name "<span property=\"foaf:firstName\" 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:ex=\"http://example.org/\" xmlns:example=\"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:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:rdfatest=\"http://rdfa.info/vocabs/rdfa-test#\" 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#\">Mark</span> <span property=\"foaf:surname\" 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:ex=\"http://example.org/\" xmlns:example=\"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:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:rdfatest=\"http://rdfa.info/vocabs/rdfa-test#\" 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#\">Birbeck</span>"^^rdf:XMLLiteral;
:surname "Birbeck" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0295.xhtml#this> a dct:Agent;
:name "A particular agent" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0295.xhtml#wtw> dct:identifier <urn:ISBN:0752820907> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/faq> dct:title "Example FAQ" .

<http://www.cwi.nl/~steven/> xmlzzz: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""" .

<http://www.example.org> xmlzzz:plainlit "This is a plain literal";
xmlzzz:xmllit "This is an XMLLiteral"^^rdf:XMLLiteral,
"""This is
an XMLLiteral"""^^rdf:XMLLiteral;
ex:column:test "Test" .

ex: dct:title "E = mc2: The Most Urgent Problem of Our Time" .

<http://www.example.org/#article> a sioc:Post,
:Document;
dct:title "My article" .

<http://www.example.org/#ben> a :Person;
:knows [ :name [ a :Person], [ a :Person]],
<http://www.example.org/#ivan>,
<http://www.example.org/#mark> .

<http://www.example.org/#matsumoto-kimiko> a :Person;
:name "松本 后子" .

ex:software <http://www.example.org/vocab#license> <http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231>;
xhv:license <http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .

xhv: dct:title "The XHTML Vocabulary Document" .

xsd:maxExclusive a owl:DatatypeProperty .

<http://www.w3.org/Person/Ivan#me> owl:sameAs <http://www.ivan-herman.net/foaf#me> .

xmlzzz:node xmlzzz:property """not an XML Literal,
whitespace preserved
""",
"""ελληνικό
άσπρο διάστημα
"""@el .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0295.xhtml#a> dct:title "" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0295.xhtml#me> xhv:name "Ivan Herman";
:name "Gregg Kellogg",
"Ben Adida",
"Ivan Herman" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/photo1.jpg> dct:title "Portrait of Mark";
dct:creator "Mark Birbeck",
<http://www.blogger.com/profile/1109404> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/res> rdf:value ("Bar"), ("Bar") .

<http://sw-app.org/img/mic_2006_03.jpg> xhv:alternate <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0295.xhtml>;
:depicts <http://sw-app.org/mic.xhtml#i> .

<http://sw-app.org/mic.xhtml#photo> :depicts <http://sw-app.org/mic.xhtml#i> .

<http://www.blogger.com/profile/1109404> :img <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/photo1.jpg> .

<http://www.example.org/#ivan> :name "Ivan Herman" .

<http://www.example.org/#mark> :name "Mark Birbeck" .

<http://www.ivan-herman.net/Images/me2003-small.png> a :Image .

<http://www.ivan-herman.net/foaf#me> a :Person;
:depiction <http://www.ivan-herman.net/Images/me2003-small.png>;
:name "Iván" .

<mailto:manu.sporny@digitalbazaar.com> :knows <mailto:michael.hausenblas@joanneum.at> .

<http://danbri.org/foaf.rdf#danbri> a :Person;
:knows <http://www.example.org/#somebody>;
:name "Dan Brickley" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0295.xhtml#b> dct:title "" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0295.xhtml>
dct:title "rdfagraph";
ctag: "CTAG";
cc: "CC";
cc:attributionURL <http://rdfa.info/>;
xmlzzz:entity1 ">";
xmlzzz:entity2 "Ben & Co.";
xmlzzz:entity3 "@";
xmlzzz:entity4 "@";
xmlzzz:test "Test";
og: "OG";
dct: "DC",
"DCTERMS";
dct:contributor "Mark Birbeck";
dct:language "Ruby";
gr: "GR";
rev: "REV";
rdfatest:cornerCase1 <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/>;
rdfatest:cornerCase2 <http://example.org/>;
rdfatest:cornerCase3 <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/...>;
rdfatest:cornerCase4 <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0295.xhtml?foo=bar../baz>;
rdfatest:cornerCase5 <http://rdfa.info/test-suite/test-cases/.../.htaccess>;
void: "VOID";
sioc: "SIOC";
schema: "Schema";
rdf: "RDF";
rdf:value "2012-03"^^xsd:gYearMonth,
"not this",
"2012"^^xsd:gYear,
"P2011Y06M28DT00H00M00S"^^xsd:duration,
"00:00:00Z"^^xsd:time,
"2012-03-18T00:00:00Z"^^xsd:dateTime,
" 2012-03-18Z"^^xsd:dateTime,
"2012-03-18T00:00:00-08:00"^^xsd:dateTime,
"2012-03-18T00:00:00Z"^^xsd:date,
" 2012-03-18Z",
"2012-03-18Z"^^xsd:date,
"D-Day"@en,
"I came, I saw, I conquered"@lat,
"";
xhv: "XHV";
xhv:index <http://rdfa.info/test-suite/#>;
xhv:license "License", "license";
xhv:next <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0115.xhtml>;
xhv:role "Role";
xhv:up <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/>;
rdfs: "RDFS";
xsd: "XSD";
owl: "OWL";
cal: "ICAL";
grddl: "GRDDL";
skos: "SKOS";
vcard: "V",
"VCARD";
wdr: "WDR";
wdrs: "WDRS";
wdrs:describedby xmlzzz:describedby,
"DescribedBy";
rif: "RIF";
skosxl: "SKOS-XL";
xml: "XML";
earl:testcase [];
ma: "MA";
rdfa: "RDFa";
: "FOAF";
:img <http://sw-app.org/img/mic_2007_01.jpg>;
:maker [
a :Person;
:name "John Doe"
],
<http://www.example.org/#me> ;
xhv:alternate "alternate" ;
xhv:appendix "appendix" ;
xhv:cite "cite" ;
xhv:bookmark "bookmark" ;
xhv:contents "contents" ;
xhv:chapter "chapter" ;
xhv:copyright "copyright" ;
xhv:first "first" ;
xhv:glossary "glossary" ;
xhv:help "help" ;
xhv:icon "icon" ;
xhv:index "index" ;
xhv:last "last" ;
xhv:meta "meta" ;
xhv:next "next" ;
xhv:prev "prev" ;
xhv:previous "previous" ;
xhv:section "section" ;
xhv:start "start" ;
xhv:stylesheet "stylesheet" ;
xhv:subsection "subsection" ;
xhv:top "top" ;
xhv:up "up" ;
xhv:p3pv1 "p3pv1" .

<http://www.example.org/#fabien> :name "Fabien Gandon" .

<http://www.example.org/#manu> :name "Manu Sporny" .

<http://www.example.org/#me> a :Person,
:Document;
:knows [ :name "John Doe"];
:name "John Doe" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/foo> rdf:value ("Foo"), ("Bar") .

<http://sw-app.org/img/mic_2007_01.jpg> :depicts <http://sw-app.org/mic.xhtml#i> .

<http://sw-app.org/mic.xhtml#i> :img <http://sw-app.org/mic.xhtml#photo>,
<http://sw-app.org/img/mic_2007_01.jpg>,
<http://sw-app.org/img/mic_2006_03.jpg> .

<http://www.example.org/#somebody> :knows <http://www.w3.org/People/Berners-Lee/card#i>,
<http://www.ivan-herman.org/Ivan_Herman>, [
:knows <http://www.example.org/#somebody>;
:mailbox <mailto:ivan@w3.org>;
:name "Ivan Herman", [ a :Person]
], [ :knows <http://www.w3.org/People/Berners-Lee/card#i>,
<http://www.ivan-herman.org/Ivan_Herman>,
<http://danbri.org/foaf.rdf#danbri>], [
:knows <http://www.example.org/#somebody>;
:mailbox <mailto:ivan@w3.org>;
:name "Ivan Herman"
], [
:mailbox <mailto:ivan@w3.org>;
:name "Ivan Herman"
],
<http://danbri.org/foaf.rdf#danbri>, [
a :Person;
:name "Dan Brickley"
], [
:mailbox <mailto:ivan@w3.org>;
:name "Ivan Herman", [ a :Person]
] .

[
:knows [ :name "Ralph Swick"];
:name "Manu Sporny"
] .

[
:knows <http://www.example.org/#somebody>;
:mailbox <mailto:ivan@w3.org>;
:name "Ivan Herman", [ a :Person]
] .

[
a :Person;
:name "John Doe"
] .

[
xhv:definition "a bi-pedal primate";
xhv:foo "Milky Way";
xhv:note "confused animal"
] .

_:gregg :knows [
:knows [
:knows <http://digitalbazaar.com/people/manu>;
:mbox <mailto:michael.hausenblas@joanneum.at>
],
_:gregg;
:mbox <mailto:manu.sporny@digitalbazaar.com>
];
:mbox <mailto:gregg@kellogg-assoc.com>;
:name "Gregg Kellogg" .
Test Test 0296: @property does set parent object without @typeof

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.com/gregg/#me> a foaf:Person;
foaf:homepage <http://example.com/gregg/>;
foaf:knows <http://example.com/niklas/#me>,
<http://example.com/ivan/#me>,
<http://example.com/manu/#me>,
<http://example.com/stéphane/#me>;
foaf:name "Gregg" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0296.xhtml> rdfa:usesVocabulary foaf: .

<http://example.com/ivan/#me> a foaf:Person;
foaf:homepage <http://example.com/ivan/>;
foaf:name "Ivan" .

<http://example.com/manu/#me> a foaf:Person;
foaf:homepage <http://example.com/manu/>;
foaf:name "Manu" .

<http://example.com/niklas/#me> a foaf:Person;
foaf:homepage <http://example.com/niklas/>;
foaf:name "Niklas" .

<http://example.com/stéphane/#me> a foaf:Person;
foaf:homepage <http://example.com/stéphane/>;
foaf:name "Stéphane" .
Test Test 0297: @about=[] with @typeof does not create a new subject

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0297.xhtml> foaf:name "Alex Milowski" .

[ a foaf:Person] .
Test Test 0298: @about=[] with @typeof does not create a new object

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
a foaf:Person;
foaf:name "Alex Milowski"
] .
Test Test 0299: @resource=[] with @href or @src uses @href or @src (@rel)

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://www.example.org/> xhv:license <http://www.example.org/license.xhtml> .
Test Test 0300: @resource=[] with @href or @src uses @href or @src (@property)

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://www.example.org/> xhv:license <http://www.example.org/license.xhtml> .
Test Test 0301: @property with @typeof creates a typed_resource for chaining

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0301.xhtml> <http://www.milowski.com/V/bit> [
a <http://www.milowski.com/V/thing>;
<http://www.milowski.com/V/name> "Fizzbit"
];
rdfa:usesVocabulary <http://www.milowski.com/V/> .
Test Test 0302: @typeof with different content types

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix schema: <http://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://openspring.net/scor#me> a dcterms:Agent,
foaf:Person,
schema:Person;
schema:homepage <http://openspring.net/>;
schema:name "Stéphane Corlosquet" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0302.xhtml> rdfa:usesVocabulary schema: .
Test Test 0311: Ensure no triples are generated when @property is empty

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result


Test Test 0318: Setting @vocab to empty strings removes default vocabulary

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<title>Test 0318</title>
</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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0318.xhtml> rdfa:usesVocabulary foaf: .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0318.xhtml#me> foaf:name "Ivan Herman" .
Test Test 0319: Relative @profile

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1">
<head>
<base href="http://example.com/"/>
<title>Test 0319</title>
</head>
<body prefix="pr: relative/iri#" xmlns:xpr="relative/uri#">
<p property="pr:prop xpr:prop">value</p>
</body>
</html>

Expected Result

@prefix pr: <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/relative/iri#> .
@prefix xpr: <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/relative/uri#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.com/> pr:prop "value";
xpr:prop "value" .
Test Test 0320: @property binds to @href

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.com/gregg/#me> a foaf:Person;
foaf:homepage <http://example.com/gregg/>;
foaf:name "Gregg" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0320.xhtml> rdfa:usesVocabulary foaf: .
Test Test 0329: Recursive triple generation

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/foaf#me> foaf:familyName "Doe";
foaf:givenName "John";
foaf:name """
John
Doe
""" .
Test Test 0330: @datatype overrides inherited @lang

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="dcterms: http://purl.org/dc/terms/ xsd: http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0330</title>
</head>
<body lang="en" xml:lang="en">
<div property="dc:date" datatype="xsd:date">2010-11-12</div>
</body>
</html>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0330.xhtml> dcterms:date "2010-11-12"^^xsd:date .
Test Test 0331: @datatype overrides inherited @lang, with @content

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="dcterms: http://purl.org/dc/terms/">
<head>
<title>Test 0331</title>
</head>
<body lang="en" xml:lang="en">
<div property="dcterms:language" datatype="dcterms:RFC5646" content="af">Afrikaans</div>
</body>
</html>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0331.xhtml> dcterms:language "af"^^dcterms:RFC5646 .
Test Test 0332: Empty @datatype doesn't override inherited @lang, with @content

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.1" prefix="dcterms: http://purl.org/dc/terms/">
<head>
<title>Test 0332</title>
</head>
<body lang="en" xml:lang="en">
<div property="dcterms:language" datatype="" content="af">Afrikaans</div>
</body>
</html>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml1/0332.xhtml> dcterms:language "af"@en .
Test Test 0001: Predicate establishment with @property

Input

<?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 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/photo1.jpg> dc11:creator "Mark Birbeck" .
Test Test 0006: @rel and @rev

Input

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

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/photo1.jpg> dc11:creator <http://www.blogger.com/profile/1109404> .

<http://www.blogger.com/profile/1109404> foaf:img <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/photo1.jpg> .
Test Test 0007: @rel, @rev, @property, @content

Input

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

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/photo1.jpg> dc11:creator <http://www.blogger.com/profile/1109404>;
dc11:title "Portrait of Mark" .

<http://www.blogger.com/profile/1109404> foaf:img <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/photo1.jpg> .
Test Test 0008: empty string @about

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix cc: <http://creativecommons.org/ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0008.xhtml> cc:license <http://creativecommons.org/licenses/by-nc-nd/2.5/> .
Test Test 0009: @rev

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="foaf: http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0009</title>
<link about="http://example.org/people#Person1" rel=""
rev="foaf:knows" href="http://example.org/people#Person2" />

</head>
<body>
<p></p>
</body>
</html>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://example.org/people#Person2> foaf:knows <http://example.org/people#Person1> .
Test Test 0010: @rel, @rev, @href

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://example.org/people#Person1> foaf:knows <http://example.org/people#Person2> .

<http://example.org/people#Person2> foaf:knows <http://example.org/people#Person1> .
Test Test 0014: @datatype, xsd:integer

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="ex: http://example.org/ 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>

Expected Result

@prefix ex: <http://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

ex:foo ex:bar 10 .
Test Test 0015: meta and link

Input

<?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 0015</title>
<link rel="dc:source" href="urn:isbn:0140449132" />
<meta property="dc:creator" content="Fyodor Dostoevsky" />
</head>
<body>
<p></p>
</body>
</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0015.xhtml> dc11:creator "Fyodor Dostoevsky";
dc11:source <urn:isbn:0140449132> .
Test Test 0017: Related blanknodes

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
foaf:knows [ foaf:name "Ralph Swick"];
foaf:name "Manu Sporny"
] .
Test Test 0018: @rel for predicate

Input

<?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 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/photo1.jpg> dc11:creator <http://www.blogger.com/profile/1109404> .
Test Test 0020: Inheriting @about for subject

Input

<?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 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/photo1.jpg> dc11:creator "Mark Birbeck" .
Test Test 0021: Subject inheritance with no @about

Input

<?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 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0021.xhtml> dc11:creator "Mark Birbeck" .
Test Test 0023: @id does not generate subjects

Input

<?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 0023</title>
</head>
<body>
<div id="photo1">
This photo was taken by
<span property="dc:creator">Mark Birbeck</span>
</div>
</body>


</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0023.xhtml> dc11:creator "Mark Birbeck" .
Test Test 0025: simple chaining test

Input

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

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0025.xhtml> dc11: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> foaf:name "Ben Adida" .
Test Test 0026: @content

Input

<?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 0026</title>
</head>
<body>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck"></span>
</p>
</body>


</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://internet-apps.blogspot.com/> dc11:creator "Mark Birbeck" .
Test Test 0027: @content, ignore element content

Input

<?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 0027</title>
</head>
<body>
<p>
<span about="http://internet-apps.blogspot.com/"
property="dc:creator" content="Mark Birbeck">Mark B.
</span>
</p>
</body>


</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://internet-apps.blogspot.com/> dc11:creator "Mark Birbeck" .
Test Test 0029: markup stripping with @datatype

Input

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

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/foo> dc11:creator "Mark Birbeck" .
Test Test 0030: omitted @about

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix cc: <http://creativecommons.org/ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0030.xhtml> cc:license <http://creativecommons.org/licenses/by-nc-nd/2.5/> .
Test Test 0031: simple @resource

Input

<?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 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0031.xhtml#wtw> dc11:identifier <urn:ISBN:0752820907> .
Test Test 0032: @resource overrides @href

Input

<?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 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0032.xhtml#wtw> dc11:identifier <urn:ISBN:0752820907> .
Test Test 0033: simple chaining test with bNode

Input

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

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0033.xhtml> dc11:creator [ foaf:name "Ben Adida"] .
Test Test 0034: simple img[@src] test

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/mic.xhtml#i> foaf:img <http://sw-app.org/img/mic_2007_01.jpg> .
Test Test 0036: @src/@resource test

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/mic.xhtml#i> foaf:img <http://sw-app.org/img/mic_2006_03.jpg> .
Test Test 0038: @rev - img[@src] test

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/img/mic_2007_01.jpg> foaf:depicts <http://sw-app.org/mic.xhtml#i> .
Test Test 0048: @typeof with @about and @rel present, no @resource

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#me> a foaf:Person;
foaf:knows [ foaf:name "John Doe"] .
Test Test 0049: @typeof with @about, no @rel or @resource

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#me> a foaf:Person;
foaf:name "John Doe" .
Test Test 0050: @typeof without anything else

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
a foaf:Person;
foaf:name "John Doe"
] .
Test Test 0051: @typeof with a single @property

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0051.xhtml> a foaf:Document;
foaf:topic "John Doe" .
Test Test 0052: @typeof with @resource and nothing else

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://www.example.org/#me> a foaf:Person .
Test Test 0053: @typeof with @resource and nothing else, with a subelement

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#me> a foaf:Person;
foaf:name "John Doe" .
Test Test 0054: multiple @property

Input

<?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 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0054.xhtml> dc11:creator "Fabien Gandon";
dc11:publisher "Fabien Gandon" .
Test Test 0055: multiple @rel

Input

<?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 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0055.xhtml> dc11:creator <http://www-sop.inria.fr/acacia/fabien/>;
dc11:publisher <http://www-sop.inria.fr/acacia/fabien/> .
Test Test 0056: @typeof applies to @about on same element with hanging rel

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#ben> a foaf:Person;
foaf:knows <http://www.example.org/#mark> .

<http://www.example.org/#mark> foaf:name "Mark Birbeck" .
Test Test 0057: hanging @rel creates multiple triples

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#ben> foaf:knows <http://www.example.org/#ivan>,
<http://www.example.org/#mark> .

<http://www.example.org/#ivan> foaf:name "Ivan Herman" .

<http://www.example.org/#mark> foaf:name "Mark Birbeck" .
Test Test 0059: multiple hanging @rels with multiple children

Input

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

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0059.xhtml> dc11:creator <http://www.example.org/#manu>,
<http://www.example.org/#fabien>;
dc11:publisher <http://www.example.org/#manu>,
<http://www.example.org/#fabien> .

<http://www.example.org/#fabien> foaf:name "Fabien Gandon" .

<http://www.example.org/#manu> foaf:name "Manu Sporny" .
Test Test 0060: UTF-8 conformance

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#matsumoto-kimiko> a foaf:Person;
foaf:name "松本 后子" .
Test Test 0063: @rel in head using reserved XHTML value and empty-prefix CURIE syntax

Input

<?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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0063.xhtml> xhv:next <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0064.xhtml> .
Test Test 0064: @about with safe CURIE

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

[ foaf:knows <http://digitalbazaar.com/people/manu>] .
Test Test 0065: @rel with safe CURIE

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

[
foaf:knows [ foaf:mbox <mailto:michael.hausenblas@joanneum.at>];
foaf:mbox <mailto:manu.sporny@digitalbazaar.com>
] .
Test Test 0066: @about with @typeof in the head

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0066.xhtml> a foaf:Document .
Test Test 0067: @property in the head

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0067.xhtml> foaf:topic "Test 0067" .
Test Test 0068: Relative URI in @about

Input

<?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 0068</title>
</head>
<body>
<p about="0067.xhtml">
The previous test was
<span property="dc:title">Test 0067</span>.
</p>
</body>
</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0067.xhtml> dc11:title "Test 0067" .
Test Test 0069: Relative URI in @href

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0069.xhtml> xhv:next <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0070.xhtml> .
Test Test 0070: Relative URI in @resource

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0070.xhtml> xhv:prev <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0069.xhtml> .
Test Test 0071: No explicit @about

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix cc: <http://creativecommons.org/ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0071.xhtml> cc:license <http://creativecommons.org/licenses/by-nd/3.0/> .
Test Test 0072: Relative URI in @about (with XHTML base in head)

Input

<?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>
<base href="http://www.example.org/"/>
<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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/faq> dc11:title "Example FAQ" .
Test Test 0073: Relative URI in @resource (with XHTML base in head)

Input

<?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>
<base href="http://www.example.org/"/>
<title>Test 0073</title>
</head>
<body>
<p>
This article was written by
<span rel="dc:creator" resource="jane">Jane</span>.
</p>
</body>
</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://www.example.org/> dc11:creator <http://www.example.org/jane> .
Test Test 0074: Relative URI in @href (with XHTML base in head)

Input

<?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>
<base href="http://www.example.org/"/>
<title>Test 0074</title>
</head>
<body>
<p>
This article was written by
<a rel="dc:creator" href="jane">Jane</a>.
</p>
</body>
</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://www.example.org/> dc11:creator <http://www.example.org/jane> .
Test Test 0075: Reserved word 'license' in @rel with no explicit @about

Input

<?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>
<base href="http://www.example.org/"/>
<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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://www.example.org/> xhv:license <http://creativecommons.org/licenses/by-nd/3.0/> .
Test Test 0080: @about overrides @resource in incomplete triples

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://www.example.org/#somebody> foaf:knows <http://danbri.org/foaf.rdf#danbri> .
Test Test 0083: multiple ways of handling incomplete triples (merged)

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#somebody> foaf:knows [
foaf:mailbox <mailto:ivan@w3.org>;
foaf:name "Ivan Herman"
],
<http://danbri.org/foaf.rdf#danbri> .

<http://danbri.org/foaf.rdf#danbri> a foaf:Person;
foaf:name "Dan Brickley" .
Test Test 0084: multiple ways of handling incomplete triples, this time with both @rel and @rev

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://danbri.org/foaf.rdf#danbri> a foaf:Person;
foaf:knows <http://www.example.org/#somebody>;
foaf:name "Dan Brickley" .

<http://www.example.org/#somebody> foaf:knows [
foaf:knows <http://www.example.org/#somebody>;
foaf:mailbox <mailto:ivan@w3.org>;
foaf:name "Ivan Herman"
],
<http://danbri.org/foaf.rdf#danbri> .
Test Test 0088: Interpretation of the CURIE "_:"

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#somebody> foaf:knows [
a foaf:Person;
foaf:name "Dan Brickley"
] .
Test Test 0089: @src sets a new subject (@typeof)

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="foaf: http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0089</title>
</head>
<body>
<div>
<img src="http://example.org/example.png" typeof="foaf:Image" alt="example image" />
</div>
</body>
</html>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://example.org/example.png> a foaf:Image .
Test Test 0091: Non-reserved, un-prefixed CURIE in @property

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
xhv:definition "a bi-pedal primate";
xhv:foo "Milky Way";
xhv:note "confused animal"
] .
Test Test 0093: Tests XMLLiteral content with explicit @datatype (user-data-typed literal)

Input

<?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/ ex: http://www.example.org/">
<head>
<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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix ex: <http://www.example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0093.xhtml> dc11:creator "Albert Einstein";
dc11:title "E = mc2: The Most Urgent Problem of Our Time"^^ex:XMLLiteral .
Test Test 0099: Preservation of white space in literals

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="example: http://www.example.org/">
<head>
<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>

Expected Result

@prefix example: <http://www.example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.cwi.nl/~steven/> 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""" .
Test Test 0104: rdf:value

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# example: http://www.example.org/">
<head>
<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>

Expected Result

@prefix example: <http://www.example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0104.xhtml#interfenestration> example:size [
example:unit "character";
rdf:value "17"
] .
Test Test 0106: chaining with empty value in inner @rel

Input

<?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 0106</title>
</head>
<body>
<div about="" rel="dc:creator">
<a rel="" href="manu.html">Manu</a> created this page.
</div>
</body>
</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0106.xhtml> dc11:creator [] .
Test Test 0107: no garbage collecting bnodes

Input

<?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 0107</title>
</head>
<body>
<div rel="next"></div>
</body>
</html>

Expected Result


Test Test 0110: bNode generated even though no nested @about exists

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="xhv: http://www.w3.org/1999/xhtml/vocab#">
<head>
<title>Test 0110</title>
</head>
<body>
<div rel="xhv:next">
<div rel="xhv:next"></div>
</div>
</body>
</html>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0110.xhtml> xhv:next [] .
Test Test 0111: two bNodes generated after three levels of nesting

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>
</div>
</body>
</html>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0111.xhtml> xhv:next [ xhv:next []] .
Test Test 0112: plain literal with datatype=""

Input

<?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 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>

Expected Result

@prefix ex: <http://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

ex:node ex:property """not an XML Literal,
whitespace preserved
""" .
Test Test 0115: XML Entities must be supported by RDFa parser

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix ex: <http://www.example.com/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0115.xhtml> ex:entity1 ">";
ex:entity2 "Ben & Co.";
ex:entity3 "@";
ex:entity4 "@" .
Test Test 0117: Fragment identifiers stripped from BASE

Input

<?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>
<base href="http://www.example.org/tc117.xhtml#fragment"/>
<title property="dc:title">Test 0117</title>
</head>
<body>
<p>
<span property="dc:contributor">Mark Birbeck</span>
added this triple test.
</p>
</body>
</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/tc117.xhtml> dc11:contributor "Mark Birbeck";
dc11:title "Test 0117" .
Test Test 0118: empty string "" is not equivalent to NULL - @about

Input

<?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 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0118.xhtml> dc11:creator "Ben" .
Test Test 0119: "[prefix:]" CURIE format is valid

Input

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

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix example: <http://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

example: dc11:title "Example Website" .
Test Test 0120: "[:]" CURIE format is valid

Input

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

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

xhv: dc11:title "The XHTML Vocabulary Document" .
Test Test 0121: "[]" is a valid safe CURIE

Input

<?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 0121</title>
</head>
<body>
<div>
<div 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>
</div>
</div>
</body>




</html>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/>
dc11:title "Test Case 0121" ;
dc11:contributor "Shane McCarron" .
Test Test 0122: resource="[]" does not set the object

Input

<?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>

Expected Result


Test Test 0126: Multiple @typeof values

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="dct: http://purl.org/dc/terms/ sioc: http://rdfs.org/sioc/ns# 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>

Expected Result

@prefix dct: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#article> a sioc:Post,
foaf:Document;
dct:title "My article" .
Test Test 0134: Uppercase reserved words

Input

<?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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0134.xhtml> xhv:license <http://example.org/test.css> .
Test Test 0140: Blank nodes identifiers are not allowed as predicates

Input

<?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>

Expected Result


Test Test 0147: xmlns prefix 'xmlzzz' (reserved)

Input

<?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>

Expected Result

@prefix xmlzzz: <http://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0147.xhtml> xmlzzz:test "Test" .
Test Test 0174: Support single character prefix in CURIEs

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/jd> vcard:fn "John Doe" .
Test Test 0175: IRI for @property is allowed

Input

<?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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[ foaf:name "Gregg Kellogg"] .
Test Test 0176: IRI for @rel and @rev is allowed

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

_:gregg foaf:knows [
foaf:knows _:gregg;
foaf:mbox <mailto:manu.sporny@digitalbazaar.com>
];
foaf:mbox <mailto:gregg@kellogg-assoc.com> .
Test Test 0177: Test @prefix

Input

<?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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/#me> foaf:name "Ivan Herman" .
Test Test 0178: Test @prefix with multiple mappings

Input

<?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>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/#this> a dcterms:Agent;
foaf:name "A particular agent" .
Test Test 0179: Test @prefix vs @xmlns priority

Input

<?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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/#me> foaf:name "Ivan Herman" .
Test Test 0181: Test default XHTML vocabulary

Input

<?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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://www.example.org/software> xhv:license <http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
Test Test 0182: Test prefix locality

Input

<?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>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/#this> a dcterms:Agent;
foaf:name "A particular agent" .
Test Test 0183: Test @xmlns redefines @prefix

Input

<?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>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/#this> a dcterms:Agent;
foaf:name "A particular agent" .
Test Test 0186: @vocab after subject declaration

Input

<?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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdfa:usesVocabulary foaf: .

<http://example.org/#me> foaf:name "Ivan Herman" .
Test Test 0187: @vocab redefinition

Input

<?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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdfa:usesVocabulary foaf:,
<http://example.org/wrong/foaf/uri/> .

<http://example.org/#me> foaf:name "Ivan Herman" .
Test Test 0188: @vocab only affects predicates

Input

<?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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdfa:usesVocabulary foaf: .

<http://example.org/#me> foaf:name "Ivan Herman" .
Test Test 0189: @vocab overrides default term

Input

<?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>

Expected Result

@prefix rdfa: <http://www.w3.org/ns/rdfa#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0189.xhtml> rdfa:usesVocabulary <http://www.example.org/vocab#> .

<http://www.example.org/software> <http://www.example.org/vocab#license> <http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
Test Test 0190: Test term case insensitivity

Input

<?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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://www.example.org/software> xhv:license <http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
Test Test 0196: Test process explicit XMLLiteral

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="ex: http://example.org/rdf/ 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>

Expected Result

@prefix ex: <http://example.org/rdf/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org> ex:plainlit "This is a plain literal";
ex:xmllit "This is an XMLLiteral"^^rdf:XMLLiteral .
Test Test 0197: Test TERMorCURIEorAbsURI requires an absolute URI

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/me> dcterms:language "Ruby" .
Test Test 0198: datatype XMLLiteral with other embedded RDFa

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="foaf: http://xmlns.com/foaf/0.1/ 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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/me#mark> a foaf:Person;
foaf:firstName "Mark";
foaf: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>"^^rdf:XMLLiteral;
foaf:surname "Birbeck" .
Test Test 0206: Usage of Initial Context

Input

<?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>

Expected Result

@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

xsd:maxExclusive a owl:DatatypeProperty .
Test Test 0207: Vevent using @typeof

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="cal: http://www.w3.org/2002/12/cal/icaltzd# 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>

Expected Result

@prefix cal: <http://www.w3.org/2002/12/cal/icaltzd#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0207.xhtml#event1> a cal:Vevent;
cal:dtend "2006-10-23"^^xsd:date;
cal:dtstart "2006-10-21"^^xsd:date;
cal:location "Iona, UK";
cal:summary "Weekend off in Iona";
cal:url <http://freetime.example.org/> .
Test Test 0213: Datatype generation for a literal with XML content, version 1.1

Input

<?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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/> dc11:title "E = mc2: The Most Urgent Problem of Our Time" .
Test Test 0214: Root element has implicit @about=""

Input

<?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>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0214.xhtml> a foaf:Document;
dcterms:title "Test 0214" .
Test Test 0216: Proper character encoding detection in spite of large headers

Input

<?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" />
<title>Test 0216</title>
</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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.ivan-herman.net/foaf#me> foaf:name "Iván" .
Test Test 0217: @vocab causes rdfa:usesVocabulary triple to be added

Input

<?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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdfa:usesVocabulary foaf: .

<http://example.org/#me> foaf:name "Gregg Kellogg" .
Test Test 0218: @inlist to create empty list

Input

<?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=""></p>
</div>
</body>
</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0218.xhtml> rdf:value () .
Test Test 0219: @inlist with literal

Input

<?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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0219.xhtml> rdf:value ("Foo") .
Test Test 0220: @inlist with IRI

Input

<?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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0220.xhtml> rdf:value (<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/foo>) .
Test Test 0221: @inlist with hetrogenious membership

Input

<?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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0221.xhtml> rdf:value ("Foo" <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/foo>) .
Test Test 0224: @inlist hanging @rel

Input

<?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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0224.xhtml> rdf:value (<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/foo> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/bar>) .
Test Test 0225: @inlist on different elements with same subject

Input

<?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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/foo> rdf:value ("Bar"), ("Foo") .
Test Test 0228: 1.1 alternate for test 0040: @rev - @src/@resource test

Input

<?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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://sw-app.org/img/mic_2006_03.jpg> xhv:alternate <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0228.xhtml> .
Test Test 0229: img[@src] test with omitted @about

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0229.xhtml> foaf:img <http://sw-app.org/img/mic_2007_01.jpg> .
Test Test 0231: Set image license information

Input

<?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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://example.org/example.png> xhv:license <http://creativecommons.org/licenses/by-nc-sa/2.0/> .
Test Test 0232: @typeof with @rel present, no @href, @resource, or @about (1.1 behavior of 0046);

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0232.xhtml> foaf:maker [
a foaf:Person;
foaf:name "John Doe"
] .
Test Test 0233: @typeof with @rel and @resource present, no @about (1.1 behavior of 0047)

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0233.xhtml> foaf:maker <http://www.example.org/#me> .

<http://www.example.org/#me> a foaf:Person;
foaf:name "John Doe" .
Test Test 0246: hanging @rel creates multiple triples, @typeof permutation; RDFa 1.1 version

Input

<?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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#ben> foaf:knows [
a foaf:Person;
foaf:name "Ivan Herman"
], [
a foaf:Person;
foaf:name "Mark Birbeck"
] .
Test Test 0247: Multiple incomplete triples, RDFa 1.1version

Input

<?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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#somebody> foaf:knows [
foaf:mailbox <mailto:ivan@w3.org>;
foaf:name "Ivan Herman"
], [
a foaf:Person;
foaf:name "Mark Birbeck"
] .
Test Test 0248: multiple ways of handling incomplete triples (with @rev); RDFa 1.1 version

Input

<?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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
a foaf:Person;
foaf:knows <http://www.example.org/#somebody>;
foaf:name "Mark Birbeck"
] .

[
foaf:knows <http://www.example.org/#somebody>;
foaf:mailbox <mailto:ivan@w3.org>;
foaf:name "Ivan Herman"
] .
Test Test 0249: multiple ways of handling incomplete triples (with @rel and @rev); RDFa 1.1 version

Input

<?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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#somebody> foaf:knows [
a foaf:Person;
foaf:knows <http://www.example.org/#somebody>;
foaf:name "Mark Birbeck"
], [
foaf:knows <http://www.example.org/#somebody>;
foaf:mailbox <mailto:ivan@w3.org>;
foaf:name "Ivan Herman"
] .
Test Test 0250: Checking the right behaviour of @typeof with @about, in presence of @property

Input

<?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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.ivan-herman.net/foaf#me> a foaf:Person;
foaf:name "Ivan Herman" .
Test Test 0251: lang

Input

<?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>

Expected Result

@prefix ex: <http://example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

ex:node ex:property "chat"@fr .
Test Test 0252: lang inheritance

Input

<?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>

Expected Result

@prefix ex: <http://example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

ex:node ex:property "chat"@fr .
Test Test 0253: plain literal with datatype="" and lang preservation

Input

<?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>

Expected Result

@prefix ex: <http://example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

ex:node ex:property """ελληνικό
άσπρο διάστημα
"""@el .
Test Test 0254: @datatype="" generates plain literal in presence of child nodes

Input

<?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>

Expected Result

@prefix ex: <http://example.org/terms#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://example.org/> ex:prop "A plain literal with a lang tag."@en .
Test Test 0255: lang="" clears language setting

Input

<?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>

Expected Result

@prefix ex: <http://example.org/terms#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> ex:prop "Just a plain literal." .
Test Test 0256: lang and xml:lang on the same element

Input

<?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>

Expected Result

@prefix ex: <http://example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

ex:node ex:property "chat"@fr .
Test Test 0257: element with @property and no child nodes generates empty plain literal (HTML5 version of 0113)

Input

<?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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0257.xhtml#a> dc11:title "" .
Test Test 0259: XML+RDFa Initial Context

Input

<?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="csvw:">CSVW</span>
<span property="dcat:">DCAT</span>
<span property="qb:">QB</span>
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="org:">ORG</span>ORG
<span property="owl:">OWL</span>
<span property="prov:">PROV</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="rr:">RR</span>
<span property="sd:">SD</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>

Expected Result

@prefix cc: <http://creativecommons.org/ns#> .
@prefix csvw: <http://www.w3.org/ns/csvw#> .
@prefix ctag: <http://commontag.org/ns#> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix gr: <http://purl.org/goodrelations/v1#> .
@prefix grddl: <http://www.w3.org/2003/g/data-view#> .
@prefix ical: <http://www.w3.org/2002/12/cal/icaltzd#> .
@prefix ma: <http://www.w3.org/ns/ma-ont#> .
@prefix og: <http://ogp.me/ns#> .
@prefix org: <http://www.w3.org/ns/org#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix qb: <http://purl.org/linked-data/cube#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rev: <http://purl.org/stuff/rev#> .
@prefix rif: <http://www.w3.org/2007/rif#> .
@prefix rr: <http://www.w3.org/ns/r2rml#> .
@prefix schema: <http://schema.org/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .
@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix skosxl: <http://www.w3.org/2008/05/skos-xl#> .
@prefix v: <http://rdf.data-vocabulary.org/#> .
@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
@prefix void: <http://rdfs.org/ns/void#> .
@prefix wdr: <http://www.w3.org/2007/05/powder#> .
@prefix wdrs: <http://www.w3.org/2007/05/powder-s#> .
@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0259.xhtml> ctag: "CTAG";
cc: "CC";
og: "OG";
dcterms: "DC",
"DCTERMS";
gr: "GR";
qb: "QB";
rev: "REV";
v: "V";
void: "VOID";
sioc: "SIOC";
schema: "Schema";
rdf: "RDF";
xhv: "XHV";
xhv:license "License";
xhv:role "Role";
rdfs: "RDFS";
xsd: "XSD";
owl: "OWL";
ical: "ICAL";
grddl: "GRDDL";
skos: "SKOS";
vcard: "VCARD";
wdr: "WDR";
wdrs: "WDRS";
wdrs:describedby "DescribedBy";
rif: "RIF";
skosxl: "SKOS-XL";
xml: "XML";
csvw: "CSVW";
dcat: "DCAT";
ma: "MA";
org: "ORG";
prov: "PROV";
rr: "RR";
rdfa: "RDFa";
sd: "SD";
foaf: "FOAF" .
Test Test 0261: White space preservation in XMLLiteral

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="ex: http://example.org/rdf/ 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>

Expected Result

@prefix ex: <http://example.org/rdf/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://www.example.org> ex:xmllit """This is
an XMLLiteral"""^^rdf:XMLLiteral .
Test Test 0262: Predicate establishment with @property, with white spaces before and after the attribute value

Input

<?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 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>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/photo1.jpg> dc11:creator "Mark Birbeck" .
Test Test 0263: @property appearing on the html element yields the base as the subject

Input

<?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>

Expected Result

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0263.xhtml> rdfs:seeAlso <http://www.example.org> .
Test Test 0264: @property appearing on the head element gets the subject from <html>, ie, parent

Input

<?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>

Expected Result

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0264.xhtml> rdfs:seeAlso <http://www.example.org> .
Test Test 0265: @property appearing on the head element gets the subject from <html>, ie, parent

Input

<?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>

Expected Result

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<http://www.example.com> rdfs:seeAlso <http://www.example.org> .
Test Test 0266: @property without @content or @datatype, typed object set by @href and @typeof

Input

<?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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

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

Input

<?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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

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

Input

<?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" alt="Ivan Herman" />
</div>
</body>
</html>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

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

Input

<?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>

Expected Result

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0269.xhtml> rdfs:comment "This is an RDFa test" .
Test Test 0271: Use of @property in HEAD with explicit parent subject via @about

Input

<?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>

Expected Result

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/> rdfs:comment "This is an RDFa test" .
Test Test 0272: time element with @datetime an xsd:date

Input

<?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-18">18 March 2012</time>
</body>
</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0272.xhtml> rdf:value "2012-03-18"^^xsd:date .
Test Test 0273: time element with @datetime an xsd:time

Input

<?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:00">midnight</time>
</body>
</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0273.xhtml> rdf:value "00:00:00"^^xsd:time .
Test Test 0274: time element with @datetime an xsd:dateTime

Input

<?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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0274.xhtml> rdf:value "2012-03-18T00:00:00Z"^^xsd:dateTime .
Test Test 0275: time element with value an xsd:date

Input

<?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-18</time>
</body>
</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0275.xhtml> rdf:value "2012-03-18"^^xsd:date .
Test Test 0276: time element with value an xsd:time

Input

<?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:00</time>
</body>
</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0276.xhtml> rdf:value "00:00:00"^^xsd:time .
Test Test 0277: time element with value an xsd:dateTime

Input

<?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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0277.xhtml> rdf:value "2012-03-18T00:00:00Z"^^xsd:dateTime .
Test Test 0278: @content overrides @datetime

Input

<?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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0278.xhtml> rdf:value "this should be the value" .
Test Test 0279: @datatype used with @datetime overrides default datatype

Input

<?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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0279.xhtml> rdf:value "2012-03-18T00:00:00Z"^^xsd:date .
Test Test 0281: time element with @datetime an xsd:gYear

Input

<?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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0281.xhtml> rdf:value "2012"^^xsd:gYear .
Test Test 0282: time element with @datetime an xsd:gYearMonth

Input

<?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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0282.xhtml> rdf:value "2012-03"^^xsd:gYearMonth .
Test Test 0283: time element with @datetime an invalid datatype generates plain literal

Input

<?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-18</time>
</body>
</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0283.xhtml> rdf:value " 2012-03-18" .
Test Test 0284: time element not matching datatype but with explicit @datatype

Input

<?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-18</time>
</body>
</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0284.xhtml> rdf:value " 2012-03-18"^^xsd:dateTime .
Test Test 0287: time element with @datetime an xsd:dateTime with TZ offset

Input

<?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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0287.xhtml> rdf:value "2012-03-18T00:00:00-08:00"^^xsd:dateTime .
Test Test 0289: @href becomes subject when @property and @content are present

Input

<?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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdf:value "value" .
Test Test 0290: @href becomes subject when @property and @datatype are present

Input

<?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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdf:value "value" .
Test Test 0291: @href as subject overridden by @about

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.net/> rdf:value "value" .
Test Test 0292: @about overriding @href as subject is used as parent resource

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.net/> rdf:value "value one",
"value two" .
Test Test 0293: Testing the ':' character usage in a CURIE

Input

<?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>

Expected Result

@prefix ex: <http://www.example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org> ex:column:test "Test" .
Test Test 0296: @property does set parent object without @typeof

Input

<?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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.com/gregg/#me> a foaf:Person;
foaf:homepage <http://example.com/gregg/>;
foaf:knows <http://example.com/niklas/#me>,
<http://example.com/ivan/#me>,
<http://example.com/manu/#me>,
<http://example.com/stéphane/#me>;
foaf:name "Gregg" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0296.xhtml> rdfa:usesVocabulary foaf: .

<http://example.com/ivan/#me> a foaf:Person;
foaf:homepage <http://example.com/ivan/>;
foaf:name "Ivan" .

<http://example.com/manu/#me> a foaf:Person;
foaf:homepage <http://example.com/manu/>;
foaf:name "Manu" .

<http://example.com/niklas/#me> a foaf:Person;
foaf:homepage <http://example.com/niklas/>;
foaf:name "Niklas" .

<http://example.com/stéphane/#me> a foaf:Person;
foaf:homepage <http://example.com/stéphane/>;
foaf:name "Stéphane" .
Test Test 0297: @about=[] with @typeof does not create a new subject

Input

<?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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0297.xhtml> foaf:name "Alex Milowski" .

[ a foaf:Person] .
Test Test 0298: @about=[] with @typeof does not create a new object

Input

<?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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
a foaf:Person;
foaf:name "Alex Milowski"
] .
Test Test 0299: @resource=[] with @href or @src uses @href or @src (@rel)

Input

<?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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://www.example.org/> xhv:license <http://www.example.org/license.xhtml> .
Test Test 0300: @resource=[] with @href or @src uses @href or @src (@property)

Input

<?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>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://www.example.org/> xhv:license <http://www.example.org/license.xhtml> .
Test Test 0301: @property with @typeof creates a typed_resource for chaining

Input

<?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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<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"
];
rdfa:usesVocabulary <http://www.milowski.com/V/> .
Test Test 0302: @typeof with different content types

Input

<?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>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix schema: <http://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://openspring.net/scor#me> a dcterms:Agent,
foaf:Person,
schema:Person;
schema:homepage <http://openspring.net/>;
schema:name "Stéphane Corlosquet" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0302.xhtml> rdfa:usesVocabulary schema: .
Test Test 0311: Ensure no triples are generated when @property is empty

Input

<?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>

Expected Result


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

Input

<?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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix schema: <http://schema.org/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0312.xhtml> rdfa:usesVocabulary schema: .

[
a schema:Person;
schema:homepage <http://example.org/>
] .
Test Test 0315: @property and @typeof with incomplete triples

Input

<?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>
<dd></dd>
</dl>
</body>
</html>

Expected Result

@prefix po: <http://example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0315.xhtml> po:role [ rdfs:label [ a po:Role]] .
Test Test 0316: @property and @typeof with incomplete triples (@href variant)

Input

<?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>
<dd></dd>
</dl>
</body>
</html>

Expected Result

@prefix po: <http://example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0316.xhtml> po:role [ rdfs:label <http://example.org/profiles/director.html>] .

<http://example.org/profiles/director.html> a po:Role .
Test Test 0317: @datatype inhibits new @property behavior

Input

<?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>
<dd></dd>
</dl>
</body>
</html>

Expected Result

@prefix po: <http://purl.org/ontology/po/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0317.xhtml> po:role <http://example.org/profiles/director.html> .

<http://example.org/profiles/director.html> a po:Role;
rdfs:label "Director" .
Test Test 0318: Setting @vocab to empty strings removes default vocabulary

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0318</title>
</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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0318.xhtml> rdfa:usesVocabulary foaf: .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0318.xhtml#me> foaf:name "Ivan Herman" .
Test Test 0319: Relative @profile

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="http://example.com/"/>
<title>Test 0319</title>
</head>
<body prefix="pr: relative/iri#" xmlns:xpr="relative/uri#">
<p property="pr:prop xpr:prop">value</p>
</body>
</html>

Expected Result

@prefix pr: <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/relative/iri#> .
@prefix xpr: <http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/relative/uri#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.com/> pr:prop "value";
xpr:prop "value" .
Test Test 0321: rdfa:copy to rdfa:Pattern

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0321</title>
</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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix schema: <http://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0321.xhtml> rdfa:usesVocabulary schema: .

[
a schema:Person;
schema:name "Amanda"
] .
Test Test 0322: rdfa:copy for additional property value

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0322</title>
</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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix schema: <http://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0322.xhtml> rdfa:usesVocabulary schema: .

[
a schema:Person;
schema:name "Gregg",
"Kellogg"
] .
Test Test 0323: Multiple references to rdfa:Pattern

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0323</title>
</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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix schema: <http://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
a foaf:Person;
schema:name "Amanda";
foaf:name "Amanda"
] .

[
a schema:Person;
schema:name "Amanda";
foaf:name "Amanda"
] .
Test Test 0324: Multiple references to rdfa:Pattern

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0324</title>
</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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix schema: <http://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
a schema:Person;
schema:band "Jazz Band";
schema:name "Amanda"
] .
Test Test 0325: Multiple references to rdfa:Pattern creating a resource

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="http://example.org/"/>
<title>Test 0325</title>
</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>

Expected Result

@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix schema: <http://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdfa:usesVocabulary schema: .

<http://example.org/#bar> schema:refers-to _:g70125123244060 .

<http://example.org/#foo> schema:refers-to _:g70125123244060 .

_:g70125123244060 schema:name "Amanda" .
Test Test 0326: rdfa:Pattern removed only if referenced

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="http://example.com/"/>
<title>Test 0326</title>
</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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix schema: <http://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.com/> rdfa:usesVocabulary schema: .

<http://example.com/#referencing> a schema:Person;
schema:name "Bella" .

<http://example.com/#unreferenced> a rdfa:Pattern;
schema:name "Lola" .
Test Test 0327: rdfa:Pattern chaining

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="http://example.com/"/>
<title>Test 0327</title>
</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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix schema: <http://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
a schema:Person;
schema:band [
a schema:MusicGroup;
schema:name "Jazz Band";
schema:size "12"
];
schema:name "Amanda"
] .
Test Test 0328: @content overrides the content of the time element.

Input

<?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">2012-03-18</time>
</body>

</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0328.xhtml> rdf:value "this should be the value" .
Test Test 0329: Recursive triple generation

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="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>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/foaf#me> foaf:familyName "Doe";
foaf:givenName "John";
foaf:name """
John
Doe
""" .
Test Test 0330: @datatype overrides inherited @lang

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="dcterms: http://purl.org/dc/terms/ xsd: http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0330</title>
</head>
<body lang="en" xml:lang="en">
<div property="dc:date" datatype="xsd:date">2010-11-12</div>
</body>
</html>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0330.xhtml> dcterms:date "2010-11-12"^^xsd:date .
Test Test 0331: @datatype overrides inherited @lang, with @content

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="dcterms: http://purl.org/dc/terms/">
<head>
<title>Test 0331</title>
</head>
<body lang="en" xml:lang="en">
<div property="dcterms:language" datatype="dcterms:RFC5646" content="af">Afrikaans</div>
</body>
</html>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0331.xhtml> dcterms:language "af"^^dcterms:RFC5646 .
Test Test 0332: Empty @datatype doesn't override inherited @lang, with @content

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" prefix="dcterms: http://purl.org/dc/terms/">
<head>
<title>Test 0332</title>
</head>
<body lang="en" xml:lang="en">
<div property="dcterms:language" datatype="" content="af">Afrikaans</div>
</body>
</html>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0332.xhtml> dcterms:language "af"@en .
Test Test 0333: @content overrides @datetime (with @datatype specified)

Input

<?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" content="2012-03-12" datetime="2012-03-11" datatype="xsd:date">10 March 2012 at midnight</time>
</body>
</html>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0333.xhtml> rdf:value "2012-03-12"^^xsd:date .
Test Test 0334: @resource changes the current subject for the nested elements

Input

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test 0334: @resource changes the current subject for the nested elements</title>
</head>
<body>
<div vocab="http://schema.org/" resource="http://example.org/base">
<a property="uri" href="http://example.orb/val1">Not This</a>
<div resource="http://greggkellogg.net/#me">
<a property="name" rel="homepage foaf:homepage" href="http://greggkellogg.net/">Gregg Kellogg</a>
</div>
</div>
</body>
</html>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix schema: <http://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/base> schema:uri <http://example.orb/val1> .

<http://greggkellogg.net/#me> schema:name "Gregg Kellogg";
foaf:homepage <http://greggkellogg.net/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xhtml5/0334.xhtml> rdfa:usesVocabulary schema: .
Test Test 0001: Predicate establishment with @property

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/photo1.jpg> dc11:creator "Mark Birbeck" .
Test Test 0006: @rel and @rev

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="dc: http://purl.org/dc/elements/1.1/ 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>
</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/photo1.jpg> dc11:creator <http://www.blogger.com/profile/1109404> .

<http://www.blogger.com/profile/1109404> foaf:img <http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/photo1.jpg> .
Test Test 0007: @rel, @rev, @property, @content

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="dc: http://purl.org/dc/elements/1.1/ 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>
</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/photo1.jpg> dc11:creator <http://www.blogger.com/profile/1109404>;
dc11:title "Portrait of Mark" .

<http://www.blogger.com/profile/1109404> foaf:img <http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/photo1.jpg> .
Test Test 0008: empty string @about

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix cc: <http://creativecommons.org/ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0008.xml> cc:license <http://creativecommons.org/licenses/by-nc-nd/2.5/> .
Test Test 0009: @rev

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="foaf: http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0009</title>
<link about="http://example.org/people#Person1" rel=""
rev="foaf:knows" href="http://example.org/people#Person2" />

</head>
<body>
<p></p>
</body>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://example.org/people#Person2> foaf:knows <http://example.org/people#Person1> .
Test Test 0010: @rel, @rev, @href

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://example.org/people#Person1> foaf:knows <http://example.org/people#Person2> .

<http://example.org/people#Person2> foaf:knows <http://example.org/people#Person1> .
Test Test 0012: @xml:lang

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="ex: http://example.org/">
<head about="">
<title>Test 0012</title>
<meta about="http://example.org/node" property="ex:property" xml:lang="fr" content="chat" />
</head>
<body>
<p></p>
</body>
</root>

Expected Result

@prefix ex: <http://example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

ex:node ex:property "chat"@fr .
Test Test 0013: @xml:lang inheritance

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="ex: http://example.org/">
<head about="" xml:lang="fr">
<title xml:lang="en">Test 0013</title>
<meta about="http://example.org/node" property="ex:property" content="chat" />
</head>
<body>
<p></p>
</body>
</root>

Expected Result

@prefix ex: <http://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

ex:node ex:property "chat"@fr .
Test Test 0014: @datatype, xsd:integer

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="ex: http://example.org/ 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>
</root>

Expected Result

@prefix ex: <http://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

ex:foo ex:bar 10 .
Test Test 0015: meta and link

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0015.xml> dc11:creator "Fyodor Dostoevsky";
dc11:source <urn:isbn:0140449132> .
Test Test 0017: Related blanknodes

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
foaf:knows [ foaf:name "Ralph Swick"];
foaf:name "Manu Sporny"
] .
Test Test 0018: @rel for predicate

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>


</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/photo1.jpg> dc11:creator <http://www.blogger.com/profile/1109404> .
Test Test 0019: @about for subject

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<mailto:manu.sporny@digitalbazaar.com> foaf:knows <mailto:michael.hausenblas@joanneum.at> .
Test Test 0020: Inheriting @about for subject

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>


</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/photo1.jpg> dc11:creator "Mark Birbeck" .
Test Test 0021: Subject inheritance with no @about

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>


</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0021.xml> dc11:creator "Mark Birbeck" .
Test Test 0023: @id does not generate subjects

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>


</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0023.xml> dc11:creator "Mark Birbeck" .
Test Test 0025: simple chaining test

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="dc: http://purl.org/dc/elements/1.1/ 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>


</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0025.xml> dc11:creator <http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0025.xml#me> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0025.xml#me> foaf:name "Ben Adida" .
Test Test 0026: @content

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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"></span>
</p>
</body>


</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://internet-apps.blogspot.com/> dc11:creator "Mark Birbeck" .
Test Test 0027: @content, ignore element content

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>


</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://internet-apps.blogspot.com/> dc11:creator "Mark Birbeck" .
Test Test 0029: markup stripping with @datatype

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="dc: http://purl.org/dc/elements/1.1/ 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>


</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/foo> dc11:creator "Mark Birbeck" .
Test Test 0030: omitted @about

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix cc: <http://creativecommons.org/ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0030.xml> cc:license <http://creativecommons.org/licenses/by-nc-nd/2.5/> .
Test Test 0031: simple @resource

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0031.xml#wtw> dc11:identifier <urn:ISBN:0752820907> .
Test Test 0032: @resource overrides @href

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0032.xml#wtw> dc11:identifier <urn:ISBN:0752820907> .
Test Test 0033: simple chaining test with bNode

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="dc: http://purl.org/dc/elements/1.1/ 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>


</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0033.xml> dc11:creator [ foaf:name "Ben Adida"] .
Test Test 0034: simple img[@src] test

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/mic.xhtml#i> foaf:img <http://sw-app.org/img/mic_2007_01.jpg> .
Test Test 0035: @src/@href test

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/mic.xhtml#i> foaf:img <http://sw-app.org/img/mic_2006_03.jpg> .
Test Test 0036: @src/@resource test

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/mic.xhtml#i> foaf:img <http://sw-app.org/img/mic_2006_03.jpg> .
Test Test 0037: @src/@href/@resource test

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/mic.xhtml#i> foaf:img <http://sw-app.org/mic.xhtml#photo> .
Test Test 0038: @rev - img[@src] test

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/img/mic_2007_01.jpg> foaf:depicts <http://sw-app.org/mic.xhtml#i> .
Test Test 0039: @rev - @src/@href test

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/img/mic_2006_03.jpg> foaf:depicts <http://sw-app.org/mic.xhtml#i> .
Test Test 0041: @rev - @src/@href/@resource test

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://sw-app.org/mic.xhtml#photo> foaf:depicts <http://sw-app.org/mic.xhtml#i> .
Test Test 0048: @typeof with @about and @rel present, no @resource

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#me> a foaf:Person;
foaf:knows [ foaf:name "John Doe"] .
Test Test 0049: @typeof with @about, no @rel or @resource

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#me> a foaf:Person;
foaf:name "John Doe" .
Test Test 0050: @typeof without anything else

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
a foaf:Person;
foaf:name "John Doe"
] .
Test Test 0051: @typeof with a single @property

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0051.xml> a foaf:Document;
foaf:topic "John Doe" .
Test Test 0052: @typeof with @resource and nothing else

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://www.example.org/#me> a foaf:Person .
Test Test 0053: @typeof with @resource and nothing else, with a subelement

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#me> a foaf:Person;
foaf:name "John Doe" .
Test Test 0054: multiple @property

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0054.xml> dc11:creator "Fabien Gandon";
dc11:publisher "Fabien Gandon" .
Test Test 0055: multiple @rel

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0055.xml> dc11:creator <http://www-sop.inria.fr/acacia/fabien/>;
dc11:publisher <http://www-sop.inria.fr/acacia/fabien/> .
Test Test 0056: @typeof applies to @about on same element with hanging rel

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#ben> a foaf:Person;
foaf:knows <http://www.example.org/#mark> .

<http://www.example.org/#mark> foaf:name "Mark Birbeck" .
Test Test 0057: hanging @rel creates multiple triples

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#ben> foaf:knows <http://www.example.org/#ivan>,
<http://www.example.org/#mark> .

<http://www.example.org/#ivan> foaf:name "Ivan Herman" .

<http://www.example.org/#mark> foaf:name "Mark Birbeck" .
Test Test 0059: multiple hanging @rels with multiple children

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="dc: http://purl.org/dc/elements/1.1/ 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>
</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0059.xml> dc11:creator <http://www.example.org/#manu>,
<http://www.example.org/#fabien>;
dc11:publisher <http://www.example.org/#manu>,
<http://www.example.org/#fabien> .

<http://www.example.org/#fabien> foaf:name "Fabien Gandon" .

<http://www.example.org/#manu> foaf:name "Manu Sporny" .
Test Test 0060: UTF-8 conformance

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#matsumoto-kimiko> a foaf:Person;
foaf:name "松本 后子" .
Test Test 0063: @rel in head using reserved XHTML value and empty-prefix CURIE syntax

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0063</title>
<link rel=":next" href="http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0064.xml" />
</head>
<body>
<p>This is the 63<sup>rd</sup> test. The next test is #64.</p>
</body>
</root>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0063.xml> xhv:next <http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0064.xml> .
Test Test 0064: @about with safe CURIE

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

[ foaf:knows <http://digitalbazaar.com/people/manu>] .
Test Test 0065: @rel with safe CURIE

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>


</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

[
foaf:knows [ foaf:mbox <mailto:michael.hausenblas@joanneum.at>];
foaf:mbox <mailto:manu.sporny@digitalbazaar.com>
] .
Test Test 0067: @property in the head

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="foaf: http://xmlns.com/foaf/0.1/">
<head>
<title property="foaf:topic">Test 0067</title>
</head>
<body>
<p>This is test #67.</p>
</body>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0067.xml> foaf:topic "Test 0067" .
Test Test 0068: Relative URI in @about

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0068</title>
</head>
<body>
<p about="0067.xml">
The previous test was
<span property="dc:title">Test 0067</span>.
</p>
</body>
</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0067.xml> dc11:title "Test 0067" .
Test Test 0071: No explicit @about

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix cc: <http://creativecommons.org/ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0071.xml> cc:license <http://creativecommons.org/licenses/by-nd/3.0/> .
Test Test 0079: @resource and @href in completing incomplete triples

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://www.example.org/#somebody> foaf:knows <http://www.w3.org/People/Berners-Lee/card#i>,
<http://www.ivan-herman.org/Ivan_Herman>,
<http://danbri.org/foaf.rdf#danbri> .
Test Test 0080: @about overrides @resource in incomplete triples

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://www.example.org/#somebody> foaf:knows <http://danbri.org/foaf.rdf#danbri> .
Test Test 0083: multiple ways of handling incomplete triples (merged)

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#somebody> foaf:knows <http://danbri.org/foaf.rdf#danbri>, [
foaf:mailbox <mailto:ivan@w3.org>;
foaf:name "Ivan Herman"
] .

<http://danbri.org/foaf.rdf#danbri> a foaf:Person;
foaf:name "Dan Brickley" .
Test Test 0084: multiple ways of handling incomplete triples, this time with both @rel and @rev

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://danbri.org/foaf.rdf#danbri> a foaf:Person;
foaf:knows <http://www.example.org/#somebody>;
foaf:name "Dan Brickley" .

<http://www.example.org/#somebody> foaf:knows [
foaf:knows <http://www.example.org/#somebody>;
foaf:mailbox <mailto:ivan@w3.org>;
foaf:name "Ivan Herman"
],
<http://danbri.org/foaf.rdf#danbri> .
Test Test 0085: @resource and @href in completing incomplete triples

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://www.example.org/#somebody> foaf:knows [ foaf:knows <http://www.w3.org/People/Berners-Lee/card#i>,
<http://www.ivan-herman.org/Ivan_Herman>,
<http://danbri.org/foaf.rdf#danbri>] .
Test Test 0087: All reserved XHTML @rel values (with :xxx)

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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>
</root>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0087.xml> xhv:alternate <http://example.org/alternate>;
xhv:appendix <http://example.org/appendix>;
xhv:bookmark <http://example.org/bookmark>;
xhv:chapter <http://example.org/chapter>;
xhv:cite <http://example.org/cite>;
xhv:contents <http://example.org/contents>;
xhv:copyright <http://example.org/copyright>;
xhv:first <http://example.org/first>;
xhv:glossary <http://example.org/glossary>;
xhv:help <http://example.org/help>;
xhv:icon <http://example.org/icon>;
xhv:index <http://example.org/index>;
xhv:last <http://example.org/last>;
xhv:license <http://example.org/license>;
xhv:meta <http://example.org/meta>;
xhv:next <http://example.org/next>;
xhv:p3pv1 <http://example.org/p3pv1>;
xhv:prev <http://example.org/prev>;
xhv:role <http://example.org/role>;
xhv:section <http://example.org/section>;
xhv:start <http://example.org/start>;
xhv:stylesheet <http://example.org/stylesheet>;
xhv:subsection <http://example.org/subsection>;
xhv:up <http://example.org/up> .
Test Test 0088: Interpretation of the CURIE "_:"

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#somebody> foaf:knows [
a foaf:Person;
foaf:name "Dan Brickley"
] .
Test Test 0089: @src sets a new subject (@typeof)

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="foaf: http://xmlns.com/foaf/0.1/">
<head>
<title>Test 0089</title>
</head>
<body>
<div>
<img src="http://example.org/example.png" typeof="foaf:Image" alt="example image" />
</div>
</body>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://example.org/example.png> a foaf:Image .
Test Test 0091: Non-reserved, un-prefixed CURIE in @property

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<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>
</root>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
xhv:definition "a bi-pedal primate";
xhv:foo "Milky Way";
xhv:note "confused animal"
] .
Test Test 0093: Tests XMLLiteral content with explicit @datatype (user-data-typed literal)

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="dc: http://purl.org/dc/elements/1.1/ ex: http://www.example.org/">
<head>
<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>
</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix ex: <http://www.example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0093.xml> dc11:creator "Albert Einstein";
dc11:title "E = mc2: The Most Urgent Problem of Our Time"^^ex:XMLLiteral .
Test Test 0099: Preservation of white space in literals

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="example: http://www.example.org/">
<head>
<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>
</root>

Expected Result

@prefix example: <http://www.example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.cwi.nl/~steven/> 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""" .
Test Test 0104: rdf:value

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# example: http://www.example.org/">
<head>
<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>
</root>

Expected Result

@prefix example: <http://www.example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0104.xml#interfenestration> example:size [
example:unit "character";
rdf:value "17"
] .
Test Test 0106: chaining with empty value in inner @rel

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0106.xml> dc11:creator [] .
Test Test 0107: no garbage collecting bnodes

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="ex: http://example.org/">
<head>
<title>Test 0107</title>
</head>
<body>
<div rel="next"></div>
</body>
</root>

Expected Result


Test Test 0108: plain literal with datatype="" and xml:lang preservation

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="ex: http://example.org/">
<head>
<title>Test 0108</title>
</head>
<body>
<p about="http://example.org/node" property="ex:property"
datatype="" xml:lang="el">ελληνικό
άσπρο διάστημα
</p>
</body>
</root>

Expected Result

@prefix ex: <http://example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

ex:node ex:property """ελληνικό
άσπρο διάστημα
"""@el .
Test Test 0112: plain literal with datatype=""

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix ex: <http://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

ex:node ex:property """not an XML Literal,
whitespace preserved
""" .
Test Test 0113: element with @property and no child nodes generates empty plain literal

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0113</title>
</head>
<body>
<span about="#a" property="dc:title"></span>
<span about="#b" property="dc:title" />
</body>
</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0113.xml#a> dc11:title "" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0113.xml#b> dc11:title "" .
Test Test 0115: XML Entities must be supported by RDFa parser

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix ex: <http://www.example.com/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0115.xml> ex:entity1 ">";
ex:entity2 "Ben & Co.";
ex:entity3 "@";
ex:entity4 "@" .
Test Test 0118: empty string "" is not equivalent to NULL - @about

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>

</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0118.xml> dc11:creator "Ben" .
Test Test 0119: "[prefix:]" CURIE format is valid

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="dc: http://purl.org/dc/elements/1.1/ 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>

</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix example: <http://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

example: dc11:title "Example Website" .
Test Test 0120: "[:]" CURIE format is valid

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="dc: http://purl.org/dc/elements/1.1/ 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>
</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

xhv: dc11:title "The XHTML Vocabulary Document" .
Test Test 0121: "[]" is a valid safe CURIE

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="dc: http://purl.org/dc/elements/1.1/">
<head>
<title>Test 0121</title>
</head>
<body>
<div>
<div 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>
</div>
</div>
</body>




</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> dc11:title "Test Case 0121" .

<http://example.org/> dc11:contributor "Shane McCarron" .
Test Test 0122: resource="[]" does not set the object

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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>




</root>

Expected Result


Test Test 0126: Multiple @typeof values

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="dct: http://purl.org/dc/terms/ sioc: http://rdfs.org/sioc/ns# 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>
</root>

Expected Result

@prefix dct: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#article> a sioc:Post,
foaf:Document;
dct:title "My article" .
Test Test 0140: Blank nodes identifiers are not allowed as predicates

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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>
</root>

Expected Result


Test Test 0147: xmlns prefix 'xmlzzz' (reserved)

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test</title>
</head>
<body>
<p xmlns:xmlzzz="http://example.org/" property="xmlzzz:test">Test</p>
</body>
</root>

Expected Result

@prefix xmlzzz: <http://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0147.xml> xmlzzz:test "Test" .
Test Test 0174: Support single character prefix in CURIEs

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>

</root>

Expected Result

@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/jd> vcard:fn "John Doe" .
Test Test 0175: IRI for @property is allowed

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[ foaf:name "Gregg Kellogg"] .
Test Test 0176: IRI for @rel and @rev is allowed

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>


</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

_:gregg foaf:knows [
foaf:knows _:gregg;
foaf:mbox <mailto:manu.sporny@digitalbazaar.com>
];
foaf:mbox <mailto:gregg@kellogg-assoc.com> .
Test Test 0180: Test @prefix with empty mapping

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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>
</root>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/#me> xhv:name "Ivan Herman" .
Test Test 0181: Test default XHTML vocabulary

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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>
</root>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://www.example.org/software> xhv:license <http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .
Test Test 0196: Test process explicit XMLLiteral

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="ex: http://example.org/rdf/ 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>
</root>

Expected Result

@prefix ex: <http://example.org/rdf/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org> ex:plainlit "This is a plain literal";
ex:xmllit "This is an XMLLiteral"^^rdf:XMLLiteral .
Test Test 0202: Tests to ensure @xml:base used in SVG

Input

<?xml version="1.0" encoding="UTF-8"?>
<root width="12cm" height="4cm" viewBox="0 0 1200 400"
xml:base="http://example.com/"
xmlns:dc="http://purl.org/dc/terms/"
xmlns="http://www.w3.org/2000/svg">
version="1.2"
baseProfile="tiny"
<desc property="dc:description">A yellow rectangle with sharp corners.</desc>
<!-- Show outline of canvas using 'rect' element -->
<rect x="1" y="1" width="1198" height="398"
fill="none" stroke="blue" stroke-width="2"/>
<rect x="400" y="100" width="400" height="200"
fill="yellow" stroke="navy" stroke-width="10" />
</root>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.com/> dcterms:description "A yellow rectangle with sharp corners." .
Test Test 0203: Tests to ensure @xml:base, XML+RDFa used in non-root elements in SVG

Input

<?xml version="1.0" encoding="UTF-8"?>
<root width="12cm" height="4cm" viewBox="0 0 1200 400"
xml:base="http://example.com/not-this-one/"
xmlns:dc="http://purl.org/dc/terms/"
xmlns="http://www.w3.org/2000/svg">
version="1.2"
baseProfile="tiny"
<desc about="" xml:base="http://example.com/" property="dc:description">A yellow rectangle with sharp corners.</desc>
<!-- Show outline of canvas using 'rect' element -->
<rect x="1" y="1" width="1198" height="398"
fill="none" stroke="blue" stroke-width="2"/>
<rect x="400" y="100" width="400" height="200"
fill="yellow" stroke="navy" stroke-width="10" />
</root>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.com/> dcterms:description "A yellow rectangle with sharp corners." .
Test Test 0206: Usage of Initial Context

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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>

</root>

Expected Result

@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

xsd:maxExclusive a owl:DatatypeProperty .
Test Test 0207: Vevent using @typeof

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="cal: http://www.w3.org/2002/12/cal/icaltzd# 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>
</root>

Expected Result

@prefix cal: <http://www.w3.org/2002/12/cal/icaltzd#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0207.xml#event1> a cal:Vevent;
cal:dtend "2006-10-23"^^xsd:date;
cal:dtstart "2006-10-21"^^xsd:date;
cal:location "Iona, UK";
cal:summary "Weekend off in Iona";
cal:url <http://freetime.example.org/> .
Test Test 0213: Datatype generation for a literal with XML content, version 1.1

Input

<?xml version="1.0" encoding="UTF-8"?>
<root 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>

</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/> dc11:title "E = mc2: The Most Urgent Problem of Our Time" .
Test Test 0214: Root element has implicit @about=""

Input

<?xml version="1.0" encoding="UTF-8"?>
<root typeof="foaf:Document">
<head>
<title property="dc:title">Test 0214</title>
</head>
<body>
<p>This document has a title.</p>
</body>
</root>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0214.xml> a foaf:Document;
dcterms:title "Test 0214" .
Test Test 0229: img[@src] test with omitted @about

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0229.xml> foaf:img <http://sw-app.org/img/mic_2007_01.jpg> .
Test Test 0246: hanging @rel creates multiple triples, @typeof permutation; RDFa 1.1 version

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#ben> foaf:knows [
a foaf:Person;
foaf:name "Mark Birbeck"
], [
a foaf:Person;
foaf:name "Ivan Herman"
] .
Test Test 0247: Multiple incomplete triples, RDFa 1.1version

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#somebody> foaf:knows [
a foaf:Person;
foaf:name "Mark Birbeck"
], [
foaf:mailbox <mailto:ivan@w3.org>;
foaf:name "Ivan Herman"
] .
Test Test 0248: multiple ways of handling incomplete triples (with @rev); RDFa 1.1 version

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
a foaf:Person;
foaf:knows <http://www.example.org/#somebody>;
foaf:name "Mark Birbeck"
] .

[
foaf:knows <http://www.example.org/#somebody>;
foaf:mailbox <mailto:ivan@w3.org>;
foaf:name "Ivan Herman"
] .
Test Test 0249: multiple ways of handling incomplete triples (with @rel and @rev); RDFa 1.1 version

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org/#somebody> foaf:knows [
foaf:knows <http://www.example.org/#somebody>;
foaf:mailbox <mailto:ivan@w3.org>;
foaf:name "Ivan Herman"
], [
a foaf:Person;
foaf:knows <http://www.example.org/#somebody>;
foaf:name "Mark Birbeck"
] .
Test Test 0250: Checking the right behaviour of @typeof with @about, in presence of @property

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.ivan-herman.net/foaf#me> a foaf:Person;
foaf:name "Ivan Herman" .
Test Test 0258: The underscore character is not allowed as a prefix or in xmlns

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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>
</root>

Expected Result

@prefix earl: <http://www.w3.org/ns/earl#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0258.xml> earl:testcase [] .
Test Test 0259: XML+RDFa Initial Context

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0259</title>
</head>
<body>
<div>
Vocabulary Prefixes
<span property="csvw:">CSVW</span>
<span property="dcat:">DCAT</span>
<span property="qb:">QB</span>
<span property="grddl:">GRDDL</span>
<span property="ma:">MA</span>
<span property="org:">ORG</span>ORG
<span property="owl:">OWL</span>
<span property="prov:">PROV</span>
<span property="rdf:">RDF</span>
<span property="rdfa:">RDFa</span>
<span property="rdfs:">RDFS</span>
<span property="rif:">RIF</span>
<span property="rr:">RR</span>
<span property="sd:">SD</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>
</root>

Expected Result

@prefix cc: <http://creativecommons.org/ns#> .
@prefix csvw: <http://www.w3.org/ns/csvw#> .
@prefix ctag: <http://commontag.org/ns#> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix gr: <http://purl.org/goodrelations/v1#> .
@prefix grddl: <http://www.w3.org/2003/g/data-view#> .
@prefix ical: <http://www.w3.org/2002/12/cal/icaltzd#> .
@prefix ma: <http://www.w3.org/ns/ma-ont#> .
@prefix og: <http://ogp.me/ns#> .
@prefix org: <http://www.w3.org/ns/org#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix qb: <http://purl.org/linked-data/cube#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rev: <http://purl.org/stuff/rev#> .
@prefix rif: <http://www.w3.org/2007/rif#> .
@prefix rr: <http://www.w3.org/ns/r2rml#> .
@prefix schema: <http://schema.org/> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .
@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix skosxl: <http://www.w3.org/2008/05/skos-xl#> .
@prefix v: <http://rdf.data-vocabulary.org/#> .
@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
@prefix void: <http://rdfs.org/ns/void#> .
@prefix wdr: <http://www.w3.org/2007/05/powder#> .
@prefix wdrs: <http://www.w3.org/2007/05/powder-s#> .
@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0259.xml> ctag: "CTAG";
cc: "CC";
og: "OG";
dcterms: "DC",
"DCTERMS";
gr: "GR";
qb: "QB";
rev: "REV";
v: "V";
void: "VOID";
sioc: "SIOC";
schema: "Schema";
rdf: "RDF";
xhv: "XHV";
xhv:license "License";
xhv:role "Role";
rdfs: "RDFS";
xsd: "XSD";
owl: "OWL";
ical: "ICAL";
grddl: "GRDDL";
skos: "SKOS";
vcard: "VCARD";
wdr: "WDR";
wdrs: "WDRS";
wdrs:describedby "DescribedBy";
rif: "RIF";
skosxl: "SKOS-XL";
xml: "XML";
csvw: "CSVW";
dcat: "DCAT";
ma: "MA";
org: "ORG";
prov: "PROV";
rr: "RR";
rdfa: "RDFa";
sd: "SD";
foaf: "FOAF" .
Test Test 0261: White space preservation in XMLLiteral

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="ex: http://example.org/rdf/ 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>
</root>

Expected Result

@prefix ex: <http://example.org/rdf/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://www.example.org> ex:xmllit """This is
an XMLLiteral"""^^rdf:XMLLiteral .
Test Test 0262: Predicate establishment with @property, with white spaces before and after the attribute value

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/photo1.jpg> dc11:creator "Mark Birbeck" .
Test Test 0263: @property appearing on the html element yields the base as the subject

Input

<?xml version="1.0" encoding="UTF-8"?>
<root property="rdfs:seeAlso" resource="http://www.example.org">
<head >
<title>Test 0263</title>
</head>
<body>
<p> </p>
</body>
</root>

Expected Result

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0263.xml> rdfs:seeAlso <http://www.example.org> .
Test Test 0264: @property appearing on the head element gets the subject from <html>, ie, parent

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head property="rdfs:seeAlso" resource="http://www.example.org">
<title>Test 0264</title>
</head>
<body>
<p> </p>
</body>
</root>

Expected Result

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0264.xml> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://www.example.org> .
Test Test 0265: @property appearing on the head element gets the subject from <html>, ie, parent

Input

<?xml version="1.0" encoding="UTF-8"?>
<root about="http://www.example.com">
<head property="rdfs:seeAlso" resource="http://www.example.org">
<title>Test 0265</title>
</head>
<body>
<p> </p>
</body>
</root>

Expected Result

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<http://www.example.com> rdfs:seeAlso <http://www.example.org> .
Test Test 0266: @property without @content or @datatype, typed object set by @href and @typeof

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

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

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

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

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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" alt="Ivan Herman" />
</div>
</body>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

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

Input

<?xml version="1.0" encoding="UTF-8"?>
<root property="rdfs:comment" content="This is an RDFa test">
<head >
<title>Test 0269</title>
</head>
<body>
<p> </p>
</body>
</root>

Expected Result

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0269.xml> rdfs:comment "This is an RDFa test" .
Test Test 0271: Use of @property in HEAD with explicit parent subject via @about

Input

<?xml version="1.0" encoding="UTF-8"?>
<root about="http://www.example.org/">
<head property="rdfs:comment" content="This is an RDFa test">
<title>Test 0269</title>
</head>
<body>
<p> </p>
</body>
</root>

Expected Result

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<http://www.example.org/> rdfs:comment "This is an RDFa test" .
Test Test 0289: @href becomes subject when @property and @content are present

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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>
</root>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdf:value "value" .
Test Test 0290: @href becomes subject when @property and @datatype are present

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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>
</root>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/> rdf:value "value" .
Test Test 0291: @href as subject overridden by @about

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.net/> rdf:value "value" .
Test Test 0292: @about overriding @href as subject is used as parent resource

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.net/> rdf:value "value one",
"value two" .
Test Test 0293: Testing the ':' character usage in a CURIE

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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>
</root>

Expected Result

@prefix ex: <http://www.example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.example.org> ex:column:test "Test" .
Test Test 0295: Benchmark test

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="air: http://www.daml.org/2001/10/html/airport-ont# bio: http://vocab.org/bio/0.1/ cal: http://www.w3.org/2002/12/cal/icaltzd# cc: http://creativecommons.org/ns# cert: http://www.w3.org/ns/auth/cert# contact: http://www.w3.org/2000/10/swap/pim/contact# dc: http://purl.org/dc/terms/ dct: http://purl.org/dc/terms/ earl: http://www.w3.org/ns/earl# example: http://example.org/ ex: http://example.org/ foaf: http://xmlns.com/foaf/0.1/ google: http://rdf.data-vocabulary.org/# ical: http://www.w3.org/2002/12/cal/icaltzd# openid: http://xmlns.openid.net/auth# owl: http://www.w3.org/2002/07/owl# rdfatest: http://rdfa.info/vocabs/rdfa-test# 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/ rsa: http://www.w3.org/ns/auth/rsa# rss: http://web.resource.org/rss/1.0/ sioc: http://rdfs.org/sioc/ns# v: http://www.w3.org/2006/vcard/ns# wot: http://xmlns.com/wot/0.1/ xhv: http://www.w3.org/1999/xhtml/vocab# 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.xml">
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.xml">Test 0070</a>.
</p>
<p>The previous test was
<span about="" rel="xhv:prev" resource="0069.xml">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.xml">alternate</span>
<span about="http://example.org/appendix" rev="appendix"
href="0077.xml">appendix</span>
<span about="http://example.org/bookmark" rev="bookmark"
href="0077.xml">bookmark</span>
<span about="http://example.org/cite" rev="cite"
href="0077.xml">cite</span>
<span about="http://example.org/chapter" rev="chapter"
href="0077.xml">chapter</span>
<span about="http://example.org/contents" rev="contents"
href="0077.xml">contents</span>
<span about="http://example.org/copyright" rev="copyright"
href="0077.xml">copyright</span>
<span about="http://example.org/glossary" rev="glossary"
href="0077.xml">glossary</span>
<span about="http://example.org/help" rev="help"
href="0077.xml">help</span>
<span about="http://example.org/icon" rev="icon"
href="0077.xml">icon</span>
<span about="http://example.org/index" rev="index"
href="0077.xml">index</span>
<span about="http://example.org/first" rev="first"
href="0077.xml">first</span>
<span about="http://example.org/last" rev="last"
href="0077.xml">last</span>
<span about="http://example.org/license" rev="license"
href="0077.xml">license</span>
<span about="http://example.org/meta" rev="meta"
href="0077.xml">meta</span>
<span about="http://example.org/next" rev="next"
href="0077.xml">next</span>
<span about="http://example.org/p3pv1" rev="p3pv1"
href="0077.xml">p3pv1</span>
<span about="http://example.org/prev" rev="prev"
href="0077.xml">prev</span>
<span about="http://example.org/role" rev="role"
href="0077.xml">role</span>
<span about="http://example.org/section" rev="section"
href="0077.xml">section</span>
<span about="http://example.org/subsection" rev="subsection"
href="0077.xml">subsection</span>
<span about="http://example.org/start" rev="start"
href="0077.xml">start</span>
<span about="http://example.org/stylesheet" rev="stylesheet"
href="0077.xml">stylesheet</span>
<span about="http://example.org/up" rev="up"
href="0077.xml">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">
<img rel="xhv:next" />
</div>
<div rel="xhv:next">
<div rel="xhv:next">
<img 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.xml">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>
<div 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>
</div>
</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 does not override @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>
</root>

Expected Result

@prefix : <http://xmlns.com/foaf/0.1/> .
@prefix cal: <http://www.w3.org/2002/12/cal/icaltzd#> .
@prefix cc: <http://creativecommons.org/ns#> .
@prefix ctag: <http://commontag.org/ns#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix earl: <http://www.w3.org/ns/earl#> .
@prefix ex: <http://www.example.org/> .
@prefix gr: <http://purl.org/goodrelations/v1#> .
@prefix grddl: <http://www.w3.org/2003/g/data-view#> .
@prefix ma: <http://www.w3.org/ns/ma-ont#> .
@prefix og: <http://ogp.me/ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix rdfatest: <http://rdfa.info/vocabs/rdfa-test#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rev: <http://purl.org/stuff/rev#> .
@prefix rif: <http://www.w3.org/2007/rif#> .
@prefix schema: <http://schema.org/> .
@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix skosxl: <http://www.w3.org/2008/05/skos-xl#> .
@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
@prefix void: <http://rdfs.org/ns/void#> .
@prefix wdr: <http://www.w3.org/2007/05/powder#> .
@prefix wdrs: <http://www.w3.org/2007/05/powder-s#> .
@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xmlzzz: <http://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.net/> rdf:value "value",
"value one",
"value two" .

xmlzzz: dct:title "Test Case 0121",
"Example Website";
rdf:value "value" ;
dct:contributor "Shane McCarron" .

xmlzzz:example.png a :Image;
xhv:license <http://creativecommons.org/licenses/by-nc-sa/2.0/> .

xmlzzz:foo xmlzzz:bar 10;
dct:creator "Mark Birbeck" .

xmlzzz:jd vcard:fn "John Doe" .

<http://internet-apps.blogspot.com/> dct:creator "Mark Birbeck" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0067.xml> dct:title "Test 0067" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0077.xml> xhv:license xmlzzz:license;
xhv:role xmlzzz:role .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0295.xml> a :Document;
dct:title "E = mc2: The Most Urgent Problem of Our Time"^^xmlzzz:XMLLiteral,
"Test 0109";
cc:license <http://creativecommons.org/licenses/by-nc-nd/2.5/>,
<http://creativecommons.org/licenses/by-nd/3.0/>;
dct:creator "Albert Einstein", [], [ :name "Ben Adida"],
"Mark Birbeck",
<http://www-sop.inria.fr/acacia/fabien/>,
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0295.xml#me>,
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/jane>,
"Fabien Gandon",
<http://www.example.org/#manu>,
<http://www.example.org/#fabien>,
"Ben";
dct:publisher <http://www-sop.inria.fr/acacia/fabien/>,
"Fabien Gandon",
<http://www.example.org/#manu>,
<http://www.example.org/#fabien>;
rdf:inlist <http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/res>;
rdf:value ("Foo"), ("Foo" "Bar"),
(), (<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/foo> <http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/bar>), ("Foo" <http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/foo>),
"Baz", ("Foo"), (<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/foo>), ("Foo"), ("Foo" "Bar");
xhv:alternate xmlzzz:alternate;
xhv:appendix xmlzzz:appendix;
xhv:bookmark xmlzzz:bookmark;
xhv:chapter xmlzzz:chapter;
xhv:cite xmlzzz:cite;
xhv:contents xmlzzz:contents;
xhv:copyright xmlzzz:copyright;
xhv:first xmlzzz:first;
xhv:glossary xmlzzz:glossary;
xhv:help xmlzzz:help;
xhv:icon xmlzzz:icon;
xhv:index xmlzzz:index;
xhv:last xmlzzz:last;
xhv:license xmlzzz:license,
<http://creativecommons.org/licenses/by-nc-sa/2.0/>,
<http://creativecommons.org/licenses/by-nd/3.0/>;
xhv:meta xmlzzz:meta;
xhv:next <http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0070.xml>,
[ xhv:next [] ],
[],
xmlzzz:next;
xhv:p3pv1 xmlzzz:p3pv1;
xhv:prev xmlzzz:prev,
<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0069.xml>;
xhv:role xmlzzz:role;
xhv:section xmlzzz:section;
xhv:start xmlzzz:start;
xhv:stylesheet xmlzzz:stylesheet;
xhv:subsection xmlzzz:subsection;
xhv:up xmlzzz:up;
rdfa:usesVocabulary :,
<http://example.org/wrong/foaf/uri/>,
<http://www.example.org/vocab#>;
:img <http://sw-app.org/img/mic_2007_01.jpg>;
:maker <http://www.example.org/#me>, [
a :Document;
:name "John Doe"
];
:topic "John Doe" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0295.xml#event1> a cal:Vevent;
cal:dtend "2006-10-23"^^xsd:date;
cal:dtstart "2006-10-21"^^xsd:date;
cal:location "Iona, UK";
cal:summary "Weekend off in Iona";
cal:url <http://freetime.example.org/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0295.xml#interfenestration> xmlzzz:size [
xmlzzz:unit "character";
rdf:value "17"
] .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0295.xml#mark> a :Person;
:firstName "Mark";
:name "<span property=\"foaf:firstName\" 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:ex=\"http://example.org/\" xmlns:example=\"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:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:rdfatest=\"http://rdfa.info/vocabs/rdfa-test#\" 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#\">Mark</span> <span property=\"foaf:surname\" 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:ex=\"http://example.org/\" xmlns:example=\"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:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:rdfatest=\"http://rdfa.info/vocabs/rdfa-test#\" 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#\">Birbeck</span>"^^rdf:XMLLiteral;
:surname "Birbeck" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0295.xml#this> a dct:Agent;
:name "A particular agent" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0295.xml#wtw> dct:identifier <urn:ISBN:0752820907> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/faq> dct:title "Example FAQ" .

<http://www.cwi.nl/~steven/> xmlzzz: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""" .

<http://www.example.org> xmlzzz:plainlit "This is a plain literal";
xmlzzz:xmllit "This is an XMLLiteral"^^rdf:XMLLiteral,
"""This is
an XMLLiteral"""^^rdf:XMLLiteral;
ex:column:test "Test" .

ex: dct:title "E = mc2: The Most Urgent Problem of Our Time" .

<http://www.example.org/#article> a sioc:Post,
:Document;
dct:title "My article" .

<http://www.example.org/#ben> a :Person;
:knows [ :name [ a :Person], [ a :Person]],
<http://www.example.org/#ivan>,
<http://www.example.org/#mark> .

<http://www.example.org/#matsumoto-kimiko> a :Person;
:name "松本 后子" .

ex:software <http://www.example.org/vocab#license> <http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231>;
xhv:license <http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231> .

xhv: dct:title "The XHTML Vocabulary Document" .

xsd:maxExclusive a owl:DatatypeProperty .

<http://www.w3.org/Person/Ivan#me> owl:sameAs <http://www.ivan-herman.net/foaf#me> .

xmlzzz:node xmlzzz:property """not an XML Literal,
whitespace preserved
""",
"""ελληνικό
άσπρο διάστημα
"""@el .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0295.xml#a> dct:title "" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0295.xml#me> xhv:name "Ivan Herman";
:name "Gregg Kellogg",
"Ben Adida",
"Ivan Herman" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/photo1.jpg> dct:title "Portrait of Mark";
dct:creator "Mark Birbeck",
<http://www.blogger.com/profile/1109404> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/res> rdf:value ("Bar"), ("Bar") .

<http://sw-app.org/img/mic_2006_03.jpg> xhv:alternate <http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0295.xml>;
:depicts <http://sw-app.org/mic.xhtml#i> .

<http://sw-app.org/mic.xhtml#photo> :depicts <http://sw-app.org/mic.xhtml#i> .

<http://www.blogger.com/profile/1109404> :img <http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/photo1.jpg> .

<http://www.example.org/#ivan> :name "Ivan Herman" .

<http://www.example.org/#mark> :name "Mark Birbeck" .

<http://www.ivan-herman.net/Images/me2003-small.png> a :Image .

<http://www.ivan-herman.net/foaf#me> a :Person;
:depiction <http://www.ivan-herman.net/Images/me2003-small.png>;
:name "Iván" .

<mailto:manu.sporny@digitalbazaar.com> :knows <mailto:michael.hausenblas@joanneum.at> .

<http://danbri.org/foaf.rdf#danbri> a :Person;
:knows <http://www.example.org/#somebody>;
:name "Dan Brickley" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0295.xml#b> dct:title "".

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0295.xml>
dct:title "rdfagraph";
ctag: "CTAG";
cc: "CC";
cc:attributionURL <http://rdfa.info/>;
xmlzzz:entity1 ">";
xmlzzz:entity2 "Ben & Co.";
xmlzzz:entity3 "@";
xmlzzz:entity4 "@";
xmlzzz:test "Test";
og: "OG";
dct: "DC",
"DCTERMS";
dct:contributor "Mark Birbeck";
dct:language "Ruby";
gr: "GR";
rev: "REV";
rdfatest:cornerCase1 <http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/>;
rdfatest:cornerCase2 <http://example.org/>;
rdfatest:cornerCase3 <http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/...>;
rdfatest:cornerCase4 <http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0295.xml?foo=bar../baz>;
rdfatest:cornerCase5 <http://rdfa.info/test-suite/test-cases/.../.htaccess>;
void: "VOID";
sioc: "SIOC";
schema: "Schema";
rdf: "RDF";
rdf:value "2012-03"^^xsd:gYearMonth,
"not this",
"2012"^^xsd:gYear,
"P2011Y06M28DT00H00M00S"^^xsd:duration,
"00:00:00Z"^^xsd:time,
"2012-03-18T00:00:00Z"^^xsd:dateTime,
" 2012-03-18Z"^^xsd:dateTime,
"2012-03-18T00:00:00-08:00"^^xsd:dateTime,
"2012-03-18T00:00:00Z"^^xsd:date,
" 2012-03-18Z",
"2012-03-18Z"^^xsd:date,
"D-Day"@en,
"I came, I saw, I conquered"@lat,
"";
xhv: "XHV";
xhv:index <http://rdfa.info/test-suite/#>;
xhv:license xmlzzz:license,
<http://creativecommons.org/licenses/by-nc-sa/2.0/>,
"License",
"license";
xhv:next <http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0115.xml>;
xhv:role "Role",
xmlzzz:role;
xhv:up <http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/>;
rdfs: "RDFS";
xsd: "XSD";
owl: "OWL";
cal: "ICAL";
grddl: "GRDDL";
skos: "SKOS";
vcard: "V",
"VCARD";
wdr: "WDR";
wdrs: "WDRS";
wdrs:describedby xmlzzz:describedby,
"DescribedBy";
rif: "RIF";
skosxl: "SKOS-XL";
xml: "XML";
earl:testcase [];
ma: "MA";
rdfa: "RDFa";
: "FOAF";
:img <http://sw-app.org/img/mic_2007_01.jpg>;
:maker <http://www.example.org/#me>, [
a :Person;
:name "John Doe"
] .

<http://www.example.org/#fabien> :name "Fabien Gandon" .

<http://www.example.org/#manu> :name "Manu Sporny" .

<http://www.example.org/#me> a :Person,
:Document;
:knows [ :name "John Doe"];
:name "John Doe" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/foo> rdf:value ("Foo"), ("Bar") .

<http://sw-app.org/img/mic_2007_01.jpg> :depicts <http://sw-app.org/mic.xhtml#i> .

<http://sw-app.org/mic.xhtml#i> :img <http://sw-app.org/mic.xhtml#photo>,
<http://sw-app.org/img/mic_2007_01.jpg>,
<http://sw-app.org/img/mic_2006_03.jpg> .

<http://www.example.org/#somebody> :knows <http://www.w3.org/People/Berners-Lee/card#i>, [
a :Person;
:name "Dan Brickley"
], [
:knows <http://www.example.org/#somebody>;
:mailbox <mailto:ivan@w3.org>;
:name "Ivan Herman"
],
<http://www.ivan-herman.org/Ivan_Herman>, [
:mailbox <mailto:ivan@w3.org>;
:name "Ivan Herman", [ a :Person]
], [ :knows <http://www.w3.org/People/Berners-Lee/card#i>,
<http://www.ivan-herman.org/Ivan_Herman>,
<http://danbri.org/foaf.rdf#danbri>],
<http://danbri.org/foaf.rdf#danbri>, [
:knows <http://www.example.org/#somebody>;
:mailbox <mailto:ivan@w3.org>;
:name "Ivan Herman", [ a :Person]
], [
:mailbox <mailto:ivan@w3.org>;
:name "Ivan Herman"
] .

[
:knows [ :name "Ralph Swick"];
:name "Manu Sporny"
] .

[
a :Person;
:name "John Doe"
] .

[
:knows <http://www.example.org/#somebody>;
:mailbox <mailto:ivan@w3.org>;
:name "Ivan Herman", [ a :Person]
] .

[
xhv:definition "a bi-pedal primate";
xhv:foo "Milky Way";
xhv:note "confused animal"
] .

_:gregg :knows [
:knows [
:knows <http://digitalbazaar.com/people/manu>;
:mbox <mailto:michael.hausenblas@joanneum.at>
],
_:gregg;
:mbox <mailto:manu.sporny@digitalbazaar.com>
];
:mbox <mailto:gregg@kellogg-assoc.com>;
:name "Gregg Kellogg" .
Test Test 0296: @property does set parent object without @typeof

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.com/gregg/#me> a foaf:Person;
foaf:homepage <http://example.com/gregg/>;
foaf:knows <http://example.com/niklas/#me>,
<http://example.com/ivan/#me>,
<http://example.com/manu/#me>,
<http://example.com/stéphane/#me>;
foaf:name "Gregg" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0296.xml> rdfa:usesVocabulary foaf: .

<http://example.com/ivan/#me> a foaf:Person;
foaf:homepage <http://example.com/ivan/>;
foaf:name "Ivan" .

<http://example.com/manu/#me> a foaf:Person;
foaf:homepage <http://example.com/manu/>;
foaf:name "Manu" .

<http://example.com/niklas/#me> a foaf:Person;
foaf:homepage <http://example.com/niklas/>;
foaf:name "Niklas" .

<http://example.com/stéphane/#me> a foaf:Person;
foaf:homepage <http://example.com/stéphane/>;
foaf:name "Stéphane" .
Test Test 0297: @about=[] with @typeof does not create a new subject

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0297: Testing @typeof and @about=[]</title>
</head>
<body>
<div about="[]" typeof="foaf:Person" property="foaf:name">Alex Milowski</div>
</body>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0297.xml> foaf:name "Alex Milowski" .

[ a foaf:Person] .
Test Test 0298: @about=[] with @typeof does not create a new object

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
a foaf:Person;
foaf:name "Alex Milowski"
] .
Test Test 0299: @resource=[] with @href or @src uses @href or @src (@rel)

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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>
</root>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://www.example.org/> xhv:license <http://www.example.org/license.xhtml> .
Test Test 0300: @resource=[] with @href or @src uses @href or @src (@property)

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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>
</root>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://www.example.org/> xhv:license <http://www.example.org/license.xhtml> .
Test Test 0301: @property with @typeof creates a typed_resource for chaining

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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>
</root>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0301.xml> <http://www.milowski.com/V/bit> [
a <http://www.milowski.com/V/thing>;
<http://www.milowski.com/V/name> "Fizzbit"
];
rdfa:usesVocabulary <http://www.milowski.com/V/> .
Test Test 0302: @typeof with different content types

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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>
</root>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix schema: <http://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://openspring.net/scor#me> a dcterms:Agent,
foaf:Person,
schema:Person;
schema:homepage <http://openspring.net/>;
schema:name "Stéphane Corlosquet" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0302.xml> rdfa:usesVocabulary schema: .
Test Test 0311: Ensure no triples are generated when @property is empty

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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>
</root>

Expected Result


Test Test 0318: Setting @vocab to empty strings removes default vocabulary

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<title>Test 0318</title>
</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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0318.xml> rdfa:usesVocabulary foaf: .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0318.xml#me> foaf:name "Ivan Herman" .
Test Test 0319: Relative @profile

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<head>
<base href="http://example.com/"/>
<title>Test 0319</title>
</head>
<body prefix="pr: relative/iri#" xmlns:xpr="relative/uri#">
<p property="pr:prop xpr:prop">value</p>
</body>
</root>

Expected Result

@prefix pr: <http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/relative/iri#> .
@prefix xpr: <http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/relative/uri#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0319.xml> pr:prop "value";
xpr:prop "value" .
Test Test 0320: @property binds to @href

Input

<?xml version="1.0" encoding="UTF-8"?>
<root>
<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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.com/gregg/#me> a foaf:Person;
foaf:homepage <http://example.com/gregg/>;
foaf:name "Gregg" .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0320.xml> rdfa:usesVocabulary foaf: .
Test Test 0329: Recursive triple generation

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="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>
</root>

Expected Result

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/foaf#me> foaf:familyName "Doe";
foaf:givenName "John";
foaf:name """
John
Doe
""" .
Test Test 0330: @datatype overrides inherited @lang

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="dcterms: http://purl.org/dc/terms/ xsd: http://www.w3.org/2001/XMLSchema#">
<head>
<title>Test 0330</title>
</head>
<body lang="en" xml:lang="en">
<div property="dc:date" datatype="xsd:date">2010-11-12</div>
</body>
</root>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0330.xml> dcterms:date "2010-11-12"^^xsd:date .
Test Test 0331: @datatype overrides inherited @lang, with @content

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="dcterms: http://purl.org/dc/terms/">
<head>
<title>Test 0331</title>
</head>
<body lang="en" xml:lang="en">
<div property="dcterms:language" datatype="dcterms:RFC5646" content="af">Afrikaans</div>
</body>
</root>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0331.xml> dcterms:language "af"^^dcterms:RFC5646 .
Test Test 0332: Empty @datatype doesn't override inherited @lang, with @content

Input

<?xml version="1.0" encoding="UTF-8"?>
<root prefix="dcterms: http://purl.org/dc/terms/">
<head>
<title>Test 0332</title>
</head>
<body lang="en" xml:lang="en">
<div property="dcterms:language" datatype="" content="af">Afrikaans</div>
</body>
</root>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1/xml/0332.xml> dcterms:language "af"@en .
Test Test 0235: rdfagraph='processor' does not generate standard triples

Input

<!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>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "final count: 137";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "parse_whole_doc: traversal complete'";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "[Step 13] new ec";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description """statement: <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html> <http://purl.org/dc/terms/title> "rdfagraph" .
""";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "[Step 11] plain literal (inner text)";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "[Step 13] skip: reused ec";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "[Step 13] new ec";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "[Step 13] skip: reused ec";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "[Step 13] new ec";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "[Step 13] new ec";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "load_initial_contexts: load <http://www.w3.org/2011/rdfa-context/html-rdfa-1.1>";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "load_initial_contexts: load <http://www.w3.org/2011/rdfa-context/rdfa-1.1>";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "version = rdfa1.1, host_language = html5, library = nokogiri, rdfagraph = [:processor], expand = ";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0235.html>
] .
Test Test 0238: rdfagraph='processor' with missing Term definition generates rdfa:Warning

Input

<!DOCTYPE html>
<html>
<head>
<title>Test 0238</title>
</head>
<body property="undefined_term">
Undefined Term
</body>
</html>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "[Step 13] new ec";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "load_initial_contexts: load <http://www.w3.org/2011/rdfa-context/html-rdfa-1.1>";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "[Step 13] new ec";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "final count: 108";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "parse_whole_doc: traversal complete'";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "[Step 13] new ec";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "[Step 11] plain literal (inner text)";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:UnresolvedTerm;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "Term undefined_term is not defined";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "[Step 13] skip: reused ec";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "load_initial_contexts: load <http://www.w3.org/2011/rdfa-context/rdfa-1.1>";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "version = rdfa1.1, host_language = html5, library = nokogiri, rdfagraph = [:processor], expand = ";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0238.html>
] .
Test Test 0239: rdfagraph='processor' with undefined prefix generates rdfa:Warning

Input

<!DOCTYPE html>
<html>
<head>
<title>Test 0239</title>
</head>
<body property="rdf:value"
resource="[undefined:curie]">
Undefined Prefix
</body>
</html>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "final count: 128";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "parse_whole_doc: traversal complete'";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "[Step 13] new ec";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Error;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description """statement <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> .
is invalid""";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:UnresolvedCURIE;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "[undefined:curie] not matched as a safeCURIE";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "[Step 11] resource (resource|href|src)";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "[Step 13] skip: reused ec";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "[Step 13] new ec";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "[Step 13] new ec";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "load_initial_contexts: load <http://www.w3.org/2011/rdfa-context/html-rdfa-1.1>";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "load_initial_contexts: load <http://www.w3.org/2011/rdfa-context/rdfa-1.1>";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .

[
a rdfa:Info;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "version = rdfa1.1, host_language = html5, library = nokogiri, rdfagraph = [:processor], expand = ";
rdfa:context <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0239.html>
] .
Test Test 0313: rdfagraph='processor' redefining an initial context prefix generates rdfa:PrefixRedefinition warning

Input

<!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>

Expected Result

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "final count: 157";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "parse_whole_doc: traversal complete'";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "[Step 13] new ec";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description """statement: <http://www.example.com> <http://www.example.org/erronouslyRedefinedProperty> "Foo" .
""";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "[Step 11] plain literal (inner text)";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "[Step 13] new ec";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "extract_mappings: prefix rdfa => <http://www.example.org/>";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#PrefixRedefinition>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "Redefining prefix rdfa: from <http://www.w3.org/ns/rdfa#> to <http://www.example.org/>";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "[Step 13] skip: reused ec";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "[Step 13] new ec";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "[Step 13] new ec";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "load_initial_contexts: load <http://www.w3.org/2011/rdfa-context/html-rdfa-1.1>";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "load_initial_contexts: load <http://www.w3.org/2011/rdfa-context/rdfa-1.1>";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .

[
a <http://www.w3.org/ns/rdfa#Info>;
dcterms:date "2017-06-22"^^xsd:date;
dcterms:description "version = rdfa1.1, host_language = html5, library = nokogiri, rdfagraph = [:processor], expand = ";
<http://www.w3.org/ns/rdfa#context> <http://rdfa.info/test-suite/test-cases/rdfa1.1-proc/html5/0313.html>
] .
Test Test 0305: role attribute with explicit id and term

Input

<!DOCTYPE html>
<html>
<head>
<title>Test 0305</title>
</head>
<body>
<div id="heading1" role="heading">
<p>Some contents that are a header</p>
</div>
</body>
</html>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1-role/html5/0305.html#heading1> xhv:role xhv:heading .
Test Test 0306: role attribute with explicit base id and term

Input

<!DOCTYPE html>
<html>
<head>
<title>Test 0306</title>
<base href="http://www.example.com/tests/0306"/>
</head>
<body>
<div id="heading1" role="heading">
<p>Some contents that are a header</p>
</div>
</body>
</html>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

<http://www.example.com/tests/0306#heading1> xhv:role xhv:heading .
Test Test 0307: role attribute with term and no id

Input

<!DOCTYPE html>
<html>
<head>
<title>Test 0307</title>
</head>
<body>
<div role="heading">
<p>Some contents that are a header</p>
</div>
</body>
</html>

Expected Result

@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .

[ xhv:role xhv:heading] .
Test Test 0240: vocab_expansion='true' expands sub-property

Input

<!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>

Expected Result

@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix rdfatest: <http://rdfa.info/vocabs/rdfa-test#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1-vocab/html5/0240.html> rdfatest:baseProp rdfatest:subProp;
rdfatest:eqProp rdfatest:subProp;
rdfatest:subProp rdfatest:subProp;
rdfa:usesVocabulary rdfatest: .
Test Test 0241: vocab_expansion='true' expands equivalent-property

Input

<!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>

Expected Result

@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix rdfatest: <http://rdfa.info/vocabs/rdfa-test#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1-vocab/html5/0241.html> rdfatest:baseProp rdfatest:eqProp;
rdfatest:eqProp rdfatest:eqProp;
rdfa:usesVocabulary rdfatest: .
Test Test 0242: vocab_expansion='true' expands referenced equivalent-property

Input

<!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>

Expected Result

@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix rdfatest: <http://rdfa.info/vocabs/rdfa-test#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1-vocab/html5/0242.html> rdfatest:baseProp rdfatest:eqProp;
rdfatest:eqProp rdfatest:eqProp;
rdfa:usesVocabulary rdfatest: .
Test Test 0243: vocab_expansion='true' expands sub-class

Input

<!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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix rdfatest: <http://rdfa.info/vocabs/rdfa-test#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1-vocab/html5/0243.html> rdfa:usesVocabulary rdfatest: .

[ a rdfatest:BaseClass,
rdfatest:SubClass,
rdfatest:EqClass] .
Test Test 0244: vocab_expansion='true' expands equivalent-class

Input

<!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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix rdfatest: <http://rdfa.info/vocabs/rdfa-test#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1-vocab/html5/0244.html> rdfa:usesVocabulary rdfatest: .

[ a rdfatest:BaseClass,
rdfatest:EqClass] .
Test Test 0245: vocab_expansion='true' expands referenced equivalent-class

Input

<!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>

Expected Result

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix rdfatest: <http://rdfa.info/vocabs/rdfa-test#> .

<http://rdfa.info/test-suite/test-cases/rdfa1.1-vocab/html5/0245.html> rdfa:usesVocabulary rdfatest: .

[ a rdfatest:BaseClass,
rdfatest:EqClass] .

D. Report Generation Software

This report generated by earl-report version 0.4.7 an Unlicensed Ruby application. More information is available at https://github.com/gkellogg/earl-report .

This software is provided by Gregg Kellogg in hopes that it might make the lives of conformance testers easier.