Last modified: 2014-10-13 11:42:29 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T44063, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42063 - Provide a plain linked data interface for accessing entities (story)
Provide a plain linked data interface for accessing entities (story)
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=story p=0
: tracking
Depends on: 48143 50661 71992 44098 44574 44575 44576 44577 44582
Blocks: tracking
  Show dependency treegraph
 
Reported: 2012-11-13 12:52 UTC by Daniel Kinzler
Modified: 2014-10-13 11:42 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Daniel Kinzler 2012-11-13 12:52:05 UTC
In the spirit of the linked data web, entity URIs should resolve to a machine readable representation of the respective entity. While the API and Special:Export already provide access to this data, their output contains wrapper structures and meta-information that does not belong to the entity denoted by the URI. 

To provide a machine readable representation of the entity, a special page should be created that generates the canonical JSON representation for a given entity. URL rewriting can then be used to make this special page accessible via a canonical URI/URL schema, as described by <https://meta.wikimedia.org/wiki/Wikidata/Notes/URI_scheme#Machine-readable_access>. The representation returned by the data endpoint should be consistent with the representation used in the web API (no necessarily with the internal representation, which is exposed by Special:Export and does not even need to be JSON).

Care should be taken to allow caching of this data on the HTTP level, making use of the appropriate Cache-Control, ETag and If-Modified-Since headers.
Comment 1 Daniel Kinzler 2012-11-15 21:06:12 UTC
See I4c9f7703 for a baseline implementation
Comment 2 Daniel Kinzler 2012-11-21 16:27:56 UTC
Still to do: 

* content negotiation
* http headers, caching, IMS
* use fake file extensions to determine format
* allow loading specific revisions, via parameter or magic q123@45678 syntax
* Show input form if no entity is specified.
Comment 3 Silke Meyer (WMDE) 2012-11-22 16:27:39 UTC
no commitment in sprint 24
Comment 4 Anja Jentzsch 2013-02-13 16:48:03 UTC
Picked up in sprint 32.
Comment 5 Anja Jentzsch 2013-02-27 14:55:07 UTC
https://gerrit.wikimedia.org/r/#/c/51164/
Comment 6 Daniel Kinzler 2013-04-25 15:37:15 UTC
Ie9f2f894 provides a baseline, but is not complete.
Comment 7 Daniel Kinzler 2013-04-25 15:48:06 UTC
Besides the incomplete RDF mapping (covered by bug 44578), and content negotiation (bug 44576), there are some issues remaining with the HTTP interaction:

* honor IfModifiedSince
* send Last-Modified
* make MaxAge configurable
* make sure Cache-Control headers are not overridden by core code
* make sure the correct Content-Length is sent.

Besides this, the inclusion of meta-info (like the revision ID) is currently unclear.

Also, the input form show to the user is very rudimentary and could use some polishing (file a bug for that?).
Comment 8 Gerrit Notification Bot 2013-05-06 14:53:46 UTC
https://gerrit.wikimedia.org/r/51164 (Gerrit Change Ie9f2f8944a65750077152a69923c0a0b18a49d5e) | change APPROVED and MERGED [by Daniel Werner]
Comment 9 Daniel Kinzler 2013-05-06 14:57:23 UTC
turning this into a user story / top level tracking bug.
Comment 10 Gerrit Notification Bot 2013-05-08 10:14:48 UTC
Related URL: https://gerrit.wikimedia.org/r/62796 (Gerrit Change I8ceba8abf3a4f0ab0f472a44d1482cd7169f2da1)
Comment 11 Gerrit Notification Bot 2013-05-08 10:40:25 UTC
https://gerrit.wikimedia.org/r/62796 (Gerrit Change I8ceba8abf3a4f0ab0f472a44d1482cd7169f2da1) | change APPROVED and MERGED [by Tobias Gritschacher]

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links