abian added a comment.

  When requesting data via the `Accept` HTTP header at least the following 
values are supported: application/json, application/vnd.php.serialized, 
text/n3, text/rdf+n3, text/turtle, application/x-turtle, application/n-triples, 
text/n-triples, text/plain, application/rdf+xml, application/xml, text/xml, 
application/ld+json. These values are just aliases (redirects) to the URLs with 
the extensions, some of these values are duplicates, and some of them (e.g., 
text/rdf+n3) aren't media types recognized by the IANA 
<https://www.iana.org/assignments/media-types/media-types.xhtml> either, but I 
do think these redirects are useful and guess they don't significantly increase 
the maintenance cost. In particular, redirecting some extensions to others 
might be simpler and more maintainable than what is done for header values 
<https://phabricator.wikimedia.org/diffusion/EWBA/browse/master/repo/includes/LinkedData/EntityDataFormatProvider.php>,
 and in that case I would wonder why not give back to users what they want when 
we know unambiguously what it is.

TASK DETAIL
  https://phabricator.wikimedia.org/T227712

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: abian
Cc: alaa_wmde, abian, Aklapper, darthmon_wmde, DannyS712, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Jonas, 
Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to