Skip to content

Commit

Permalink
Merge pull request #2212 from gkellogg/misc-example-fixes
Browse files Browse the repository at this point in the history
Various fixes to examples to fix linter errors.
  • Loading branch information
RichardWallis committed Apr 16, 2019
2 parents 023299d + 89dea6e commit 722b8dd
Show file tree
Hide file tree
Showing 11 changed files with 1,151 additions and 868 deletions.
42 changes: 21 additions & 21 deletions data/examples.txt
Expand Up @@ -1563,7 +1563,7 @@ RDFA:
</h2>
<div property="track" typeof="MusicRecording">
<span property="name">Rope</span>
<meta property="url" content="foo-fighters-rope.html">Length:
<link property="url" href="foo-fighters-rope.html">Length:
<meta property="duration" content="PT4M5S">4:05 - 14300 plays
<div property="interactionStatistic" typeof="http://schema.org/InteractionCounter">
<meta property="interactionType" content="http://schema.org/ListenAction">
Expand All @@ -1572,7 +1572,7 @@ RDFA:
</div>
<div property="track" typeof="MusicRecording">
<span property="name">Everlong</span>
<meta property="url" content="foo-fighters-everlong.html">Length:
<link property="url" href="foo-fighters-everlong.html">Length:
<meta property="duration" content="PT6M33S">6:33 - 11700 plays
<div property="interactionStatistic" typeof="http://schema.org/InteractionCounter">
<meta property="interactionType" content="http://schema.org/ListenAction">
Expand Down Expand Up @@ -2136,39 +2136,39 @@ RDFA:
<div property="track" typeof="MusicRecording">
1.<span property="name">Sweet Home Alabama</span> -
<span property="byArtist">Lynard Skynard</span>
<meta content="sweet-home-alabama" property="url" />
<link href="sweet-home-alabama" property="url" />
<meta content="PT4M45S" property="duration" />
<meta content="Second Helping" property="inAlbum" />
</div>

<div property="track" typeof="MusicRecording">
2.<span property="name">Shook you all Night Long</span> -
<span property="byArtist">AC/DC</span>
<meta content="shook-you-all-night-long" property="url" />
<link href="shook-you-all-night-long" property="url" />
<meta content="PT3M32S" property="duration" />
<meta content="Back In Black" property="inAlbum" />
</div>

<div property="track" typeof="MusicRecording">
3.<span property="name">Sharp Dressed Man</span> -
<span property="byArtist">ZZ Top</span>
<meta content="sharp-dressed-man" property="url" />
<link href="sharp-dressed-man" property="url" />
<meta content="PT4M13S" property="duration" />
<meta content="Eliminator" property="inAlbum" />
</div>

<div property="track" typeof="MusicRecording">
4.<span property="name">Old Time Rock and Roll</span> -
<span property="byArtist">Bob Seger</span>
<meta content="old-time-rock-and-roll" property="url" />
<link href="old-time-rock-and-roll" property="url" />
<meta content="PT3M12S" property="duration" />
<meta content="Stranger In Town" property="inAlbum" />
</div>

<div property="track" typeof="MusicRecording">
5.<span property="name">Hurt So Good</span> -
<span property="byArtist">John Cougar</span>
<meta content="hurt-so-good" property="url" />
<link href="hurt-so-good" property="url" />
<meta content="PT3M39S" property="duration" />
<meta content="American Fool" property="inAlbum" />
</div>
Expand Down Expand Up @@ -2578,7 +2578,7 @@ RDFA:

