Re: Updated Microdata to RDF spec

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

Received on Thursday, 24 November 2011 19:16:39 UTC