|Item description language|
|Number of disambiguation candidates|
|Highlight matching string in disambiguation candidates|
|Only resolve first column and ignore the other ones|
WikiResolve is a tool for automatically resolving Wikidata entity ids of a given list of search queries.
The syntax of WikiRsolve is based on the one of QuickStatements v1 and, if the operations succeed, will be processed to valid QuickStatements v1 statements.
A simple query which consists of only one command line could for example look like this:
|search term||omitted type (defaults to
||Property||Value||search term||type||Property||Value||search term||type||Wiki article name||Literal||Literal|
|Basic condition||Basic condition|
|Resolve tuple||Resolve tuple||Resolve tuple|
Command lines don't serve a purpose but can be usefull for generating QuickStatements. Each command line consists of at least one so resolve resolve tuple. Multiple request tuples per command line are seperated by a single tab.
A resolve tuple is what actually contains your search term to resolve. It consists of at least one and up to three parts which are seperated by pipes (
P. Defaults to
Qif omitted or empty.
A literal is a string which will not be processed but output. This can be handy for generating QuickStatements. A literal starts with a dollar sign (
$) and is followed by the text.
Conditions define which items to automatically ignore. A condition is a 2-tuple and consists of a property and a value seperated by a certain command-character. Multiple conditions which all have to be fullfilled (AND conditions) can be specified by seperating them with commas (
A basic condition consists of a property and a value seperated by an "equals to"-character (
=). A candidate has to have the property and value for the property as defined in the tuple. This does not check for transitive properties.
A basic condition can be extended to check for transitive properties by appending an "asterisk"-character (
*) to the property.
This condition can be used to extract the associated Wikidata ID from a given wiki article. A list of all wiki abbreviations can be found here next to "Sites".
A SPARQL condition consists of a property and a value seperated by a "tilde"-character (
~). They are the most versatile type of conditions and will be set together to
?item <property> <value> .. Please note that SPARQL prefixes like "wdt" and "wd" are required.
Example: Filter organs -
wdt:P31/wdt:P279*~, instance of/subclass of*