Parameters:
Name |
Type |
Description |
snaks |
Object.<string, Array.<WikidataPain.Snak>>
|
|
snakOrder |
Array.<string>
|
|
Members
#
hash :string
#
snaksOrder :Array.<string>
Methods
Parameters:
Name |
Type |
Description |
hash |
string
|
|
Parameters:
Name |
Type |
Description |
raw |
Object
|
|
Parameters:
Name |
Type |
Attributes |
Default |
Description |
snaks |
Array.<WikidataPain.Snak>
|
|
|
List of snaks. |
snaksOrder |
Array.<string>
|
<optional>
|
null
|
Order of snaks, if not set than order of snaks in {@ref snaks} is used. |
#
(static) statementsByReferenceHash(referenceHash) → {Promise.<Array.<WikidataPain.Statement>>}
Returns a set of statements that have at least one reference with the given hash.
The lookup is done using the Wikidata Query Service.
Parameters:
Name |
Type |
Description |
referenceHash |
string
|
|
Adds a snak to the reference.
#
filterSnaksByRefinable(property, otherSnak) → {Array.<WikidataPain.Snak>}
#
merge(other) → {boolean}
#
overlaps(other) → {boolean}
Returns:
Whether there is at least one Snak that is shared by both references.
-
Type
-
boolean
#
(async) replaceHashInstant(hash) → {Promise.<void>}
Replaces all references that have the given hash across all statements.
Querying of statements that contain a reference with the given hash is done via the Wikidata Query Service.
This means, that there is a delay after which newly added references are detected.
Parameters:
Name |
Type |
Description |
hash |
string
|
|
Returns:
-
Type
-
Promise.<void>
#
toJSON() → {Object}