Re: HTML+RDFa 1.1 - Section 7, Step 5/6 Modification Clarification

On May 14, 2013, at 2:26 PM, Alex Milowski <alex@milowski.com> wrote:

> The HTML+RDFa 1.1 spec says:
> 
> "In Section 7.5, processing step 5, if no IRI is provided by a resource attribute (e.g., @about, @href, @resource, or @src), then first check to see if the element is the head or body element. If it is, then set new subject to parent object."
> 
> and
> 
> "In Section 7.5, processing step 6, if no IRI is provided by a resource attribute (e.g., @about, @href, @resource, or @src), then first check to see if the element is the head or body element. If it is, then set new subject to parent object."
> 
> but step 5 has two parts.  It is unclear how each part is modified:
> 
> 1. Do you all mean that the new subject is only set if the element is 'head' or 'body'?  
> 2. In 5.1 and 5.2, the final default for the new subject is the value of the parent object.
> 
> Also, for step 6, the default is already the parent object.
> 
> I'm really not understanding what you all are after here.

Just to clarify the intent, if you were to place @typeof on the <html> element, it would get an implied base of the document location; however, without these special rules, if you did the same on <body> or <head>, it could create a new BNode subject. This rule causes it to take the subject from the parent, which would either be the document location, or some other declared subject. This is a common source of problems, thus the special rule.

Gregg

> -- 
> --Alex Milowski
> "The excellence of grammar as a guide is proportional to the paucity of the
> inflexions, i.e. to the degree of analysis effected by the language
> considered."
> 
> Bertrand Russell in a footnote of Principles of Mathematics

Received on Tuesday, 14 May 2013 23:32:49 UTC