Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/schemaorg/schemaorg
Browse files Browse the repository at this point in the history
  • Loading branch information
Dataliberate committed Jul 16, 2019
2 parents fa717a2 + 2a5d754 commit a723035
Show file tree
Hide file tree
Showing 31 changed files with 324 additions and 405 deletions.
10 changes: 5 additions & 5 deletions data/examples.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ TYPES: #eg-1 Person,PostalAddress,addressRegion,postalCode,address,streetAddress
PRE-MARKUP:

Jane Doe
<img src="janedoe.jpg" alt="Photo of Jane Joe"/>
<img src="janedoe.jpg" alt="Photo of Jane Doe"/>

Professor
20341 Whitworth Institute
Expand All @@ -23,7 +23,7 @@ MICRODATA:

<div itemscope itemtype="http://schema.org/Person">
<span itemprop="name">Jane Doe</span>
<img src="janedoe.jpg" itemprop="image" alt="Photo of Jane Joe"/>
<img src="janedoe.jpg" itemprop="image" alt="Photo of Jane Doe"/>

<span itemprop="jobTitle">Professor</span>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
Expand Down Expand Up @@ -53,7 +53,7 @@ RDFA:

<div vocab="http://schema.org/" typeof="Person">
<span property="name">Jane Doe</span>
<img src="janedoe.jpg" property="image" alt="Photo of Jane Joe"/>
<img src="janedoe.jpg" property="image" alt="Photo of Jane Doe"/>

<span property="jobTitle">Professor</span>
<div property="address" typeof="PostalAddress">
Expand Down Expand Up @@ -9998,8 +9998,8 @@ JSON:
"@type": "OpeningHoursSpecification",
"validFrom": "2013-12-24",
"validThrough": "2013-12-25",
"opens": "09:00",
"closes": "11:00"
"opens": "09:00:00",
"closes": "11:00:00"
},
{
"@type": "OpeningHoursSpecification",
Expand Down
6 changes: 3 additions & 3 deletions data/ext/bib/bsdo-atlas-examples.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ MICRODATA:
<div itemscope itemtype="http://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="bookEdition">7th ed.</span></div>
<div>Publisher: <span itemprop="disambiguatingDescription">7th ed.</span></div>
<div>Publisher: <span itemprop="publisher">National Geographic Society</span></div>
<div>Published: <span itemprop="datePublished">1999</span></div>
</div>
Expand All @@ -29,7 +29,7 @@ RDFA:
<div vocab="http://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="bookEdition">7th ed.</span></div>
<div>Edition: <span property="disambiguatingDescription">7th ed.</span></div>
<div>Publisher: <span property="publisher">National Geographic Society</span></div>
<div>Published: <span property="datePublished">1999</span></div>
</div>
Expand All @@ -52,7 +52,7 @@ JSON:
"@type": "schema:Atlas",
"schema:name": "Atlas of the World",
"schema:alternateName": "National Geographic atlas of the world",
"schema:bookEdition": "7th ed.",
"schema:disambiguatingDescription": "7th ed.",
"schema:datePublished": "1999",
"schema:publisher": "National Geographic Society"
}
Expand Down
6 changes: 3 additions & 3 deletions data/ext/bib/bsdo-audiobook-examples.txt
Original file line number Diff line number Diff line change
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: <datetype itemprop="duration" content="P13H31M">1 sound file (13 hr., 31 min.) : digital</datetime></p>
<p>Description: <datetype itemprop="duration" content="PT13H31M">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: <datetime property="duration" content="P13H31M">1 sound file (13 hr., 31 min.) : digital</datetime></p>
<p>Description: <datetime property="duration" content="PT13H31M">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": "P13H31M",
"schema:duration": "PT13H31M",
"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
2 changes: 1 addition & 1 deletion data/ext/bib/bsdo-collection-examples.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ MICRODATA:
<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="alternateType" itemtype="productontology.org/id/DVD">DVD</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" />
</div>
</div>
Expand Down
64 changes: 32 additions & 32 deletions data/ext/bib/bsdo-translation-examples.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,38 +65,38 @@ RDFA:
JSON:

