Skip to content

Commit

Permalink
[scripts] remove dataextend script from repository
Browse files Browse the repository at this point in the history
Bug: T377066
Change-Id: I04936952dc1da94f22ff8be2f400e0a9120d0b22
  • Loading branch information
xqt committed Dec 3, 2024
1 parent 7619a2d commit cb8b56b
Show file tree
Hide file tree
Showing 9 changed files with 55 additions and 17,787 deletions.
1 change: 0 additions & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,3 @@ exclude_patterns:
- "*.txt"
- "*.xml"
- "*.yml"
- "scripts/dataextend.py"
1 change: 0 additions & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ coverage:
- pywikibot/families/__init__.py
- pywikibot/scripts/preload_sites.py
- pywikibot/scripts/version.py
- scripts/dataextend.py
- scripts/maintenance/colors.py
- scripts/maintenance/make_i18n_dict.py
- scripts/userscripts/
Expand Down
48 changes: 47 additions & 1 deletion docs/scripts/archive.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Outdated core scripts
*********************

This list contains outdated scripts from :term:`core` banch which
aren't supported any longer. They aredeleted from repository.
aren't supported any longer. They are deleted from repository.

.. hint::
Feel free to reactivate any script at any time by creating a
Expand Down Expand Up @@ -61,6 +61,52 @@ The program expects a generator of category titles to be used
as suffix for creating new categories with a different base.


dataextend script
=================

**Script to add properties, identifiers and sources to WikiBase items**

In the basic usage, where no property is specified, item is the Q-number
of the item to work on.from html import unescape

If a property (P-number, or the special value 'Wiki' or 'Data') is
specified, only the data from that identifier are added. With a '+'
after it, work starts on that identifier, then goes on to identifiers
after that (including new identifiers added while working on those
identifiers). With a '*' after it, the identifier itself is skipped, but
those coming after it (not those coming before it) are included.

The bot will load the corresponding pages for these identifiers, and try
to the meaning of that string for the specified type of thing (for
example 'city' or 'gender'). If you want to use it, but not save it
(which can happen if the string specifies a certain value now, but might
show another value elsewhere, or if it is so specific that you're pretty
sure it won't occur a second time), you can provide the Q-number with X
rather than Q. If you do not want to use the string, you can just hit
enter, or give the special value 'XXX' which means that it will be
skipped in each subsequent run as well.

After an identifier has been worked on, there might be a list of names
that has been found, in lc:name format, where lc is a language code. You
can accept all suggested names (answer Y), none (answer N) or ask to get
asked for each name separately (answer S), the latter being the default
if you do not fill in anything.

After all identifiers have been worked on, possible descriptions in
various languages are presented, and you get to choose one. The default
is here 0, which always is the current description for that language.
Finally, for a number of identifiers text is shown that usually gives
parts of the description that are hard to parse automatically, so you
can see if there any additional pieces of data that can be added.

It is advisable to (re)load the item page that the bot has been working
on in the browser afterward, to correct any mistakes it has made, or
cases where a more precise and less precise value have both been
included.

.. versionadded:: 7.2
.. versionremoved:: 10.0

disambredirs script
===================

Expand Down
7 changes: 0 additions & 7 deletions docs/scripts/wikibase.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ create\_isbn\_edition script
:no-members:
:noindex:

dataextend script
=================

.. automodule:: scripts.dataextend
:no-members:
:noindex:

harvest\_template script
========================

Expand Down
5 changes: 0 additions & 5 deletions docs/scripts_ref/scripts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,6 @@ create\_isbn\_edition script

.. automodule:: scripts.create_isbn_edition

dataextend script
=================

.. automodule:: scripts.dataextend

data\_ingestion script
======================

Expand Down
8 changes: 8 additions & 0 deletions scripts/CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Scripts Changelog
=================

10.0.0
------

dataextend
^^^^^^^^^^

* Script was removed from repository

9.6.0
-----

Expand Down
Loading

0 comments on commit cb8b56b

Please sign in to comment.