Re: question re triples in xml literals

Benjamin Nowack wrote:
> 
> Hi,
> 
> I'm just reading the syntax doc and have a question regarding the
> "[recurse] = false" rule, once an xml object is found. A sample
> use case would be the description of an rss item à la hAtom, e.g.:
> 
> [[
> <div about="post.htm" instanceOf="rss:item" property="content:encoded">
>    <h2 property="rss:title">A post</h2>
>    <p property="rss:description" datatype="">
>       <a about="#foo" rel="foaf:weblog" href="http://foo.com/">Foo</a>
>       said that.
>    </p>
> </div>
> ]]
> 
> i.e. I'm trying to generate 
> 
> [[
> <post.htm>  content:encoded "<h2>....</p>"^^rdf:XMLLiteral ;
>             rss:description "Foo said that." .
> ]]
> 
> without repeating the post body. And I don't want to lose the
> triples from the rss:title/foaf:weblog info.
> 
> The syntax doc says 
> 
> [[
> "if an author indicates that some branch of the tree should be 
> treated as an XML literal, no further processing should take 
> place on that branch"
> ]]
> 
> which (to me) suggests that no "sub-triples" should be generated
> whenever an XMLLiteral is encountered. 

That interpretation is correct.


>                                          How would I have to
> change the code above to markup an XMLLiteral that contains
> structured RDFa information?
> 

Sigh... I do not see any way to do that.

The question is whether this is is a general enough use case to change
the spec at that point....

I must admit that it always felt 'unnatural' to me to parse/use the same
portion of the DOM tree for two different purposes (once generating the
XML Literal and once to interpret it as RDFa). I may be completely wrong...

Ivan

> 
> Cheers,
> Benji
> 
> --
> Benjamin Nowack
> http://bnode.org/
> 
> 

-- 

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

Received on Tuesday, 23 October 2007 09:27:13 UTC