Is this sufficient as API to read mappings? #34
Unanswered
JeroenDeDauw
asked this question in
QA
Replies: 1 comment 7 replies
-
This syntax looks correct to me, my only question is whether there would be an option for this API to pull all mappings from across the entire wikibase, eg if you do not know the corresponding Q/P number but want to pull which Wikibase entity corresponds with a certain object. It would be far more convenient to pull all mappings and filter, rather than loop through all entities. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@despens @lozanaross @paulduchesne We have added a REST API endpoint to retrieve the mappings for an entity at
rest.php/wikibase-rdf/v0/mappings/Q1
. This API returns the mappings in a JSON format. You can use the same API to write mappings to an entity via the same JSON format. So this can be used to export and import mappings.Question: do we need any additional APIs in this extension to export mapping information? And is the JSON format fine, or should it be changed somehow?
Browser view on the read API:
JSON returned by the read API:
Beta Was this translation helpful? Give feedback.
All reactions