<div vocab="http://schema.org/" typeof="MusicAlbum">
<h1 property="name"> King of Limbs </h1>
<meta content="/artist/radiohead/album/the-king-of-limbs" property="url" />
<link href="/artist/radiohead/album/the-king-of-limbs" property="url" />
<img alt="Blurry, spooky cover art"
src="king-of-limbs.jpg" property="image" />
<meta content="8" property="numTracks" />
Expand All @@ -2591,12 +2591,12 @@ RDFA:
<h3>Sample Tracks</h3>
<div property="track" typeof="MusicRecording">
<span property="name">Bloom</span>
<meta content="/artist/radiohead/album/the-king-of-limbs/track/bloom" property="url" />
<link href="/artist/radiohead/album/the-king-of-limbs/track/bloom" property="url" />
<meta content="PT5M14S" property="duration" />5:14
</div>
<div property="track" typeof="MusicRecording">
<span property="name">Morning Mr Magpie</span>
<meta content="/artist/radiohead/album/the-king-of-limbs/track/morning-mr-magpie" property="url" />
<link href="/artist/radiohead/album/the-king-of-limbs/track/morning-mr-magpie" property="url" />
<meta content="PT4M40S" property="duration" />4:40
</div>
</div>
Expand Down Expand Up @@ -9930,16 +9930,16 @@ PRE-MARKUP:
<div>
<h1>Middle of Nowhere Foods</h1>
<h2>Opening hours</h2>
<p>Normally open daily <time datetime="09:00">9am</time>-<time datetime="14:00">2pm</time> except on:</p>
<p>Normally open daily <time datetime="09:00:00">9am</time>-<time datetime="14:00:00">2pm</time> except on:</p>
<ul>
<li>
<time datetime="2013-12-24">24 December 2013</time> and
<time datetime="2013-12-25">25 December 2013</time>:
<time datetime="09:00">9am</time>-<time datetime="11:00">11am</time>
<time datetime="09:00:00">9am</time>-<time datetime="11:00:00">11am</time>
</li>
<li>
<time datetime="2014-01-01">1st January 2014</time>:
<time datetime="12:00">Noon</time>-<time datetime="14:00">2pm</time>
<time datetime="12:00:00">Noon</time>-<time datetime="14:00:00">2pm</time>
</li>
</ul>
</div>
Expand All @@ -9950,16 +9950,16 @@ MICRODATA:
<h1 itemprop="name">Middle of Nowhere Foods</h1>
<h2>Opening hours</h2>
<meta itemprop="openingHours" content="Mo,Tu,We,Th,Fr,Sa,Su 09:00-14:00">
<p>Normally open daily <time datetime="09:00">9am</time>-<time datetime="14:00">2pm</time> except on:</p>
<p>Normally open daily <time datetime="09:00:00">9am</time>-<time datetime="14:00:00">2pm</time> except on:</p>
<ul>
<li itemprop="openingHoursSpecification" itemscope itemtype="http://schema.org/OpeningHoursSpecification">
<time itemprop="validFrom" datetime="2013-12-24">24 December 2013</time> and
<time itemprop="validThrough" datetime="2013-12-25">25 December 2013</time>:
<time itemprop="opens" datetime="09:00">9am</time>-<time itemprop="closes" datetime="11:00">11am</time>
<time itemprop="opens" datetime="09:00:00">9am</time>-<time itemprop="closes" datetime="11:00:00">11am</time>
</li>
<li itemprop="openingHoursSpecification" itemscope itemtype="http://schema.org/OpeningHoursSpecification">
<time itemprop="validFrom validThrough" datetime="2014-01-01">1st January 2014</time>:
<time itemprop="opens" datetime="12:00">Noon</time>-<time itemprop="closes" datetime="14:00">2pm</time>
<time itemprop="opens" datetime="12:00:00">Noon</time>-<time itemprop="closes" datetime="14:00:00">2pm</time>
</li>
</ul>
</div>
Expand All @@ -9970,16 +9970,16 @@ RDFA:
<h1 property="name">Middle of Nowhere Foods</h1>
<h2>Opening hours</h2>
<meta property="openingHours" content="Mo,Tu,We,Th,Fr,Sa,Su 09:00-14:00">
<p>Normally open daily <time datetime="09:00">9am</time>-<time datetime="14:00">2pm</time> except on:</p>
<p>Normally open daily <time datetime="09:00:00">9am</time>-<time datetime="14:00:00">2pm</time> except on:</p>
<ul>
<li property="openingHoursSpecification" typeof="OpeningHoursSpecification">
<time property="validFrom" datetime="2013-12-24">24 December 2013</time> and
<time property="validThrough" datetime="2013-12-25">25 December 2013</time>:
<time property="opens" datetime="09:00">9am</time>-<time property="closes" datetime="11:00">11am</time>
<time property="opens" datetime="09:00:00">9am</time>-<time property="closes" datetime="11:00:00">11am</time>
</li>
<li property="openingHoursSpecification" typeof="OpeningHoursSpecification">
<time property="validFrom validThrough" datetime="2014-01-01">1st January 2014</time>:
<time property="opens" datetime="12:00">Noon</time>-<time property="closes" datetime="14:00">2pm</time>
<time property="opens" datetime="12:00:00">Noon</time>-<time property="closes" datetime="14:00:00">2pm</time>
</li>
</ul>
</div>
Expand All @@ -10005,8 +10005,8 @@ JSON:
"@type": "OpeningHoursSpecification",
"validFrom": "2014-01-01",
"validThrough": "2014-01-01",
"opens": "12:00",
"closes": "14:00"
"opens": "12:00:00",
"closes": "14:00:00"
}
]
}
Expand Down
6 changes: 3 additions & 3 deletions data/ext/bib/bsdo-audiobook-examples.txt
Expand Up @@ -25,7 +25,7 @@ MICRODATA:
<span itemprop="provider">OneClick Digital</span>
</p>
<p>Connect to: <a itemprop="url" href="http://overdrive.berkeleypubliclibrary.org/ContentDetails.htm?ID=E867D2C7-DE81-446B-8EC6-85057B587262">Downloadable audiobook</a></p>
<p>Description: <span itemprop="duration" content="13H31M">1 sound file (13 hr., 31 min.) : digital</span></p>
<p>Description: <datetype itemprop="duration" content="P13H31M">1 sound file (13 hr., 31 min.) : digital</datetime></p>
<p>Summary: <span itemprop="description">
The Jackal, the world's most cunning and revered assassin, is given a treacherous mission that could spell disaster for world diplomacy. Catching wind of a mysterious assassination plot, authorities throughout Europe mobilize a manhunt. However, without knowing the Jackal's true target, authorities are forced to wait until the clever killer makes his next move</span></p>
<p><meta itemprop="abridged" content="false" />Unabridged</p>
Expand All @@ -45,7 +45,7 @@ RDFA:
<span property="provider">OneClick Digital</span>
</p>
<p>Connect to: <a property="url" href="http://overdrive.berkeleypubliclibrary.org/ContentDetails.htm?ID=E867D2C7-DE81-446B-8EC6-85057B587262">Downloadable audiobook</a></p>
<p>Description: <span property="duration" content="13H31M">1 sound file (13 hr., 31 min.) : digital</span></p>
<p>Description: <datetime property="duration" content="P13H31M">1 sound file (13 hr., 31 min.) : digital</datetime></p>
<p>Summary: <span property="description">
The Jackal, the world's most cunning and revered assassin, is given a treacherous mission that could spell disaster for world diplomacy. Catching wind of a mysterious assassination plot, authorities throughout Europe mobilize a manhunt. However, without knowing the Jackal's true target, authorities are forced to wait until the clever killer makes his next move</span></p>
<p><meta property="abridged" content="false" />Unabridged</p>
Expand Down Expand Up @@ -77,7 +77,7 @@ JSON:
"schema:publisher": "Blackstone Audio &#59;",
"schema:provider": "OneClick Digital",
"schema:url": "http://overdrive.berkeleypubliclibrary.org/ContentDetails.htm?ID=E867D2C7-DE81-446B-8EC6-85057B587262",
"schema:duration": "13H31M",
"schema:duration": "P13H31M",
"schema:description": "The Jackal, the world's most cunning and revered assassin, is given a treacherous mission that could spell disaster for world diplomacy. Catching wind of a mysterious assassination plot, authorities throughout Europe mobilize a manhunt. However, without knowing the Jackal's true target, authorities are forced to wait until the clever killer makes his next move",
"schema:abridged": "false",
"schema:encodingFormat": "OverDrive MP3 Audiobook, OverDrive WMA Audiobook",
Expand Down
6 changes: 3 additions & 3 deletions data/ext/bib/bsdo-thesis-examples.txt
Expand Up @@ -6,7 +6,7 @@ A Thesis.

