diff --git a/draft/examples/manifest/valid/wikidata.json b/draft/examples/manifest/valid/wikidata.json index 536c05b..75b297f 100644 --- a/draft/examples/manifest/valid/wikidata.json +++ b/draft/examples/manifest/valid/wikidata.json @@ -82,5 +82,6 @@ "type": true, "entity": true, "property": true - } + }, + "standardizedScore": true } diff --git a/draft/index.html b/draft/index.html index 19467f8..4f9f1b2 100644 --- a/draft/index.html +++ b/draft/index.html @@ -240,7 +240,7 @@

This Draft

  • Remove identifierSpace and schemaSpace and make view templates mandatory
  • Remove support for JSONP
  • Move the query field of reconciliation queries inside properties to allow for queries which do not provide entity names
  • -
  • Unify naming to camelCase convention
  • +
  • Add optional standardizedScore field to the manifest
  • @@ -393,6 +393,8 @@

    Service Manifest

    An optional value for the default text-processing language used by this service.
    dir
    An optional value for the default text direction used by this service.
    +
    standardizedScore
    +
    An optional boolean indicating if the service returns values between 0 and 100 (inclusive) in the score field of reconciliation candidates. This enables clients to process and display candidates accordingly, e.g. with score percentages or visualizations.

    For instance, a service could expose the following minimal service manifest: @@ -569,7 +571,7 @@

    Reconciliation Query Responses

    type
    The types of the candidate entity;
    score
    -
    An optional numeral indicating how well this candidate entity matches the query: a higher score indicates a better match. If candidates are scored, the reconciliation service SHOULD sort candidates in decreasing score order; +
    An optional numeral indicating how well this candidate entity matches the query: a higher score indicates a better match. If candidates are scored, the reconciliation service SHOULD sort candidates in decreasing score order. If standardizedScore is set to true in the service manifest, this value MUST be between 0 and 100 (inclusive);
    features
    An optional array of matching features;
    match
    diff --git a/draft/schemas/manifest.json b/draft/schemas/manifest.json index 934410a..e500a9d 100644 --- a/draft/schemas/manifest.json +++ b/draft/schemas/manifest.json @@ -254,6 +254,10 @@ } } } + }, + "standardizedScore": { + "type": "boolean", + "description": "Whether the service returns values between 0 and 100 (inclusive) in the score field of reconciliation candidates" } }, "required": [