As a tool developer I want the Action API to replicate the same response to EntitySchemas in statements as other Wikibase Entities in order to have a more seamless experience
Problem:
From @Pintoch: As a tool developer, I observe that the API exposes those values as string data values and not entities: https://test.wikidata.org/w/api.php?action=wbgetentities&ids=Q497.
In this screenshot, you can see that the Action API returns the type for the EntitySchema data-value in a statement as string rather than wikibase-entityid as it does for item values.
To maintain consistency with other Semantic Entities and a good UX we will use wikibase-entityid for the EntitySchema data value type.
BDD
GIVEN statement using the EntitySchema data type
AND Action API
WHEN Action API returns the statement
THEN the EntitySchema data-value is returned as wikibase-entityid
Acceptance criteria:
- An EntitySchema data-value is returned as a wikibase-entityid data-value type when accessed through the Action API
Open questions
Could returning the EntitySchema value as entityschemaid be a solution?