Skip to content

An api to compare a wikidata item with an entityschema

License

Notifications You must be signed in to change notification settings

Teester/entityshape

Repository files navigation

entityshape

An API to compare a Wikidata item with an EntitySchema. The API is available at http://entityshape.toolforge.org/api.

The API requires the following parameters to be provided with requests:

  1. language: e.g. en the language to return property names in
  2. entity: e.g. Q42 the Wikidata entity to check
  3. entityschema: e.g. E14 the EntitySchema to check against

The API returns a JSON object containing the following:

  1. error: details of any error which may have occurred
  2. schema: the EntitySchema checked against
  3. name: the display name of the EntitySchema
  4. validity: the validity of the schema (currently unused)
  5. properties: a json object describing the validity of each property in the entity
  6. statements: a json object describing the validity of each statement in the entity

This repository also contains the source code for the user script at https://www.wikidata.org/wiki/User:Teester/EntityShape.js, which allows use of this API on Wikidata entity pages.

About

An api to compare a wikidata item with an entityschema

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published