<div>
<h1>Asian elephants are essential as seed dispersers in a disturbed tropical forest</h1>
<h2> A Thesis<h2>
<h2> A Thesis</h2>
<div>Author: Sekar, Nitin, Ph.D.</div>
<div>Course: Conservation Biology</div>
<div>School: Princeton University</div>
Expand All @@ -18,7 +18,7 @@ MICRODATA:

<div itemscope itemtype="http://schema.org/Thesis">
<h1 itemprop="name">Asian elephants are essential as seed dispersers in a disturbed tropical forest</h1>
<h2> A Thesis<h2>
<h2> A Thesis</h2>
<div>Author: <span itemprop="author">Sekar, Nitin, Ph.D.</span></div>
<div>Course: <span itemprop="inSupportOf">Conservation Biology</span></div>
<div>School: <span itemprop="sourceOrganization">Princeton University</span></div>
Expand All @@ -28,7 +28,7 @@ RDFA:

<div vocab="http://schema.org/" typeof="Thesis">
<h1 property="name">Asian elephants are essential as seed dispersers in a disturbed tropical forest</h1>
<h2> A Thesis<h2>
<h2> A Thesis</h2>
<div>Author: <span property="author">Sekar, Nitin, Ph.D.</span></div>
<div>Course: <span property="inSupportOf">Conservation Biology</span></div>
<div>School: <span property="sourceOrganization">Princeton University</span></div>
Expand Down
4 changes: 2 additions & 2 deletions data/ext/health-lifesci/medicalGuideline-examples.txt
Expand Up @@ -38,7 +38,7 @@ MICRODATA:
be treated with
<span itemprop="subject" itemscope itemtype="http://schema.org/TherapeuticProcedure">
<span itemprop="name">appendectomy</span></span> in adults.
(Class III, <a itemprop="evidenceLevel" href="http://schema.org/EvidenceLevelC"/>
(Class III, <link itemprop="evidenceLevel" href="http://schema.org/EvidenceLevelC"/>
<span itemprop="evidenceOrigin">standard of care</span></a>)
</span></li>
</ul>
Expand Down Expand Up @@ -71,7 +71,7 @@ RDFA:
be treated with
<span property="subject" typeof="TherapeuticProcedure">
<span property="name">appendectomy</span></span> in adults.
(Class III, <a property="evidenceLevel" href="http://schema.org/EvidenceLevelC"/>
(Class III, <link property="evidenceLevel" href="http://schema.org/EvidenceLevelC"/>
<span property="evidenceOrigin">standard of care</span></a>)
</span></li>
</ul>
Expand Down
36 changes: 18 additions & 18 deletions data/sdo-course-examples.txt
Expand Up @@ -39,8 +39,8 @@ RDFA:
<meta property="courseMode" content="MOOC" />
<meta property="courseMode" content="online" />
<h2>Session dates</h2>
<span property="startDate">February 15</span> -
<span property="endDate">March 21</span>
<span property="startDate" content="2019-02-15" datatype="schema:date">February 15</span> -
<span property="endDate" content="2019-03-21" datatype="schema:date">March 21</span>
</div>
</main>
</body>
Expand All @@ -55,8 +55,8 @@ JSON:
"hasCourseInstance": {
"@type": "CourseInstance",
"courseMode": ["MOOC","online"],
"endDate": "March 21",
"startDate": "February 15"
"endDate": "2019-03-21",
"startDate": "2019-02-15"
}
}
</script>
Expand Down Expand Up @@ -131,21 +131,21 @@ RDFA:
</tr>
<tr rel="hasCourseInstance" typeof="CourseInstance">
<td property="courseMode">full-time</td>
<td property="startDate">29 Aug 2016</td>
<td property="endDate">23 Jun 2017</td>
<td property="startDate" content="2016-08-29" datatype="schema:date">29 Aug 2016</td>
<td property="endDate" content="2017-06-23" datatype="schema:date">23 Jun 2017</td>
<td property="location">St Brycedale Campus Kirkcaldy</td>
</tr>
<tr rel="hasCourseInstance" typeof="CourseInstance">
<td property="courseMode">full-time</td>
<td property="startDate">29 Aug 2016</td>
<td property="endDate">23 Jun 2017</td>
<td property="startDate" content="2016-08-29" datatype="schema:date">29 Aug 2016</td>
<td property="endDate" content="2017-06-23" datatype="schema:date">23 Jun 2017</td>
<td property="location">Halbeath Campus Dunfermline</td>
</tr>
<tr rel="hasCourseInstance" typeof="CourseInstance">
<td><meta property="courseMode" content="part-time">
Evenings only and weekends</td>
<td property="startDate">31 Aug 2016</td>
<td property="endDate">21 Jun 2017</td>
<td property="startDate" content="2016-08-31" datatype="schema:date">31 Aug 2016</td>
<td property="endDate" content="2017-06-21" datatype="schema:date">21 Jun 2017</td>
<td property="location">St Brycedale Campus Kirkcaldy</td>
</tr>
</tbody>
Expand All @@ -165,22 +165,22 @@ JSON:
{
"@type": "CourseInstance",
"courseMode": "part-time",
"endDate": "21 Jun 2017",
"endDate": "2017-06-21",
"location": "St Brycedale Campus Kirkcaldy",
"startDate": "31 Aug 2016"
"startDate": "2016-08-31"
},
{
"@type": "CourseInstance",
"courseMode": "full-time",
"endDate": "23 Jun 2017",
"endDate": "2017-06-23",
"location": "Halbeath Campus Dunfermline",
"startDate": "29 Aug 2016"
"startDate": "2016-08-29"
},
{
"courseMode": "full-time",
"endDate": "23 Jun 2017",
"endDate": "2017-06-23",
"location": "St Brycedale Campus Kirkcaldy",
"startDate": "29 Aug 2016"
"startDate": "2016-08-29"
}
]
}
Expand Down Expand Up @@ -440,7 +440,7 @@ JSON:
"@type": "schema:Person",
"schema:jobTitle": "Associate Professor, Biostatistics",
"schema:name": "Jeff Leek, PhD",
"schema:url": "instructor/~315",
"schema:url": {"@id": "http://example.org/instructor/~315"},
"schema:worksFor": "Bloomberg School of Public Health "
},
"schema:offers": {
Expand Down Expand Up @@ -511,7 +511,7 @@ JSON:
"schema:provider": {
"@type": "schema:CollegeOrUniversity",
"schema:name": "University of Bristol",
"schema:url": "provider/324/university-of-bristol"
"schema:url": {"@id": "/provider/324/university-of-bristol"}
}
}
</script>
Expand Down
3 changes: 1 addition & 2 deletions data/sdo-identifier-examples.txt
Expand Up @@ -33,8 +33,7 @@ RDFA:
</div>
</div>
<br>
Details:
</p><a property="sameAs" href="http://www.worldcat.org/oclc/889647468">WorldCat.org</a>
Details: <a property="sameAs" href="http://www.worldcat.org/oclc/889647468">WorldCat.org</a>

