Skip to content

Commit bd54a4b

Browse files
authored
Merge pull request #188 from reconciliation-api/add-image
Add 'image' field to entities
2 parents 6661975 + a2be044 commit bd54a4b

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

1.0-draft/examples/suggest-entities-response/valid/example.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
{
44
"name": "cumulonimbus",
55
"description": "genus of clouds, dense towering vertical cloud associated with thunderstorms and atmospheric instability",
6+
"image": "https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/Anvil_shaped_cumulus_panorama_edit.jpg/640px-Anvil_shaped_cumulus_panorama_edit.jpg",
67
"id": "Q182311",
78
"notable": [
89
{

1.0-draft/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ <h3 data-link-for="entities">Entities</h3>
275275
<dd>a <emph>name</emph>, which is also a non-empty string;</dd>
276276
<dt><code>description</code></dt>
277277
<dd>an optional <emph>description</emph> as a human-readable string;</dd>
278+
<dt><code>image</code></dt>
279+
<dd>an optional URL of an <emph>image</emph> which illustrates the entity;</dd>
278280
<dt><code>type</code></dt>
279281
<dd>an array of <a>types</a>, possibly empty;</dd>
280282
</dl>
@@ -761,6 +763,8 @@ <h3>Suggest Responses</h3>
761763
<dd>Its corresponding human-readable name, to be displayed prominently to the user;</dd>
762764
<dt><code>description</code></dt>
763765
<dd>An optional description which can be provided to disambiguate namesakes, providing more context. This could for instance be displayed underneath the <code>name</code>;</dd>
766+
<dt><code>image</code></dt>
767+
<dd>An optional URL of an image illustrating the entity, helping the user identify the entity visually. This image could for instance be displayed alongside the <code>name</code> and <code>description</code>;</dd>
764768
<dt><code>notable</code></dt>
765769
<dd>When suggesting entities only, this field can be used to supply some important types (not necessarily all types) of the suggested entity. The value must be an array of either type identifiers (as strings) or type objects, containing an <code>id</code> and <code>name</code> field which represent the type.</dd>
766770
<dt><code>matchQualifiers</code></dt>

1.0-draft/schemas/reconciliation-result-batch.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
"type": "string",
3131
"description": "Optional description of the candidate entity"
3232
},
33+
"image": {
34+
"type": "string",
35+
"description": "Optional URL of an image illustrating the entity"
36+
},
3337
"score": {
3438
"type": "number",
3539
"description": "Number indicating how likely it is that the candidate matches the query"

1.0-draft/schemas/suggest-entities-response.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
"type": "string",
2222
"description": "An optional description which can be provided to disambiguate namesakes, providing more context."
2323
},
24+
"image": {
25+
"type": "string",
26+
"description": "An optional URL of an image which illustrates the entity, letting users identify it visually."
27+
},
2428
"notable": {
2529
"type": "array",
2630
"description": "Types the suggest entity belongs to",

0 commit comments

Comments
 (0)