]> Pierre Choffet | Git repositories - wdef_tools.git/blob - README
Add script to compare with Wikidata’s RDF
[wdef_tools.git] / README
1 wdef_tools - Collection of tools to work with Wdef files.
2
3 Repository: https://git.choffet.net/?p=wdef_tools.git
4
5
6 These tools are designed to work on valid Wdef files (see this repository for
7 more information: https://git.choffet.net/?p=wdef_schemas.git ). Behavior when
8 applying on non-compliant file is undefined.
9
10 Runtime dependencies are:
11 - Bash - https://www.gnu.org/software/bash/
12 Shell script interpreter
13
14 - Wikibase-cli - https://github.com/maxlath/wikibase-cli
15 Interface to Wikidata operations
16
17 - Xmlstarlet - http://xmlstar.sourceforge.net/
18 XSD and XSLT processor
19
20
21 Description of the provided tools:
22 - scripts/cache_rdf.sh
23 Ensure a Wikidata's RDF element is available in local cache, return its path.
24
25 - scripts/get_qid_from_property.sh
26 Search Wikidata elements based on a value, return its QID when found.
27
28 - xslts/canonicalize.xslt
29 Return a wdef under its normal form.
30
31 - xslts/merge_rdf.xslt
32 Read a Wikidata RDF and remove already known values in a wdef file.
33
34 - xslts/remove_labels_descriptions.xslt
35 Return a wdef with labels and description removed for a given element.
36
37 - xslts/replace_id.xslt
38 Change the wdef:id of an element and its references.