Quantcast

Telecon Agenda - 28th January 2010, 1600 UTC

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Telecon Agenda - 28th January 2010, 1600 UTC

Manu Sporny
Hi all,

Telecon time - let's continue our discussion on RDFa prefix pre-loading
and RDFa Vocabularies.

==========
Thursday, January 28th 2010
1500 UTC, W3C Zakim bridge
tel:+1.617.761.6200 conference code RDFA
irc://irc.w3.org:6665/#rdfa
Duration: 60 minutes
Scribe: Mark
==========

Agenda

1) Action Items
   http://www.w3.org/2010/01/21-rdfa-minutes.html#ActionSummary

2) Community updates
   * Discussion with Benjamin Nowack about

http://bnode.org/blog/2010/01/26/microdata-semantic-markup-for-both-rdfers-and-non-rdfers
   * Mapping Microdata terms to RDFa processing rules

3) RDFa prefix pre-loading
   *
http://lists.w3.org/Archives/Public/public-rdf-in-xhtml-tf/2010Jan/0059.html

4) RDFa Vocabularies
   * http://rdfa.digitalbazaar.com/specs/rdfa-vocab-20100111.html

-- manu

--
Manu Sporny (skype: msporny, twitter: manusporny)
President/CEO - Digital Bazaar, Inc.
blog: Monarch - Next Generation REST Web Services
http://blog.digitalbazaar.com/2009/12/14/monarch/

Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Telecon Agenda - 28th January 2010, 1600 UTC

Toby Inkster-4
>    * Mapping Microdata terms to RDFa processing rules

Copied and pasted from my scratchpad (as I was/am looking at producing an
HTML+Microdata to XHTML+RDFa convertion tool)...

"""

<a itemprop="foo" href="bar">
to <a rel="foo" href="bar">

<img itemprop="foo" src="bar">
to <img rel="foo" src="bar" about="subject" resource="bar">

<span itemprop="foo">Bar</span>
to <span property="foo" datatype="">Bar</span>

<div itemscope="" itemid="foo" itemtype="bar">
to <div about="foo" typeof="bar">

<div itemscope="" itemtype="bar">
to <div typeof="bar">

<div itemscope="" itemid="foo">
to <div about="foo">

<div itemscope="">
to <div about="_:auto01">

<div itemprop="foo" itemscope="">
to <div rel="foo" resource="_:auto02">

<div itemprop="foo" itemscope="" itemtype="bar">
to <div rel="foo" resource="_:auto02"><span rel="rdf:type"
resource="bar"></span>

<div itemprop="foo" itemscope="" itemid="baz">
to <div rel="foo" resource="baz">

<div itemprop="foo" itemscope="" itemtype="bar" itemid="baz">
to <div rel="foo" resource="baz"><span rel="rdf:type" resource="bar"></span>

@itemref will require thought.

"""

-Toby



Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Telecon Agenda - 28th January 2010, 1600 UTC

Toby Inkster-4
On Wed, 2010-01-27 at 17:13 +0000, Toby Inkster wrote:
> Copied and pasted from my scratchpad (as I was/am looking at producing
> an HTML+Microdata to XHTML+RDFa convertion tool)...

This code manages to do a pretty complete mapping from Microdata to RDFa
without changing the page layout (it needs to add additional empty
<span> elements occasionally):

http://goddamn.co.uk/viewvc/perlmods/HTML-HTML5-Microdata-ToRDFa/lib/HTML/HTML5/Microdata/ToRDFa.pm

Limitations:

- If the input page uses a mixture of Microdata and RDFa, the output
will probably be broken.

- It only looks at mapping Microdata's item* attributes. The Microdata
spec also (or at least used to also - not looked recently) provides
mappings for some other HTML attributes and elements to RDF (e.g. <meta
name>; <blockquote cite>; <title>; etc), but this code ignores all that.

- Where itemprop, itemscope and itemtype are all on the same element, it
needs to add an extra <span> element to the output to avoid losing the
rdf:type.

- RDFa doesn't have a construct similar to itemref. When the converter
finds an itemref it does some special magic to figure out what triples
would have been generated by following the itemref attribute's
references; and adds them in as extra <span> elements too.

It is probably not rock solid, but seems to get the majority of cases
right. I'm sure there are ways to trick it though.

I've not seen any microdata "in the wild" that it fails on. Though, to
be fair, I've not seen any microdata in the wild that it succeeds on
either. ;-)

Right now it's completely lacking in documentation, but once I've typed
some docs up, I'll upload it to CPAN.

--
Toby A Inkster
<mailto:[hidden email]>
<http://tobyinkster.co.uk>


Loading...