A project aimed at generating a DCAT-AP document for Wikibase installations in general and Wikidata in particular.
Takes into account access through:
- Content negotiation (various formats)
- MediaWiki api (various formats)
- JSON dumps (assumes that these are gziped)
Current result can be found at lokal-profil / dcat-wikidata.rdf
- Copy
config.example.jsontoconfig.jsonand change the contents to match your installation. Refer toconfig.explanations.jsonfor the individual configuration parameters. - Copy
catalog.example.jsonto a suitable place (e.g. on-wiki) and update the translations to fit your wikibase installation. Set this value ascatalog-i18nin the config file. - Create the dcatap.rdf file by running
php -r "require 'DCAT.php'; run('<PATH>');"where<PATH>is the relative path to the directory containing the dumps (if any) and where the dcatap.rdf file should be created.<PATH>can be left out if already supplied through thedirectoryparameter in the config file.
- Translations which are generic to the tool can be submitted as pull
requests and should be in the same format as the files in the
i18ndirectory. - Translations which are specific to a project/catalog are added to
the location specified in the
catalog-i18nparameter of the config file.