Skip to content

Commit

Permalink
Updated all examples to use https://schema.org instead of http://sche…
Browse files Browse the repository at this point in the history
…ma.org (#2669)

* Updated all examples to use https://schema.org instead of http://schema.org

* Added test to check if 'http://schema.org' has been used in examples files

Co-authored-by: Dataliberate <rjw@dataliberate.com>
  • Loading branch information
RichardWallis and Dataliberate committed Aug 11, 2020
1 parent cdac307 commit a45a5bf
Show file tree
Hide file tree
Showing 101 changed files with 1,761 additions and 1,748 deletions.
1,130 changes: 565 additions & 565 deletions data/examples.txt

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions data/ext/bib/bsdo-atlas-examples.txt
Expand Up @@ -16,7 +16,7 @@ MICRODATA:



<div itemscope itemtype="http://schema.org/Atlas" itemid="http://www.worldcat.org/oclc/41310554">
<div itemscope itemtype="https://schema.org/Atlas" itemid="http://www.worldcat.org/oclc/41310554">
<h1 itemprop="name">Atlas of the World</h1>
<h2 itemprop="alternateName">National Geographic atlas of the world</h2>
<div>Publisher: <span itemprop="disambiguatingDescription">7th ed.</span></div>
Expand All @@ -26,7 +26,7 @@ MICRODATA:

RDFA:

<div vocab="http://schema.org/" resource="http://www.worldcat.org/oclc/41310554" typeof="Atlas">
<div vocab="https://schema.org/" resource="http://www.worldcat.org/oclc/41310554" typeof="Atlas">
<h1 property="name">Atlas of the World</h1>
<h2 property="alternateName">National Geographic atlas of the world</h2>
<div>Edition: <span property="disambiguatingDescription">7th ed.</span></div>
Expand All @@ -42,7 +42,7 @@ JSON:
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfa": "http://www.w3.org/ns/rdfa#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"schema": "http://schema.org/",
"schema": "https://schema.org/",
"xsd": "http://www.w3.org/2001/XMLSchema#"
},
"@id": "http://www.worldcat.org/oclc/41310554",
Expand Down
6 changes: 3 additions & 3 deletions data/ext/bib/bsdo-audiobook-examples.txt
Expand Up @@ -18,7 +18,7 @@ PRE-MARKUP:

MICRODATA:

<div itemscope itemtype="http://schema.org/Audiobook" itemid="https://archive.org/details/alices_adventures_1005_librivox#work">
<div itemscope itemtype="https://schema.org/Audiobook" itemid="https://archive.org/details/alices_adventures_1005_librivox#work">
<h1 itemprop="title">Alice's Adventures in Wonderland</h1>
<h2>by <span itemprop="author">Lewis Carroll</span></h2>
<p>provided by <a href="http://archive.org/" itemprop="provider">The Internet Archive</a>;
Expand All @@ -36,7 +36,7 @@ MICRODATA:

RDFA:

<div vocab="http://schema.org/" typeof="Audiobook" resource="https://archive.org/details/alices_adventures_1005_librivox#work">
<div vocab="https://schema.org/" typeof="Audiobook" resource="https://archive.org/details/alices_adventures_1005_librivox#work">
<h1 property="title">Alice's Adventures in Wonderland</h1>
<h2>by <span property="author">Lewis Carroll</span></h2>
<p>provided by <a href="http://archive.org/" property="provider">The Internet Archive</a>;
Expand All @@ -56,7 +56,7 @@ JSON:

<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@context": "https://schema.org/",
"type": "Audiobook",
"@id": "https://archive.org/details/alices_adventures_1005_librivox#work",
"abridged": "false",
Expand Down
10 changes: 5 additions & 5 deletions data/ext/bib/bsdo-chapter-examples.txt
Expand Up @@ -19,22 +19,22 @@ MICRODATA:


