- From: Gregg Kellogg <gregg@kellogg-assoc.com>
- Date: Thu, 20 Oct 2011 10:44:20 -0400
- To: PG <garvinpr2@fastmail.fm>
- CC: "public-vocabs@w3.org" <public-vocabs@w3.org>
On Oct 19, 2011, at 6:56 AM, PG wrote:
> Hello,
>
> I'm wondering if I can get feedback on the accuracy of my implementation of schema.org in this code. Some background: this unordered list is meant to identify metadata for an audio recording. You will note a number of deeply nested <spans> because I'm trying to make it clear how metadata is related. Any thoughts?
>
> <ul itemscope itemtype="http://schema.org/CreativeWork">
> <li><h4>Interview Title:</h4> <span itemprop="name">The Early Years</span></li>
> <li><h4>Interviewee:</h4> <span itemprop="contributor">Sally Pausin</span></li>
> <li><h4>Date of Birth:</h4> <span itemprop="contributor" itemscope itemtype="http://schema.org/Person"><time itemprop="birthDate" datetime="1965-06-22">June 22, 1965</time></time> </li>
> <li><h4>Place of Birth:</h4> <span itemprop="contributor" itemscope itemtype="http://schema.org/Person"><span itemprop="birthPlace">La Jolla, CA</span></span></li>
> <li><h4>Affiliation:</h4> <span itemprop="contributor" itemscope itemtype="http://schema.org/Person"><span itemprop="affiliation" itemscope itemtype="http://schema.org/Organization"><span itemprop="name">Professor, CUNY</span></span></span></li>
> <li><h4>Interview Date:</h4> <time itemprop="dateCreated" datetime="2011-04-01">April 1, 2011</time></li>
> <li><h4>Length:</h4> <span itemprop="associatedMedia" itemscope itemtype="http://schema.org/MediaObject"><span itemprop="audio" itemscope itemtype="http://schema.org/AudioObject "><time itemprop="duration" datetime="PT1H20M04S">1:20:04</time></span></span></li>
> <li><h4>Resource type:</h4> <span itemprop="associatedMedia" itemscope itemtype="http://schema.org/MediaObject"><span itemprop="name">Audio</span></span></li>
> <li><h4>Format:</h4> <span itemprop="encodingFormat">MP3</span></li>
> <li><h4>Subject:</h4> <span itemprop="keywords"><a href="#">Organizations</a></span></li>
> <li><h4>Rights:</h4> <span itemprop="copyrightHolder" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Sally Pausin</span></span></li>
> <li><h4>Reproduction Policies:</h4> <span itemprop="accessRights">Do not distribute</span></li>
> <li><h4>Digital ID:</h4> <span itemprop="resourceIdentifier">HG6675</span></li>
> <li><h4>Reference URL:</h4> <span itemprop="url"><a href="#">http://www.x.com</a></span></li>
> </ul>
You might try checking it against a distiller, such as here [1]
The generates the following turtle:
@base <http://www.examiner.com/tag/elections-2012> .
@prefix md: <http://www.w3.org/1999/xhtml/microdata#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix schema: <http://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<> md:item [ a schema:CreativeWork;
schema:accessRights "Do not distribute";
schema:associatedMedia [ a schema:MediaObject;
schema:audio [ a <http://schema.org/AudioObject >;
schema:duration "PT1H20M04S"]],
[ a schema:MediaObject;
schema:name "Audio"];
schema:contributor "Sally Pausin",
[ a schema:Person;
schema:birthDate "1965-06-22"^^xsd:date],
[ a schema:Person;
schema:birthPlace "La Jolla, CA"],
[ a schema:Person;
schema:affiliation [ a schema:Organization;
schema:name "Professor, CUNY"]];
schema:copyrightHolder [ a schema:Person;
schema:name "Sally Pausin"];
schema:dateCreated "2011-04-01"^^xsd:date;
schema:encodingFormat "MP3";
schema:keywords "Organizations";
schema:name "The Early Years";
schema:resourceIdentifier "HG6675";
schema:url "http://www.x.com"] .
Looks like an issue with the contributor information, which should be a single item, not one for each attribute. It also looks like there's an extra space in an "AudioObject" property.
Gregg
[1] http://rdf.greggkellogg.net/distiller?fmt=turtle&in_fmt=microdata
> P
>
Received on Thursday, 20 October 2011 14:45:24 UTC