Skip to content

Commit aff9169

Browse files
authored
Merge pull request #665 from json-ld/wikidata-URIs
Update wikidata references…
2 parents 247c747 + 78fc0a7 commit aff9169

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

spec/latest/json-ld-api-best-practices/index.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ <h2>Resource Representation</h2>
185185
<pre class="example" title="Example message of type Person">
186186
{
187187
"@context": "http://schema.org",
188-
"id": "https://www.wikidata.org/wiki/Q76",
188+
"id": "http://www.wikidata.org/entity/Q76",
189189
<strong>"type": "Person"</strong>,
190190
"name": "Barack Obama",
191191
"givenName": "Barack",
@@ -201,15 +201,15 @@ <h2>Resource Representation</h2>
201201
<pre class="example" title="Example JSON-LD identifying a person">
202202
{
203203
"@context": "http://schema.org",
204-
<strong>"id": "https://www.wikidata.org/wiki/Q76"</strong>,
204+
<strong>"id": "http://www.wikidata.org/entity/Q76"</strong>,
205205
"type": "Person",
206206
"name": "Barack Obama",
207207
"givenName": "Barack",
208208
"familyName": "Obama",
209209
"jobTitle": "44th President of the United States"
210210
}
211211
</pre>
212-
<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>
212+
<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>
213213
</div>
214214

215215
<div class="practice">
@@ -225,7 +225,7 @@ <h2>Resource Representation</h2>
225225
<pre class="example" title="Example typed relationship">
226226
{
227227
"@context": "http://schema.org",
228-
"id": "https://www.wikidata.org/wiki/Q76",
228+
"id": "http://www.wikidata.org/entity/Q76",
229229
"type": "Person",
230230
"name": "Barack Obama",
231231
"givenName": "Barack",
@@ -250,7 +250,7 @@ <h2>Resource Representation</h2>
250250
"@context": ["http://schema.org", <strong>{
251251
"image": { "@id": "schema:image", "@type": "@id"}
252252
}</strong>],
253-
"id": "https://www.wikidata.org/wiki/Q76",
253+
"id": "http://www.wikidata.org/entity/Q76",
254254
"type": "Person",
255255
"name": "Barack Obama",
256256
"givenName": "Barack",
@@ -268,17 +268,17 @@ <h2>Resource Representation</h2>
268268
<pre class="example" title="Nested relationships">
269269
{
270270
"@context": "http://schema.org",
271-
"id": "https://www.wikidata.org/wiki/Q76",
271+
"id": "http://www.wikidata.org/entity/Q76",
272272
"type": "Person",
273273
"name": "Barack Obama",
274274
"givenName": "Barack",
275275
"familyName": "Obama",
276276
"jobTitle": "44th President of the United States",
277277
<strong>"spouse": {
278-
"id": "https://www.wikidata.org/wiki/Q13133",
278+
"id": "http://www.wikidata.org/entity/Q13133",
279279
"type": "Person",
280280
"name": "Michelle Obama",
281-
"spouse": "https://www.wikidata.org/wiki/Q76"
281+
"spouse": "http://www.wikidata.org/entity/Q76"
282282
}</strong>
283283
}
284284
</pre>
@@ -294,7 +294,7 @@ <h2>Resource Representation</h2>
294294
"@context": ["http://schema.org", <strong>{
295295
"gender": {"@id": "schema:gender", "@type": "@vocab"}
296296
}</strong>],
297-
"id": "https://www.wikidata.org/wiki/Q76",
297+
"id": "http://www.wikidata.org/entity/Q76",
298298
"type": "Person",
299299
"name": "Barack Obama",
300300
"givenName": "Barack",

0 commit comments

Comments
 (0)