1 wdef_tools - Collection of tools to work with Wdef files.
3 Repository: https://git.choffet.net/?p=wdef_tools.git
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.
10 Runtime dependencies are:
11 - Bash - https://www.gnu.org/software/bash/
12 Shell script interpreter
14 - Wikibase-cli - https://github.com/maxlath/wikibase-cli
15 Interface to Wikidata operations
17 - Xmlstarlet - http://xmlstar.sourceforge.net/
18 XSD and XSLT processor
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.
25 - scripts/get_qid_from_property.sh
26 Search Wikidata elements based on a value, return its QID when found.
28 - xslts/canonicalize.xslt
29 Return a wdef under its normal form.
31 - xslts/merge_rdf.xslt
32 Read a Wikidata RDF and remove already known values in a wdef file.
34 - xslts/remove_labels_descriptions.xslt
35 Return a wdef with labels and description removed for a given element.
37 - xslts/replace_id.xslt
38 Change the wdef:id of an element and its references.