Classes
- DataValue
- Reference
- Snak
- Statement
- Util
Members
#
(static) Precision :number
#
(static) PrecisionComparison :string
#
(static) Rank :string
#
BATCH_ALERT_ON_FINISHED :boolean
Wether to display an alert once a batch has finished.
#
ENDPOINT :string
API-endpoint used for API calls.
#
MAXLAG :number
Maxlag used when making API calls.
#
NOTIFICATIONS_PROGRESS :boolean|number
Display a notification after every `n`-th finished action.
Set to `false` to disable.
#
QualifierMatchingCriterium :WikidataPain.QualifierMatchingCriterium
Type:
-
WikidataPain.QualifierMatchingCriterium
#
ReferenceMatchingCriterium :WikidataPain.ReferenceMatchingCriterium
Type:
-
WikidataPain.ReferenceMatchingCriterium
Methods
#
(async, static) adhoc(commands, probe) → {Promise.<void>}
Parameters:
Name |
Type |
Description |
commands |
Object
|
string
|
|
probe |
number
|
|
Returns:
-
Type
-
Promise.<void>
#
(async, static) batch(claims, action, probeopt) → {Promise.<void>}
Parameters:
Name |
Type |
Attributes |
Description |
claims |
Array.<T>
|
|
|
action |
function
|
|
|
probe |
number
|
<optional>
|
|
Returns:
-
Type
-
Promise.<void>
#
(static) batchRequestStop()
Stops all running batches after they've finished their currently running task.
#
(static) dissectQsTimestamp(date) → {DissectedTime}
Parameters:
Name |
Type |
Description |
date |
string
|
|
Try to format a English/German date with day-precision as a QuickStatement date.
Parameters:
Name |
Type |
Description |
input |
string
|
|
#
(static) get(requestBody) → {Promise.<Object>}
Makes a generic GET-request to the Wikidata-MediaWiki-Actions-API.
Parameters:
Name |
Type |
Description |
requestBody |
Object
|
|
Returns:
-
Type
-
Promise.<Object>
#
(static) interceptorToggle()
Toggles the interceptor.
#
(static) normaliseClaimId(claimId) → {string}
Normalises claim IDs as returned by WDQS.
Parameters:
Name |
Type |
Description |
claimId |
string
|
|
#
(static) post(requestBody) → {Promise.<Object>}
Makes a generic POST-request to the Wikidata-MediaWiki-Actions-API.
Parameters:
Name |
Type |
Description |
requestBody |
Object
|
|
Returns:
-
Type
-
Promise.<Object>
#
(async, static) postCsrf(requestBody) → {Promise.<Object>}
Makes a generic POST-request with a CSRF-token to the Wikidata-MediaWiki-Actions-API.
Parameters:
Name |
Type |
Description |
requestBody |
Object
|
|
Returns:
-
Type
-
Promise.<Object>
#
(async, static) queryCsrfToken() → {Promise.<string>}
Requests a CSRF-token from the Wikidata-API.
Returns:
CSRF-token.
-
Type
-
Promise.<string>
#
(async, static) quickStatementsCreate(commandBlock, configopt) → {Promise.<Object>}
Adds statements using QuickStatements.
Parameters:
Name |
Type |
Attributes |
Description |
commandBlock |
string
|
|
|
config |
Object
|
<optional>
|
Properties
Name |
Type |
Attributes |
Description |
editgroup |
string
|
<optional>
|
|
probe |
number
|
<optional>
|
|
summary |
string
|
<optional>
|
|
|
Returns:
-
Type
-
Promise.<Object>
#
(static) quickStatementsLineToStatement(qsLine) → {WikidataPain.Statement}
Convert QuickStatement-line to Statement.
Parameters:
Name |
Type |
Description |
qsLine |
Array.<string>
|
|
#
(async, static) quickStatementsRefine(commandBlock, allowCreate, configopt) → {Promise.<Object>}
Adds statements using QuickStatements.
Parameters:
Name |
Type |
Attributes |
Default |
Description |
commandBlock |
string
|
|
|
|
allowCreate |
boolean
|
|
false
|
|
config |
Object
|
<optional>
|
|
Properties
Name |
Type |
Attributes |
Description |
editgroup |
string
|
<optional>
|
|
probe |
number
|
<optional>
|
|
qualifierFilterCriterium |
WikidataPain.QualifierMatchingCriterium
|
<optional>
|
|
referenceRefinableCriterium |
WikidataPain.ReferenceMatchingCriterium
|
<optional>
|
|
summary |
string
|
<optional>
|
|
|
Returns:
-
Type
-
Promise.<Object>
#
(async, static) refineRsolver(allowCreate, config) → {Promise.<void>}
Parameters:
Name |
Type |
Description |
allowCreate |
boolean
|
|
config |
Object
|
Properties
Name |
Type |
Attributes |
Description |
confirmBefore |
boolean
|
<optional>
|
|
editgroup |
string
|
<optional>
|
|
probe |
number
|
<optional>
|
|
qualifierFilterCriterium |
WikidataPain.QualifierMatchingCriterium
|
<optional>
|
|
referenceRefinableCriterium |
WikidataPain.ReferenceMatchingCriterium
|
<optional>
|
|
|
Returns:
-
Type
-
Promise.<void>
#
(async, static) taskWorker(action) → {Promise.<void>}
Maintains a shared queue for all tasks registered using this method.
Parameters:
Name |
Type |
Description |
action |
function
|
|
Returns:
-
Type
-
Promise.<void>