[uf-dev] JSON representation of semantic objects

Kevin Marks kevinmarks at gmail.com
Fri Jan 4 14:39:34 PST 2008


Both those seriliazations look remarkably verbose. Why doesn't:
<div class="haudio">
 <span class="fn">Start Wearing Purple</span> by
 <span class="contributor">Gogol Bordello</span>
 found on
 <span class="album">Underdog World Strike</span>
</div>
just map to:
{"fn":"Start Wearing Purple", "contributor":"Gogol Bordello",
"album":"Underdog World Strike"}
instead of the multi-crufted:
{
 "_:haudio1" :
 {
 "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" :
 [
 { "value" : "http://xmlns.com/haudio/1.0/Album", "type" : "uri"}
 ],
 "http://purl.org/dc/elements/1.1/title" :
 [
 { "value" : "Start Wearing Purple", "type" : "literal", "lang" : "en" }
 ],
 "http://purl.org/dc/elements/1.1/contributor" :
 [
 { "value" : "Gogol Bordello", "type" : "literal", "lang" : "en" }
 ],
 "http://xmlns.com/hmedia/1.0/contains" :
 [
 { "value" : "_:haudio2", "type" : "bnode" }
 ]
 },
 "_:haudio2" :
 {
 "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" :
 [
 { "value" : "http://xmlns.com/haudio/1.0/Recording", "type" : "uri"}
 ],
 "http://purl.org/dc/elements/1.1/title" :
 [
 { "value" : "Start Wearing Purple", "type" : "literal", "lang" : "en" }
 ],
 "http://purl.org/dc/elements/1.1/contributor" :
 [
 { "value" : "Gogol Bordello", "type" : "literal", "lang" : "en" }
 ]
 }
}
On Jan 4, 2008 1:12 PM, Manu Sporny <msporny at digitalbazaar.com> wrote:
>> ryan wrote:
> > We already have JSON for hreview in the test suite. I'd be willing to
> > create JSON for hCard and hCalendar, too. In fact, I've done it before
> > several times (not publicly available), so its just a matter of writing
> > it all down.
>> That would be really helpful! Could you do it in this style, just so we
> can provide similar pages for all Microformats when/if the time comes?:
>>> http://microformats.org/wiki/haudio-serialization
>> I've put a bit of work into mapping hCard to/from Vcard RDF, here:
>> http://wiki.digitalbazaar.com/en/Mapping-ufs-to-rdfa#hCard_uF_and_vCard_RDFa
>> There is also a section on mapping hCalender to/from Vevent RDF, here:
>> http://wiki.digitalbazaar.com/en/Mapping-ufs-to-rdfa#hCalendar_uF_and_vCal_RDFa
>> I don't know if you mean JSON-RDF or just a pure JSON representation of
> a Microformatted object? Both are provided for the haudio-serialization
> page, but we really should get behind one as a community. The JSON-RDF
> approach seems to be the right solution because it doesn't loose any
> data, but saying that now may be putting the cart before the horse...
>>>>> -- manu
>> _______________________________________________
> microformats-dev mailing list
> microformats-dev at microformats.org
> http://microformats.org/mailman/listinfo/microformats-dev
>


More information about the microformats-dev mailing list

AltStyle によって変換されたページ (->オリジナル) /