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

Re: Display values for RDFa object URLs

From: Niklas Lindström <lindstream@gmail.com>
Date: Tue, 7 Aug 2007 12:02:37 +0200
Message-ID: <cf8107640708070302m24f1b14er9d279216f668ee6e@mail.gmail.com>
To: "Manu Sporny" <msporny@digitalbazaar.com>
Cc: "RDFa mailing list" <public-rdf-in-xhtml-tf@w3.org>

Hi Manu,

I think the last example should result in (given the new
striping/chaining rules):

  <#song> rdf:type hmedia:Audio .
  <#song_sample> rdf:type hmedia:Sample .
  <#song_sample> hmedia:uri <http://www.bitmunk.com/sample/6011101> .
  <http://www.bitmunk.com/sample/6011101> dc:title "Listen to a Sample" .

Perhaps I'd be enough with:

    <div instanceof="hmedia:Audio" about="#song">
        <a rel="hmedia:uri"
           href="http://www.bitmunk.com/sample/6011101"
           instanceof="hmedia:Sample">
            <span property="dc:title">Listen to a Sample</span>
        </a>
    </div>

? That should yield (in Notation 3):

    <#song> a hmedia:Audio;
        hmedia:uri <http://www.bitmunk.com/sample/6011101> .
    <http://www.bitmunk.com/sample/6011101> a hmedia:Sample;
        dc:title "Listen to a Sample" .

Best regards,
Niklas


On 8/7/07, Manu Sporny <msporny@digitalbazaar.com> wrote:
>
> While working on the hAudio RDFa test cases using Operator, we ran into
> a problem that we are currently having in the Microformats community.
> That is - when using rel, how do you denote a display value to the
> browser? A full description of the problem can be found here:
>
> http://microformats.org/wiki/audio-info-issues#Problem:_Display_properties_of_rel-patterns
>
> and here:
>
> http://microformats.org/wiki/audio-info-issues#Problem:_Peeking_into_child_elements_to_display_rel-patterns
>
> For example, for the following XHTML:
>
> <div instanceof="hmedia:Audio" about="#song">
>    <a rel="hmedia:sample"
>       href="http://www.bitmunk.com/sample/6011101">
>       Listen to a Sample
>    </a>
> </div>
>
> generates the following triple (I think, please correct me):
>
> #song rdf:type hmedia:Audio
>    hmedia:sample <http://www.bitmunk.com/sample/6011101>
>
> The browser has no choice but to display the URL, as the text value is
> not a part of the gleaned information. If we wanted to associate a text
> value with the URL, we'd have to do something like so:
>
> <div instanceof="hmedia:Audio" about="#song">
>    <span instanceof="hmedia:Sample" about="#song_sample"
>    <a rel="hmedia:uri" about="#song_sample"
>       href="http://www.bitmunk.com/sample/6011101">
>       <span property="dc:title">Listen to a Sample</span>
>    </a>
> </div>
>
> generates the following triples (again, please correct if incorrect):
>
> #song rdf:type hmedia:Audio
>    #song_sample rdf:type hmedia:Sample
>    #song_sample hmedia:uri http://www.bitmunk.com/sample/6011101
>    #song_sample dc_title Listen to a Sample
>
> The example above would get what we want accomplished, but at the cost
> of making the XHTML very complicated and requiring us to create a class
> for every "rel" type that uses a URL as it's object.
>
> Any suggestions on making the XHTML cleaner? Or are we stuck with the
> latter method of getting display values up to Operator?
>
> -- manu
>
>
>
Received on Tuesday, 7 August 2007 10:09:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:15:09 GMT