<script type="application/ld+json">
{
"@context": "http://schema.org/",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"@graph": [
{
"@id": "http://worldcat.org/entity/work/id/2292573321",
"@type": "Book",
"author": {
"@id": "http://viaf.org/viaf/17823"
},
"inLanguage": "fr",
"name": "Rouge et le noir",
"workTranslation": {
"@id": "http://worldcat.org/entity/work/id/460647"
}
},
{
"@id": "http://worldcat.org/entity/work/id/460647",
"@type": "Book",
"about": "Psychological fiction, French",
"author": {
"@id": "http://viaf.org/viaf/17823"
},
"inLanguage": "en",
"name": "Red and Black : A New Translation, Backgrounds and Sources, Criticism",
"translationOfWork": {
"@id": "http://worldcat.org/entity/work/id/2292573321"
},
"translator": {
"@id": "http://viaf.org/viaf/8453420"
}
"@context": "http://schema.org/",
"@graph": [
{
"@id": "http://worldcat.org/entity/work/id/2292573321",
"@type": "Book",
"author": {
"@id": "http://viaf.org/viaf/17823"
},
"inLanguage": "fr",
"name": "Rouge et le noir",
"workTranslation": {
"@type": "Book",
"@id": "http://worldcat.org/entity/work/id/460647"
}
},
{
"@id": "http://worldcat.org/entity/work/id/460647",
"@type": "Book",
"about": "Psychological fiction, French",
"author": {
"@id": "http://viaf.org/viaf/17823"
},
"inLanguage": "en",
"name": "Red and Black : A New Translation, Backgrounds and Sources, Criticism",
"translationOfWork": {
"@id": "http://worldcat.org/entity/work/id/2292573321"
},
"translator": {
"@id": "http://viaf.org/viaf/8453420"
}
}
]
}
]
}
</script>
10 changes: 5 additions & 5 deletions data/ext/health-lifesci/MedicalScholarlyArticle-examples.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ MICRODATA:
<h3>Guidelines</h3>
<span itemscope itemtype="http://schema.org/MedicalGuidelineRecommendation">
Recommendation: we recommend monotherapy with
<span itemprop="subject">metformin</span> as an initial pharmacologic therapy
to treat most patients with <span itemprop="subject">type 2 diabetes</span>
<span itemprop="guidelineSubject">metformin</span> as an initial pharmacologic therapy
to treat most patients with <span itemprop="guidelineSubject">type 2 diabetes</span>
(Grade: <span itemprop="recommendationStrength">strong recommendation</span>;
<a itemprop="evidenceLevel" href="http://schema.org/EvidenceLevelA">high-quality
evidence</a>).
Expand Down Expand Up @@ -111,8 +111,8 @@ RDFA:
<h3>Guidelines</h3>
<span typeof="MedicalGuidelineRecommendation">
Recommendation: we recommend monotherapy with
<span property="subject">metformin</span> as an initial pharmacologic therapy
to treat most patients with <span property="subject">type 2 diabetes</span>
<span property="guidelineSubject">metformin</span> as an initial pharmacologic therapy
to treat most patients with <span property="guidelineSubject">type 2 diabetes</span>
(Grade: <span property="recommendationStrength">strong recommendation</span>;
<a property="evidenceLevel" href="http://schema.org/EvidenceLevelA">high-quality
evidence</a>).
Expand Down Expand Up @@ -159,7 +159,7 @@ JSON:
"name": "New guidelines for metformin and diabetes mellitus",
"publicationType": "Meta-Analysis",
"recommendationStrength": "strong recommendation",
"subject": [
"guidelineSubject": [
"metformin",
"type 2 diabetes"
]
Expand Down
20 changes: 10 additions & 10 deletions data/ext/health-lifesci/medicalGuideline-examples.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ MICRODATA:
<ul>
<li>Recommendation:
<span itemscope itemtype="http://schema.org/MedicalGuidelineRecommendation">
<span itemprop="subject" itemscope itemtype="http://schema.org/Drug">
<span itemprop="guidelineSubject" itemscope itemtype="http://schema.org/Drug">
<span itemprop="name">NewvoDrug</span>
</span>
is indicated for initial treatment of
<span itemprop="subject" itemscope itemtype="http://schema.org/MedicalCondition">
<span itemprop="guidelineSubject" itemscope itemtype="http://schema.org/MedicalCondition">
<span itemprop="name">cardiac failure</span>
</span>
for all adult patients.
Expand All @@ -33,10 +33,10 @@ MICRODATA:
</li>
<li>Contraindication:
<span itemscope itemtype="http://schema.org/MedicalGuidelineContraindication">
<span itemprop="subject" itemscope itemtype="http://schema.org/MedicalCondition">
<span itemprop="guidelineSubject" itemscope itemtype="http://schema.org/MedicalCondition">
<span itemprop="name">cardiac failure</span></span> should never
be treated with
<span itemprop="subject" itemscope itemtype="http://schema.org/TherapeuticProcedure">
<span itemprop="guidelineSubject" itemscope itemtype="http://schema.org/TherapeuticProcedure">
<span itemprop="name">appendectomy</span></span> in adults.
(Class III, <link itemprop="evidenceLevel" href="http://schema.org/EvidenceLevelC"/>
<span itemprop="evidenceOrigin">standard of care</span></a>)
Expand All @@ -49,11 +49,11 @@ RDFA:
<ul>
<li>Recommendation:
<span typeof="MedicalGuidelineRecommendation">
<span property="subject" typeof="Drug">
<span property="guidelineSubject" typeof="Drug">
<span property="name">NewvoDrug</span>
</span>
is indicated for initial treatment of
<span property="subject" typeof="MedicalCondition">
<span property="guidelineSubject" typeof="MedicalCondition">
<span property="name">cardiac failure</span>
</span>
for all adult patients.
Expand All @@ -66,10 +66,10 @@ RDFA:
</li>
<li>Contraindication:
<span typeof="MedicalGuidelineContraindication">
<span property="subject" typeof="MedicalCondition">
<span property="guidelineSubject" typeof="MedicalCondition">
<span property="name">cardiac failure</span></span> should never
be treated with
<span property="subject" typeof="TherapeuticProcedure">
<span property="guidelineSubject" typeof="TherapeuticProcedure">
<span property="name">appendectomy</span></span> in adults.
(Class III, <link property="evidenceLevel" href="http://schema.org/EvidenceLevelC"/>
<span property="evidenceOrigin">standard of care</span></a>)
Expand All @@ -87,7 +87,7 @@ JSON:
"evidenceLevel": "http://schema.org/EvidenceLevelA",
"evidenceOrigin": "multiple randomized clinical trials",
"recommendationStrength": "Strong recommendation",
"subject": [
"guidelineSubject": [
{
"@type": "Drug",
"name": "NewvoDrug"
Expand All @@ -102,7 +102,7 @@ JSON:
"@type": "MedicalGuidelineContraindication",
"evidenceLevel": "http://schema.org/EvidenceLevelC",
"evidenceOrigin": "standard of care",
"subject": [
"guidelineSubject": [
{
"@type": "MedicalCondition",
"name": "cardiac failure"
Expand Down
22 changes: 11 additions & 11 deletions data/ext/health-lifesci/medicalWebpage-examples.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@ MICRODATA:
(<span itemprop="name">hypertension</span>)</span>
</h1>
...
<h2><span itemprop="aspect">Diagnosis</span></h2>
<h2><span itemprop="mainContentOfPage">Diagnosis</span></h2>
High blood pressure is diagnosed by measuring ...
...
<h2><span itemprop="aspect">Treatment</span></h2>
<h2><span itemprop="mainContentOfPage">Treatment</span></h2>
There are many common treatments for high blood pressure,
including
<span itemscope itemtype="http://schema.org/DrugClass">
<span itemprop="name">beta-blocker</span> drugs such as
<span itemprop="drug" itemscope itemtype="http://schema.org/Drug">
<span itemprop="nonProprietaryName">propanaolol</span>
(<span itemprop="otherName">Innopran</span>)
(<span itemprop="alternateName">Innopran</span>)
</span>
and
<span itemprop="drug" itemscope itemtype="http://schema.org/Drug">
<span itemprop="nonProprietaryName">atenolol</span>
(<span itemprop="otherName">Tenormin</span>)
(<span itemprop="alternateName">Tenormin</span>)
</span> ...
...
</body>
Expand All @@ -56,22 +56,22 @@ RDFA:
(<span property="name">hypertension</span>)</span>
</h1>
...
<h2><span property="aspect">Diagnosis</span></h2>
<h2><span property="mainContentOfPage">Diagnosis</span></h2>
High blood pressure is diagnosed by measuring ...
...
<h2><span property="aspect">Treatment</span></h2>
<h2><span property="mainContentOfPage">Treatment</span></h2>
There are many common treatments for high blood pressure,
including
<span typeof="DrugClass">
<span property="name">beta-blocker</span> drugs such as
<span property="drug" typeof="Drug">
<span property="nonProprietaryName">propanaolol</span>
(<span property="otherName">Innopran</span>)
(<span property="alternateName">Innopran</span>)
</span>
and
<span property="drug" typeof="Drug">
<span property="nonProprietaryName">atenolol</span>
(<span property="otherName">Tenormin</span>)
(<span property="alternateName">Tenormin</span>)
</span> ...
...
</body>
Expand All @@ -89,7 +89,7 @@ JSON:
"hypertension"
]
},
"aspect": [
"mainContentOfPage": [
"Diagnosis",
"Treatment"
],
Expand All @@ -98,12 +98,12 @@ JSON:
{
"@type": "Drug",
"nonProprietaryName": "propanaolol",
"otherName": "Innopran"
"alternateName": "Innopran"
},
{
"@type": "Drug",
"nonProprietaryName": "atenolol",
"otherName": "Tenormin"
"alternateName": "Tenormin"
}
],
"lastReviewed": "2011-09-14",
Expand Down
23 changes: 2 additions & 21 deletions data/ext/pending/issue-1045-examples.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,6 @@ JSON:
</script>


TYPES: #datafeed-4 ReserveAction, LinkRole

PRE-MARKUP:

A restaurant has links to reserve tables. One caters to Japanese speakers.

MICRODATA:

Example is JSON-LD only.

RDFA:

Example is JSON-LD only.

JSON:

<script type="application/ld+json">
TYPES: #datafeed-3 ReserveAction, LinkRole

PRE-MARKUP:
Expand All @@ -71,13 +54,11 @@ JSON:
{
"@context": "http://schema.org/",
"@type": "Article",
"url": [
"http://www.example.com/article",
{
"url": "http://www.example.com/article",
"url": {
"@type": "LinkRole",
"url": "http://www.example.com/article-amp",
"linkRelationship": "amphtml"
}
]
}
</script>
Loading

0 comments on commit a723035

Please sign in to comment.