<div>
<div itemscope itemtype="http://schema.org/Book" itemid="http://www.worldcat.org/oclc/751835184">
<div itemscope itemtype="https://schema.org/Book" itemid="http://www.worldcat.org/oclc/751835184">
<h1 itemprop="name">Steve Jobs</h1>
<div>Author: <span itemprop="author" itemid="http://viaf.org/viaf/46911882">Walter Isaacson</span></div>
<div>ISBN: <span itemprop="isbn">9781408703748</span></div>
</div>
<div itemscope itemtype="http://schema.org/Chapter" >
<div itemscope itemtype="https://schema.org/Chapter" >
<h2 itemprop="name">Chapter 16: Gates AND JOBS</h2>
<h3 itemprop="alternateName">When Orbits Intersect</h3>
<div>Pages: <span itemprop="pageStart">171</span>-<span itemprop="pageEnd">179</span></div>
<link itemprop="isPartOf" itemscope itemtype="http://schema.org/Book" itemid="http://www.worldcat.org/oclc/751835184" />
<link itemprop="isPartOf" itemscope itemtype="https://schema.org/Book" itemid="http://www.worldcat.org/oclc/751835184" />
</div>
</div>

RDFA:

<div vocab="http://schema.org/">
<div vocab="https://schema.org/">
<div typeof="Book" resource="http://www.worldcat.org/oclc/751835184">
<h1 property="name">Steve Jobs</h1>
<div>Author: <span property="author" resource="http://viaf.org/viaf/46911882">Walter Isaacson</span></div>
Expand All @@ -54,7 +54,7 @@ JSON:
{
"@context": {
"rdfa": "http://www.w3.org/ns/rdfa#",
"schema": "http://schema.org/"
"schema": "https://schema.org/"
},
"@graph": [
{
Expand Down
28 changes: 14 additions & 14 deletions data/ext/bib/bsdo-collection-examples.txt
Expand Up @@ -28,38 +28,38 @@ MICRODATA:


<div>
<div itemscope itemtype="http://schema.org/Collection" itemid="http://example.org/colls/68">
<div itemscope itemtype="https://schema.org/Collection" itemid="http://example.org/colls/68">
<h1 itemprop="name">Eclectic Time</h1>
<div>Creator: <span itemprop="creator">Twinkle T. Hose</span></div>
<link itemprop="hasPart" itemscope itemtype="http://schema.org/CreativeWork" itemid="http://www.worldcat.org/oclc/68043906" />
<link itemprop="hasPart" itemscope itemtype="http://schema.org/CreativeWork" itemid="http://www.worldcat.org/oclc/17105155" />
<link itemprop="hasPart" itemscope itemtype="http://schema.org/CreativeWork" itemid="http://www.worldcat.org/oclc/297618476" />
<link itemprop="hasPart" itemscope itemtype="https://schema.org/CreativeWork" itemid="http://www.worldcat.org/oclc/68043906" />
<link itemprop="hasPart" itemscope itemtype="https://schema.org/CreativeWork" itemid="http://www.worldcat.org/oclc/17105155" />
<link itemprop="hasPart" itemscope itemtype="https://schema.org/CreativeWork" itemid="http://www.worldcat.org/oclc/297618476" />
</div>
<div itemscope itemtype="http://schema.org/Book" itemid="http://www.worldcat.org/oclc/68043906">
<div itemscope itemtype="https://schema.org/Book" itemid="http://www.worldcat.org/oclc/68043906">
<h1 itemprop="name">The Hitchhiker's guide to the galaxy. The quandry phase</h1>
<div>Author: <span itemprop="author" itemid="http://viaf.org/viaf/113230702">Douglas Adams</span></div>
<div>ISBN: <span itemprop="isbn">9781405699532</span></div>
<div>Format: <span itemprop="bookFormat" itemid="http://schema.org/AudioBook">AudioBook</span></div>
<link itemprop="isPartOf" itemscope itemtype="http://schema.org/Collection" itemid="http://example.org/colls/68" />
<div>Format: <span itemprop="bookFormat" itemid="https://schema.org/AudioBook">AudioBook</span></div>
<link itemprop="isPartOf" itemscope itemtype="https://schema.org/Collection" itemid="http://example.org/colls/68" />
</div>
<div itemscope itemtype="http://schema.org/Book" itemid="http://www.worldcat.org/oclc/17105155">
<div itemscope itemtype="https://schema.org/Book" itemid="http://www.worldcat.org/oclc/17105155">
<h1 itemprop="name">A brief history of time : from the big bang to black holes</h1>
<div>Author: <span itemprop="author" itemid="http://viaf.org/viaf/102304634">Stephen Hawking</span></div>
<link itemprop="isPartOf" itemscope itemtype="http://schema.org/Collection" itemid="http://example.org/colls/68" />
<link itemprop="isPartOf" itemscope itemtype="https://schema.org/Collection" itemid="http://example.org/colls/68" />
<div>ISBN: <span itemprop="isbn">055305340X</span></div>
</div>
<div itemscope itemtype="http://schema.org/Movie" itemid="http://www.worldcat.org/oclc/297618476">
<div itemscope itemtype="https://schema.org/Movie" itemid="http://www.worldcat.org/oclc/297618476">
<h1 itemprop="name">Back to the future</h1>
<div>Director: <span itemprop="director">Steven Spielberg</span></div>
<div>Production Company: <span itemprop="productionCompany">Universal Pictures</span></div>
<div>Format: <span itemprop="additionalType" itemtype="productontology.org/id/DVD">DVD</div>
<link itemprop="isPartOf" itemscope itemtype="http://schema.org/Collection" itemid="http://example.org/colls/68" />
<link itemprop="isPartOf" itemscope itemtype="https://schema.org/Collection" itemid="http://example.org/colls/68" />
</div>
</div>

RDFA:

<div vocab="http://schema.org/">
<div vocab="https://schema.org/">
<div typeof="Collection" resource="http://example.org/colls/68">
<h1 property="name">Eclectic Time</h1>
<div>Creator: <span property="creator">Twinkle T. Hose</span></div>
Expand All @@ -71,7 +71,7 @@ RDFA:
<h1 property="name">The Hitchhiker's guide to the galaxy. The quandry phase</h1>
<div>Author: <span property="author" itemid="http://viaf.org/viaf/113230702">Douglas Adams</span></div>
<div>ISBN: <span property="isbn">9781405699532</span></div>
<div>Format: <span property="bookFormat" itemid="http://schema.org/AudioBook">AudioBook</span></div>
<div>Format: <span property="bookFormat" itemid="https://schema.org/AudioBook">AudioBook</span></div>
<link property="isPartOf" resource="http://example.org/colls/68" />
</div>
<div typeof="Book" resource="http://www.worldcat.org/oclc/17105155">
Expand All @@ -97,7 +97,7 @@ JSON:
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfa": "http://www.w3.org/ns/rdfa#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"schema": "http://schema.org/",
"schema": "https://schema.org/",
"xsd": "http://www.w3.org/2001/XMLSchema#"
},
"@graph": [
Expand Down
10 changes: 5 additions & 5 deletions data/ext/bib/bsdo-newspaper-examples.txt
Expand Up @@ -15,16 +15,16 @@ MICRODATA:



<div itemscope itemtype="http://schema.org/Newspaper">
<div itemscope itemtype="https://schema.org/Newspaper">
<h1 itemprop="name">The Financial Times</h1>
<div>Publisher: <span itemprop="publisher" itemscope itemtype="http://schema.org/Organization" itemid="http://www.wikidata.org/entity/Q1916402">Pearson PLC</span></div>
<div>Publisher: <span itemprop="publisher" itemscope itemtype="https://schema.org/Organization" itemid="http://www.wikidata.org/entity/Q1916402">Pearson PLC</span></div>
<div>URL: <a itemprop="url" href="http://ft.com">http://ft.com</a></div>
<div>Editor: <span itemprop="editor" itemscope itemtype="http://schema.org/Person" itemid="http://www.wikidata.org/entity/6555518">Lionel Barber</span></div>
<div>Editor: <span itemprop="editor" itemscope itemtype="https://schema.org/Person" itemid="http://www.wikidata.org/entity/6555518">Lionel Barber</span></div>
</div>

RDFA:

<div vocab="http://schema.org/" typeof="Newspaper">
<div vocab="https://schema.org/" typeof="Newspaper">
<h1 property="name">The Financial Times</h1>
<div>Publisher: <span property="publisher" resource="http://www.wikidata.org/entity/Q1916402">Pearson PLC</span></div>
<div>URL: <a property="url" href="http://ft.com">http://ft.com</a></div>
Expand All @@ -39,7 +39,7 @@ JSON:
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfa": "http://www.w3.org/ns/rdfa#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"schema": "http://schema.org/",
"schema": "https://schema.org/",
"xsd": "http://www.w3.org/2001/XMLSchema#"
},
"@id": "",
Expand Down
6 changes: 3 additions & 3 deletions data/ext/bib/bsdo-thesis-examples.txt
Expand Up @@ -16,7 +16,7 @@ MICRODATA:



<div itemscope itemtype="http://schema.org/Thesis">
<div itemscope itemtype="https://schema.org/Thesis">
<h1 itemprop="name">Asian elephants are essential as seed dispersers in a disturbed tropical forest</h1>
<h2> A Thesis</h2>
<div>Author: <span itemprop="author">Sekar, Nitin, Ph.D.</span></div>
Expand All @@ -26,7 +26,7 @@ MICRODATA:

RDFA:

<div vocab="http://schema.org/" typeof="Thesis">
<div vocab="https://schema.org/" typeof="Thesis">
<h1 property="name">Asian elephants are essential as seed dispersers in a disturbed tropical forest</h1>
<h2> A Thesis</h2>
<div>Author: <span property="author">Sekar, Nitin, Ph.D.</span></div>
Expand All @@ -42,7 +42,7 @@ JSON:
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfa": "http://www.w3.org/ns/rdfa#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"schema": "http://schema.org/",
"schema": "https://schema.org/",
"xsd": "http://www.w3.org/2001/XMLSchema#"
},
"@id": "",
Expand Down
18 changes: 9 additions & 9 deletions data/ext/bib/bsdo-translation-examples.txt
Expand Up @@ -26,26 +26,26 @@ A CreativeWork and it's translation.
MICRODATA:

<div>
<div itemscope itemtype="http://schema.org/Book" itemid="http://worldcat.org/entity/work/id/2292573321">
<div itemscope itemtype="https://schema.org/Book" itemid="http://worldcat.org/entity/work/id/2292573321">
<h1><span itemprop="name">Rouge et le noir</span></h1>
<div>Author: <span itemprop="author" itemscope itemtype="http://schema.org/Person" itemid="http://viaf.org/viaf/17823">Stendhal</span></div>
<div>Author: <span itemprop="author" itemscope itemtype="https://schema.org/Person" itemid="http://viaf.org/viaf/17823">Stendhal</span></div>
<div>Language: <meta itemprop="inLanguage" content="fr" />French</div>
<div>Has Translation: <span itemprop="workTranslation" itemscope itemtype="http://schema.org/CreativeWork" itemid="http://worldcat.org/entity/work/id/460647">Red and Black : A New Translation, Backgrounds and Sources, Criticism</span></div>
<div>Has Translation: <span itemprop="workTranslation" itemscope itemtype="https://schema.org/CreativeWork" itemid="http://worldcat.org/entity/work/id/460647">Red and Black : A New Translation, Backgrounds and Sources, Criticism</span></div>
</div>
<div itemscope itemtype="http://schema.org/Book" itemid="http://worldcat.org/entity/work/id/460647">
<div itemscope itemtype="https://schema.org/Book" itemid="http://worldcat.org/entity/work/id/460647">
<h1><span itemprop="name">Red and Black : A New Translation, Backgrounds and Sources, Criticism</span></h1>
<div>Author: <span itemprop="author" itemscope itemtype="http://schema.org/Person" itemid="http://viaf.org/viaf/17823">Stendhal</span></div>
<div>Author: <span itemprop="author" itemscope itemtype="https://schema.org/Person" itemid="http://viaf.org/viaf/17823">Stendhal</span></div>
<div>Language: <meta itemprop="inLanguage" content="en" />English</div>
<div>Subject: <span itemprop="about">Psychological fiction, French</span></div>
<div>Translation of: <span itemprop="translationOfWork" itemscope itemtype="http://schema.org/CreativeWork" itemid="http://worldcat.org/entity/work/id/2292573321">Rouge et le noir</span></div>
<div>Translator: <span itemprop="translator" itemscope itemtype="http://schema.org/Person" itemid="http://viaf.org/viaf/8453420">Robert Martin Adams</span></div>
<div>Translation of: <span itemprop="translationOfWork" itemscope itemtype="https://schema.org/CreativeWork" itemid="http://worldcat.org/entity/work/id/2292573321">Rouge et le noir</span></div>
<div>Translator: <span itemprop="translator" itemscope itemtype="https://schema.org/Person" itemid="http://viaf.org/viaf/8453420">Robert Martin Adams</span></div>
</div>
</div>


RDFA:

<div vocab="http://schema.org/">
<div vocab="https://schema.org/">
<div typeof="Book" resource="http://worldcat.org/entity/work/id/2292573321">
<h1><span property="name">Rouge et le noir</span></h1>
<div>Author: <span property="author" typeof="Person" resource="http://viaf.org/viaf/17823">Stendhal</span></div>
Expand All @@ -66,7 +66,7 @@ JSON:

<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@context": "https://schema.org/",
"@graph": [
{
"@id": "http://worldcat.org/entity/work/id/2292573321",
Expand Down
26 changes: 13 additions & 13 deletions data/ext/bib/comics-examples.txt
Expand Up @@ -32,35 +32,35 @@ An issue of a comic book.

MICRODATA:

<div itemscope itemtype="http://schema.org/ComicSeries">
<div itemscope itemtype="https://schema.org/ComicSeries">
<h1 itemprop="name">TRUE BLOOD</h1>
<div itemprop="description">
TRUE BLOOD chronicles the backwoods Louisiana town of Bon Temps... in a
world where vampires have emerged from the coffin and no longer need humans for
their fix.
</div>
<div itemprop="publisher" itemscope itemtype="http://schema.org/Organization">Publisher:
<div itemprop="publisher" itemscope itemtype="https://schema.org/Organization">Publisher:
<span itemprop="name">IDW</span>
(<a itemprop="url" href="http://www.idwpublishing.com">http://www.idwpublishing.com</a>)
</div>
<ul>
<li itemprop="hasPart" itemscope itemtype="http://schema.org/ComicIssue">
<li itemprop="hasPart" itemscope itemtype="https://schema.org/ComicIssue">
Issue <span itemprop="issueNumber">13</span>
<div itemprop="hasPart" itemscope itemtype="http://schema.org/ComicStory">
<div itemprop="hasPart" itemscope itemtype="https://schema.org/ComicStory">
<span itemprop="name">HERE WE GO AGAIN PART 3: FEELING SINISTER</span>
<div itemprop="author" itemscope itemtype="http://schema.org/Person">Author:
<div itemprop="author" itemscope itemtype="https://schema.org/Person">Author:
<span itemprop="name">Michael McMillian</span>
</div>
<div itemprop="artist" itemscope itemtype="http://schema.org/Person">Art by:
<div itemprop="artist" itemscope itemtype="https://schema.org/Person">Art by:
<span itemprop="name">Beni Lobel</span>
</div>
<div itemprop="colorist" itemscope itemtype="http://schema.org/Person">Colors by:
<div itemprop="colorist" itemscope itemtype="https://schema.org/Person">Colors by:
<span itemprop="name">Esther Sanz</span>
</div>
<div itemprop="letterer" itemscope itemtype="http://schema.org/Person">Letters by:
<div itemprop="letterer" itemscope itemtype="https://schema.org/Person">Letters by:
<span itemprop="name">Neil Uyetake</span>
</div>
<div itemprop="editor" itemscope itemtype="http://schema.org/Person">Edits by:
<div itemprop="editor" itemscope itemtype="https://schema.org/Person">Edits by:
<span itemprop="name">Denton J. Tipton</span>
</div>
<div>Date published: <time itemprop="datePublished" datetime="2013-05">May 2013</time></div>
Expand All @@ -69,9 +69,9 @@ MICRODATA:
daylight, but does his best not to think about it.
</div>
</div>
<div itemprop="hasPart" itemscope itemtype="http://schema.org/ComicCoverArt">
<div itemprop="hasPart" itemscope itemtype="https://schema.org/ComicCoverArt">
<em itemprop="name">CVR B</em>
<div itemprop="creator" itemscope itemtype="http://schema.org/Person">Cover by:
<div itemprop="creator" itemscope itemtype="https://schema.org/Person">Cover by:
<span itemprop="name">Michael Gaydos</span>
</div>
</div>
Expand All @@ -81,7 +81,7 @@ MICRODATA:

RDFA:

<div vocab="http://schema.org/" typeof="ComicSeries">
<div vocab="https://schema.org/" typeof="ComicSeries">
<h1 property="name">TRUE BLOOD</h1>
<div property="description">
TRUE BLOOD chronicles the backwoods Louisiana town of Bon Temps... in a
Expand Down Expand Up @@ -131,7 +131,7 @@ RDFA:
JSON:
<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@context": "https://schema.org/",
"@type": "ComicSeries",
"description": "TRUE BLOOD chronicles the backwoods Louisiana town of Bon Temps... in a world where vampires have emerged from the coffin and no longer need humans for their fix.",
"name": "TRUE BLOOD",
Expand Down

0 comments on commit a45a5bf

Please sign in to comment.