json-ld / json-ld.org

JSON for Linked Data's documentation and playground site
https://json-ld.org/
Other
857 stars 152 forks source link

Use proper Wikidata URIs #664

Closed Tpt closed 6 years ago

Tpt commented 6 years ago

Wikidata entity URIs follow the pattern http://www.wikidata.org/entity/QXXX like http://www.wikidata.org/entity/Q42.

https://json-ld.org/spec/latest/json-ld-api-best-practices/ is using URIs like https://www.wikidata.org/wiki/Q76 that are the URIs of the Wikidata wiki pages describing the items.

todrobbins commented 6 years ago

Note though that Wikidata URIs are all https not http

elf-pavlik commented 6 years ago

This page suggest http https://www.wikidata.org/wiki/Wikidata:Data_access#Linked_Data_interface

Each item or property has a persistent URI that you obtain by appending its ID (such as Q42 or P12) to the Wikidata concept namespace: http://www.wikidata.org/entity/

Tpt commented 6 years ago

An other example: curl -L 'http://www.wikidata.org/entity/Q1' --header 'Accept: text/turtle' is going to return @prefix wd: <http://www.wikidata.org/entity/> and uses this prefix for the item UIs.

todrobbins commented 6 years ago

Interesting. Why the inconsistency then?