Skip to content

Update wikidata references… #665

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 8, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions spec/latest/json-ld-api-best-practices/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ <h2>Resource Representation</h2>
<pre class="example" title="Example message of type Person">
{
"@context": "http://schema.org",
"id": "https://www.wikidata.org/wiki/Q76",
"id": "http://www.wikidata.org/entity/Q76",
<strong>"type": "Person"</strong>,
"name": "Barack Obama",
"givenName": "Barack",
Expand All @@ -201,15 +201,15 @@ <h2>Resource Representation</h2>
<pre class="example" title="Example JSON-LD identifying a person">
{
"@context": "http://schema.org",
<strong>"id": "https://www.wikidata.org/wiki/Q76"</strong>,
<strong>"id": "http://www.wikidata.org/entity/Q76"</strong>,
"type": "Person",
"name": "Barack Obama",
"givenName": "Barack",
"familyName": "Obama",
"jobTitle": "44th President of the United States"
}
</pre>
<p class="note">There is often ambiguous if an identifier is about the entity being described, or directly represents that entity. As an example, Barack Obama may have a Wikidata entry <code>https://www.wikidata.org/wiki/Q76</code>, but it would be a mistake to say that <code>https://www.wikidata.org/wiki/Q76</code> <em>is</em> Barack Obama. However, it is common to use this pattern, particularly if the <strong>type</strong> of the entity describes a Person, rather than a WebPage.</p>
<p class="note">There is often ambiguous if an identifier is about the entity being described, or directly represents that entity. As an example, Barack Obama may have a Wikidata entry <code>http://www.wikidata.org/entity/Q76</code>, but it would be a mistake to say that <code>http://www.wikidata.org/entity/Q76</code> <em>is</em> Barack Obama. However, it is common to use this pattern, particularly if the <strong>type</strong> of the entity describes a Person, rather than a WebPage.</p>
</div>

<div class="practice">
Expand All @@ -225,7 +225,7 @@ <h2>Resource Representation</h2>
<pre class="example" title="Example typed relationship">
{
"@context": "http://schema.org",
"id": "https://www.wikidata.org/wiki/Q76",
"id": "http://www.wikidata.org/entity/Q76",
"type": "Person",
"name": "Barack Obama",
"givenName": "Barack",
Expand All @@ -250,7 +250,7 @@ <h2>Resource Representation</h2>
"@context": ["http://schema.org", <strong>{
"image": { "@id": "schema:image", "@type": "@id"}
}</strong>],
"id": "https://www.wikidata.org/wiki/Q76",
"id": "http://www.wikidata.org/entity/Q76",
"type": "Person",
"name": "Barack Obama",
"givenName": "Barack",
Expand All @@ -268,17 +268,17 @@ <h2>Resource Representation</h2>
<pre class="example" title="Nested relationships">
{
"@context": "http://schema.org",
"id": "https://www.wikidata.org/wiki/Q76",
"id": "http://www.wikidata.org/entity/Q76",
"type": "Person",
"name": "Barack Obama",
"givenName": "Barack",
"familyName": "Obama",
"jobTitle": "44th President of the United States",
<strong>"spouse": {
"id": "https://www.wikidata.org/wiki/Q13133",
"id": "http://www.wikidata.org/entity/Q13133",
"type": "Person",
"name": "Michelle Obama",
"spouse": "https://www.wikidata.org/wiki/Q76"
"spouse": "http://www.wikidata.org/entity/Q76"
}</strong>
}
</pre>
Expand All @@ -294,7 +294,7 @@ <h2>Resource Representation</h2>
"@context": ["http://schema.org", <strong>{
"gender": {"@id": "schema:gender", "@type": "@vocab"}
}</strong>],
"id": "https://www.wikidata.org/wiki/Q76",
"id": "http://www.wikidata.org/entity/Q76",
"type": "Person",
"name": "Barack Obama",
"givenName": "Barack",
Expand Down