JSON:

Expand Down
4 changes: 2 additions & 2 deletions data/sdo-lrmi-examples.txt
Expand Up @@ -238,7 +238,7 @@ JSON:
"name": "The Declaration of Arbroath",
"about": "Wars of Scottish independence",
"learningResourceType": "lesson plan",
"timeRequired": "1 hour",
"timeRequired": "PT1H",
"typicalAgeRange": "10-12",
"audience": {
"@type": "EducationalAudience",
Expand Down Expand Up @@ -279,7 +279,7 @@ JSON:
"video": {
"@type": "VideoObject",
"description": "Video description",
"duration": "03:12",
"duration": "PT3M12S",
"name": "Video Title",
"thumbnailUrl": "http://example.org/thubnail.mp4",
"uploadDate": "2000-01-01",
Expand Down
8 changes: 4 additions & 4 deletions data/sdo-offeredby-examples.txt
Expand Up @@ -282,12 +282,12 @@ PRE-MARKUP:
MICRODATA:

<body itemscope itemtype='http://schema.org/Movie'>
<meta itemprop="url" content="#schemarecord"/>
<link itemprop="url" href="#schemarecord"/>
<link itemprop="additionalType" href="http://schema.org/Product"/>
<h1 itemprop="name">In search of Haydn [videorecording] / Phil Grabsky Films.com &amp; Seventh Art Productions in association with Sky Art HD ; filmed, written and directed by Phil Grabsky.</h1>
<h2>Record details</h2>
<ul>
<li><div itemprop="publisher" itemscope itemtype="http://schema.org/Organization"><strong>Publisher:</strong> <span ><span itemprop="location">[Brighton, UK] :</span> <span itemprop="name">Seventh Art Productions,</span></span> <span itemprop="datePublished">[2011]</span>
<li><div itemprop="publisher" itemscope itemtype="http://schema.org/Organization"><strong>Publisher:</strong> <span ><span itemprop="location">[Brighton, UK] :</span> <span itemprop="name">Seventh Art Productions,</span></span> <datetime itemprop="datePublished" content="2011-01-01">[2011]</datetime>
</div></li>
</ul>
<table>
Expand Down Expand Up @@ -319,7 +319,7 @@ RDFA:
<h1 property="name">In search of Haydn [videorecording] / Phil Grabsky Films.com &amp; Seventh Art Productions in association with Sky Art HD ; filmed, written and directed by Phil Grabsky.</h1>
<h2>Record details</h2>
<ul>
<li><strong>Publisher:</strong> <span property="publisher" typeof="Organization"><span property="location">[Brighton, UK] :</span> <span property="name">Seventh Art Productions,</span></span> <span property="datePublished">[2011]</span></li>
<li><strong>Publisher:</strong> <span property="publisher" typeof="Organization"><span property="location">[Brighton, UK] :</span> <span property="name">Seventh Art Productions,</span></span> <datetime property="datePublished" content="2011-01-01">[2011]</datetime></li>
</ul>
<table>
<tr><td>Subject:</td>
Expand Down Expand Up @@ -363,7 +363,7 @@ JSON:
"Haydn, Joseph, 1732-1809.",
"Documentary films."
],
"datePublished": "[2011]",
"datePublished": "2011-01-01",
"name": "In search of Haydn [videorecording] / Phil Grabsky Films.com & Seventh Art Productions in association with Sky Art HD ; filmed, written and directed by Phil Grabsky.",
"offers": {
"@type": "Offer",
Expand Down

0 comments on commit 722b8dd

Please sign in to comment.