Yet another instanceof test

Michael,

I attach yet another test that I believe addresses an issue not covered
by the others. We had a discussion at some point on the list, and got to
an agreement, that an 'instanceof' placed on the <html> element would
automatically generate a type for the whole document by virtue of the
fact that there is an implicit @about="" on the <html>.

I am not sure that is crystal clear from the syntax document, although
the initialization of the processing steps seems to refer to that.

So I have a test that does that.

I did not know what name you will give to the test, so the SPARQL file
may have to be adapted.

B.t.w. there is relationship of this feature with test #0050 which deals
with:

<p instanceof="b:c">...</p>

ie, what happens if the @instanceof is alone. _I know_ it is not the
same processing-wise if we say that there is an implicit @about="" on
<html> via some sort of a preprocessing step (hm, I used the 'p' word,
sorry about that:-) but for the user it surely looks the same. On the
other hand, the approved behaviour of #0050 is to create a blank node
and apply @rdf:type on that one, rather than on the inherited context.

Either we should make that extra @about on <html> much more explicit in
the text (maybe with a separate example) or maybe we have to come back
on the #0050 case. The former is obviously easier:-)

Thanks

Ivan
-- 

Ivan Herman, W3C Semantic Web Activity Lead
Home: http://www.w3.org/People/Ivan/
PGP Key: http://www.ivan-herman.net/pgpkey.html
FOAF: http://www.ivan-herman.net/foaf.rdf
ASK WHERE {
	<http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/top.xhtml> 
		<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://creativecommons.org/ns#Work> ;
		<http://creativecommons.org/ns#license> <http://creativecommons.org/licenses/by-nd/3.0/> .
}

Received on Sunday, 28 October 2007 11:49:58 UTC