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

markup in itemprop values, was: Re: microdata feedback

From: Benjamin Nowack <bnowack@semsol.com>
Date: Sat, 26 Sep 2009 19:46:32 +0200
To: Ian Hickson <ian@hixie.ch>
Cc: public-rdf-in-xhtml-tf@w3.org
Message-ID: <PM-GA.20090926194632.BAD50.1.1D@semsol.com>

Hi,

Another possibility that might work for this use case is to simply 
follow the semantics from the Atom serialization instructions 
(section 5.5.5 point 15.7.): If I want markup to be preserved in 
my RDF, I simply put the @itemprop on an "article" tag to indicate
that it could be syndicated and displayed somewhere else. My RDF
extractor has to remove possible header/footer stuff, but that's 
ok. I'd consider my requirement/use case sufficiently addressed 
if the microdata spec allowed this sort of interpretation from 
the RDF side.

I'd also be happy with the additional attribute or the decorator 
idea. The additional @item approach could be problematic as it 
changes the context of nested itemprops, unless the extractor 
implements conditional item detection; and then we'd be back in 
RDFa-style complexity land where you can't easily detect a prop's
parent resource...

Cheers,
Benji

--
Benjamin Nowack
http://bnode.org/
http://semsol.com/


On 16.08.2009 03:20:26, Ian Hickson wrote:
>On Tue, 11 Aug 2009, Benjamin Nowack wrote:
>> 
>> The only thing I'm still missing is the ability to have plain literals 
>> and also literals with markup. I don't need full datatyping, I just want 
>> to efficiently create backups from my published posts, or possibly from 
>> other sites, without losing links and formatting.
>
>Interesting. That's the first use case that's really needed this.
>
>We can probably easily add this in a future version using a new attribute 
>that says whether the itemprop's value is the text, as now, or the 
>child nodes. For example:
>
>   <div itemprop="com.example.content" itempropvalueisxml>...</div>
>
>Alternatively, we could have a decorator on the property name:
>
>   <div itemprop="com.example.content*">...</div>
>
>...or hardcode a particular item value:
>
>   <div itemprop="com.example.content" item="tree">...</div>
>
>-- 
>Ian Hickson               U+1047E                )\._.,--....,'``.    fL
>http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
>Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
>
Received on Saturday, 26 September 2009 17:47:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 26 September 2009 17:47:10 GMT