W3C home > Mailing lists > Public > public-html-data-tf@w3.org > November 2011

Re: Updated Microdata to RDF spec

From: Ivan Herman <ivan@w3.org>
Date: Fri, 25 Nov 2011 09:00:49 +0100
Cc: Gregg Kellogg <gregg@kellogg-assoc.com>, HTML Data Task Force WG <public-html-data-tf@w3.org>
Message-Id: <FF6DBDE2-CE0B-4E66-878C-34E5448A5A3F@w3.org>
To: Jeni Tennison <jeni@jenitennison.com>
Ah, o.k. I understand now. That is when there _is_ a registry entry for a vocabulary. Otherwise, I presume, the vocabulary URI is obtained by cutting back the type URI until the first (from the right, that is) '#' or '/' character, right?

Ivan

On Nov 24, 2011, at 20:16 , Jeni Tennison wrote:

> Ivan,
> 
> On 24 Nov 2011, at 18:45, Ivan Herman wrote:
>> for my understanding: what would be the registry entry for schema.org? I strikes me as none of the two would really cover it: the vocabulary relies on the heuristics of extracting the vocab uri from the properties and, well, that does not work with the extension mechanism of schema.org...
> 
> 
> The example in the spec is here:
> 
>  "http://schema.org/": {
>    "propertyURI":    "vocabulary",
>    "multipleValues": "unordered",
>    "properties": {
>      "blogPosts": {"multipleValues": "list"},
>      "breadcrumb": {"multipleValues": "list"},
>      "byArtist": {"multipleValues": "list"},
>      "creator": {"multipleValues": "list"},
>      "episodes": {"multipleValues": "list"},
>      "events": {"multipleValues": "list"},
>      "founders": {"multipleValues": "list"},
>      "itemListElement": {"multipleValues": "list"},
>      "musicGroupMember": {"multipleValues": "list"},
>      "performerIn": {"multipleValues": "list"},
>      "performers": {"multipleValues": "list"},
>      "producer": {"multipleValues": "list"},
>      "recipeInstructions": {"multipleValues": "list"},
>      "seasons": {"multipleValues": "list"},
>      "subEvents": {"multipleValues": "list"},
>      "tracks": {"multipleValues": "list"}
>    }
>  }
> 
> (I'm not sure that all those properties really need to have multipleValues: list, but it's illustrative.)
> 
> The magic that means that you get to "http://schema.org/" as the vocabulary even for types like "http://schema.org/Person/Teacher" is [1]:
> 
>   If the registry contains a URI prefix that is a character for 
>   character match of type up to the length of the URI prefix, set 
>   vocab as that URI prefix.
> 
> Since "http://schema.org/Person/Teacher" has a prefix that matches "http://schema.org/", that is the vocabulary URI that is used for the properties.
> 
> Cheers,
> 
> Jeni
> 
> [1] https://dvcs.w3.org/hg/htmldata/raw-file/default/microdata-rdf/index.html#generate-the-triples
> -- 
> Jeni Tennison
> http://www.jenitennison.com
> 


----
Ivan Herman, W3C Semantic Web Activity Lead
Home: http://www.w3.org/People/Ivan/
mobile: +31-641044153
FOAF: http://www.ivan-herman.net/foaf.rdf
Received on Friday, 25 November 2011 07:57:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 25 November 2011 07:57:51 GMT