Skip to content

Instantly share code, notes, and snippets.

@despens
Created June 18, 2018 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save despens/f4bd4ce854de018e62f69a8e19f35dd4 to your computer and use it in GitHub Desktop.
Save despens/f4bd4ce854de018e62f69a8e19f35dd4 to your computer and use it in GitHub Desktop.
Suggestion for Wikibase Manifest format
{
"version": "1.0.2", // version of the manifest format
"mediawiki": {
"name": "Wikidata",
"root": "https://www.wikidata.org/wiki/",
"main_page": "https://www.wikidata.org/wiki/Wikidata:Main_Page",
"api": "https://www.wikidata.org/w/api.php"
"namespace": {
"item": "Item",
"property": "Property"
}
},
"wikibase": {
"query": {
"endpoint": "https://query.wikidata.org/",
"rate_limit": "TBD" // json expression of query service rate limiting setup
},
"prefix": { // full list from https://www.mediawiki.org/wiki/Wikibase/Indexing/RDF_Dump_Format#Full_list_of_prefixes
"wdata": "http://www.wikidata.org/wiki/Special:EntityData/",
"wd": "http://www.wikidata.org/entity/",
"wdt": "http://www.wikidata.org/prop/direct/",
"wdtn": "http://www.wikidata.org/prop/direct-normalized/",
"wds": "http://www.wikidata.org/entity/statement/",
"p": "http://www.wikidata.org/prop/",
"wdref": "http://www.wikidata.org/reference/",
"wdv": "http://www.wikidata.org/value/",
"ps": "http://www.wikidata.org/prop/statement/",
"psv": "http://www.wikidata.org/prop/statement/value/",
"psn": "http://www.wikidata.org/prop/statement/value-normalized/",
"pq": "http://www.wikidata.org/prop/qualifier/",
"pqv": "http://www.wikidata.org/prop/qualifier/value/",
"pqn": "http://www.wikidata.org/prop/qualifier/value-normalized/",
"pr": "http://www.wikidata.org/prop/reference/",
"prv": "http://www.wikidata.org/prop/reference/value/",
"prn": "http://www.wikidata.org/prop/reference/value-normalized/",
"wdno": "http://www.wikidata.org/prop/novalue/"
},
"properties": {
"formatter URI for RDF resource": "P1921",
"instance of": "P31",
"subclass of": "P279",
"properties_for_this_type": "P1963",
"media_files": ["P123", "P234"] // properties pointing to media files, TBD
},
"items": {
"entity": "Q35120", // root class, "thing"
"unique_identifier": ["Q88888", "Q777777"], // identifier classes
"ignore": ["Q1111", "Q22222"], // classes of items not to suggest
"default_globe": "Q7", // at the moment Earth is hard-coded into the query service
"default_calendar": "Q9" // is there a calendar hard-coded into the query service?
},
"constraints": {} // JSON representation of the constraints extensions config
},
"quickstatements": {
"endpoint": "https://quickstatements.wmflabs.org"
},
"reconciliation": {
"endpoint": "https://tools.wmflabs.org/openrefine-wikidata/en/api"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment