W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > February 2008

Re: Comments on http://www.w3.org/TR/2008/WD-rdfa-syntax-20080221

From: Johannes Koch <koch@w3development.de>
Date: Tue, 26 Feb 2008 21:34:57 +0100
Message-ID: <47C477F1.2090608@w3development.de>
To: Mark Birbeck <mark.birbeck@x-port.net>
Cc: public-rdf-in-xhtml-tf@w3.org

Hi Mark

Mark Birbeck schrieb:
>> Using an implicit object
>>  second example:
>>  <div about="http://dbpedia.org/resource/Baruch_Spinoza"
>>  rel="dbp:influenced">
>>    <div>
>>      <span property="foaf:name">Albert Einstein</span>
>>      <span property="dbp:dateOfBirth" datatype="xsd:date">1879-03-14</span>
>>    </div>
>>  </div>
>>  Because the inner div element has no instanceof attribute, according to
>>  section 5.5 step 4 [new subject] is set to the [evaluation context]'s
>>  [parent object], which is <http://dbpedia.org/resource/Baruch_Spinoza>,
>>  because the [current object resource] for the outer div was null.
>>  The incomplete triple
>>    <http://dbpedia.org/resource/Baruch_Spinoza>
>>      dbp:influenced ? .
>>  never gets completed. And because no bnode was created, the foaf:name
>>  and dbp:dateOfBirth properties apply to
>>  <http://dbpedia.org/resource/Baruch_Spinoza>.
> I don't think there is a problem here. The [parent object] should have
> been set at the previous level to a bnode, through the action of step
> 8. This should be passed to the empty <div>, and then passed again to
> each of the two spans due to [skip element] being set to 'true'. Once
> you get to the two spans, the [parent object] becomes the subject for
> the statements, so the bnode gets used then.

Yep, you're right. I forgot the bnode from step 8.

However, as the inner div has no @about, no @src, no @resource, no 
@href, is not in head or body, and has no @instanceof, in step 4

   * otherwise, if [parent object] is present, [new subject] is set to
     that and the [skip element] flag is set to 'true';

is applied. So [skip element] for this level is 'true'. The evaluation 
context for this inner div contains the incomplete triple 
(dbp:influenced). But it won't be completed because according to step 
12(11), "any [incomplete triple]s within the current context should be 
completed" only if "the [skip element] flag is 'false'".

The same happens with the span elements: no @about, no @src, no 
@resource, no @href, not in head or body, no @instanceof. So [skip 
element] is 'true'. The incomplete triple is passed from parent element. 
But as [skip element] is 'true', it won't be completed.

The result is only the two triples

   _:a foaf:name "Albert Einstein" .
   _:a dbp:dateOfBirth "1879-03-14"^^xsd:date .

The dbp:influenced triple is not completed.

But maybe I missed something again.
Johannes Koch
In te domine speravi; non confundar in aeternum.
                             (Te Deum, 4th cent.)
Received on Tuesday, 26 February 2008 20:35:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:01:55 UTC