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

Re: Updated Microdata to RDF spec

From: Jeni Tennison <jeni@jenitennison.com>
Date: Thu, 24 Nov 2011 19:16:14 +0000
Cc: Gregg Kellogg <gregg@kellogg-assoc.com>, HTML Data Task Force WG <public-html-data-tf@w3.org>
Message-Id: <91B049E0-396E-4E1A-BE6F-D7110ADF236E@jenitennison.com>
To: Ivan Herman <ivan@w3.org>

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.



[1] https://dvcs.w3.org/hg/htmldata/raw-file/default/microdata-rdf/index.html#generate-the-triples
Jeni Tennison
Received on Thursday, 24 November 2011 19:16:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:58:06 UTC