- From: Mark Birbeck <mark.birbeck@webbackplane.com>
- Date: Mon, 27 Apr 2009 17:02:13 +0100
- To: publicayers@verizon.net
- Cc: public-rdf-in-xhtml-tf@w3.org
Hi Brian, First, be careful that your @about and @resource attributes should contain safe CURIEs: <div about="[pre:id1]" rel="pre:foo" resource="[pre:id2]"> Anyway, on the processing: Whilst processing your first RDFa line, you have this at step 5: If the [current element] does contain a @rel or @rev attribute, then the next step is to establish both a value for [new subject] and a value for [current object resource]: Towards the end of step 5, you can see that [current object resource] is set to @resource: Then the [current object resource] is set to the URI obtained from the first match from the following rules: * by using the URI from @resource, if present, obtained according to the section on CURIE and URI Processing; Then, at the end of processing this line, you get to step 11 which says that a new context is created for recursing the algorithm, and that in the new context: the [parent object] is set to value of [current object resource], if non-null, Which means that we now enter the next iteration with the value of @resource as the candidate subject value. Now, when processing your next line (the one with @property on), you have this at step 4: otherwise, if [parent object] is present, [new subject] is set to the value of [parent object]. Additionally, if @property is not present then the [skip element] flag is set to 'true'; So that's the case that applies if there is no @rel/@rev, no @about, no @src, no @href and no @resource, and causes a triple to be generated that uses @resource as its subject, and @property as its predicate. Regards, Mark On Mon, Apr 27, 2009 at 4:45 PM, <publicayers@verizon.net> wrote: > Should a child evaluation context get its parent-object value set to the > parent context's parent-object if the parent context does not have a > current-object-resource? This seems to be the only way I can make something > like the following work as I expected: > > <div about="pre:id1" rel="pre:foo" resource="pre:id2> > <div> > <span property="pre:bar">some text</span> > </div> > </div> > > but I can't find where in the RDFa in XHTML document that is indicated. The > inner //div gets its parent-object set to the outer @resource, but the > //span can't chain on the outer @resource unless the //span gets its > parent-object set to the parent-object of the //div (ie the @resource > value). > > Perhaps I'm missing something in the document, or should chaining not work > in this case? > > Brian > -- Mark Birbeck, webBackplane mark.birbeck@webBackplane.com http://webBackplane.com/mark-birbeck webBackplane is a trading name of Backplane Ltd. (company number 05972288, registered office: 2nd Floor, 69/85 Tabernacle Street, London, EC2A 4RR)
Received on Monday, 27 April 2009 16:02:57 UTC