Members
#
equal
All qualifiers of the object statement must be identical.
And for every qualifier property in the object there must be a qualifier using the same property in the subject.
#
overlap
There must be at least one claim that is shared by the subject and object.
#
precision
All qualifiers of the object statement must be equally or less precise.
And for every qualifier property in the object there must be a qualifier using the same property in the subject.
#
precision
All claims of the object reference must be equally or less precise.
And for every qualifier property in the object there must be a qualifier using the same property in the subject.
Methods
Accept all qualifiers.
Requires that the list of a candidate statement's qualifiers is a subset of the reference statement's qualifiers.
Parameters:
Name |
Type |
Attributes |
Description |
config |
Object
|
<optional>
|
Properties
Name |
Type |
Attributes |
Description |
checkedProperties |
Array.<string>
|
<optional>
|
Do not use, if `config.ignoredProperties` is set. Property-IDs to check. If not defined, then all properties are checked. |
comparisonMethod |
WikidataPain.ComparisonMethod
|
<optional>
|
|
ignoredProperties |
Array.<string>
|
<optional>
|
Property-IDs to not check. |
|
#
(async) WikidataPain.(command) → {Promise.<void>}
Executes a single adhoc-command.
Parameters:
Name |
Type |
Description |
command |
Object
|
Properties
Name |
Type |
Description |
action |
string
|
|
claim |
any
|
|
config |
Object
|
Properties
Name |
Type |
Attributes |
Default |
Description |
allowCreate |
boolean
|
<optional>
|
false
|
|
entity |
string
|
|
|
ID of entity. Use `current` for current entities' ID. |
method |
'new'
|
'refine'
|
|
|
|
qualifierComparisonMethod |
WikidataPain.ComparisonMethod
|
<optional>
|
WikidataPain.ComparisonMethod.precision
|
|
referenceRefinableCriterium |
WikidataPain.ReferenceMatchingCriterium
|
<optional>
|
WikidataPain.ReferenceMatchingCriterium.overlap
|
|
|
|
Returns:
-
Type
-
Promise.<void>
Type Definitions
#
BatchResponse
Properties
Name |
Type |
Description |
batchManager |
Object
|
Properties
Name |
Type |
Description |
offFinishedItemCallback |
function
|
|
onFinishedItemCallback |
function
|
|
setProbe |
function
|
Number of actions after each a notification is displayed allowing to prematurely cancel the batch. |
setNotificationProgress |
function
|
Display a notification after every `n`-th finished action. Set to `false` to disable. Set to `null` to use global value. |
stop |
function
|
|
|
promise |
Promise.<void>
|
|
#
DissectedTime
Properties
Name |
Type |
Description |
day |
number
|
|
month |
number
|
|
precision |
number
|
|
time |
string
|
|
year |
number
|
|
#
QualifierMatcher()
Returns whether a candidate statement should be matched.
Returns `true`, if the statement should be matched, `false` if not and `null` for different purposes depending on the use of the matcher.
Function used to transform a snak.