W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2009

[whatwg] Annotating structured data that HTML has no semantics for

From: Giovanni Gentili <giovanni.gentili@gmail.com>
Date: Wed, 13 May 2009 17:07:09 +0200
Message-ID: <4a30f5360905130807l32b2e85sce72ee7280bee38f@mail.gmail.com>
>> In terms of prefixes, I find that 'com.foaf-project.name' is a lot more
>> difficult to write than 'foaf:name'. Reverse domain names are
>> non-intuitive for non-programmer types (or non-Java programmers).
>
> If we can come up with a way of using the string "foaf:name" without
> having to declare "foaf" in each document, I'm totally in agreement. I've
> considered maybe registering the "foaf" URL scheme, or using some other
> punctuation character and having people register prefixes, but I don't
> know what punctuation character to use (':' and '.' are both taken).

put in HTML5 some predefinited prefixes for @itemprop:

dc = http://purl.org/dc/terms/
foaf = http://xmlns.com/foaf/0.1/
vcard = http://www.w3.org/2001/vcard-rdf/3.0#
owl = http://www.w3.org/2002/07/owl#
rdf = http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs = http://www.w3.org/2000/01/rdf-schema#
sioc = http://rdfs.org/sioc/ns#
skos = http://www.w3.org/2004/02/skos/core#
xsd = http://www.w3.org/2001/XMLSchema#

also, instead of @item @itemprop @subject
is better @item @prop @subj
or @rdf-typeof @rdf-property @rdf-about (and @rdf-rel)
-- 
Giovanni Gentili
Received on Wednesday, 13 May 2009 08:07:09 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:49 UTC