Main Page: Difference between revisions

From Riga Literata
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
==SPARQL==
==SPARQL==
[https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual Wikidata Query Service/User Manual]
[https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual Wikidata Query Service/User Manual]<br>
IMPORTANT: ''in Wikidata prefixes don't need to be specified explicitly in SPARQL queries''. However, in our Wikibase.cloud instance, prefixes must be explicitly stated, as [https://kbtestwikibase.wikibase.cloud/wiki/Project:SPARQL/examples#Federated_querying:_mixing_data_from_this_Wikibase_with_data_from_Wikidata this example] shows. Please note and mind the distinction between PREFIX kbwdt, kbwd, wdt and  wd.
 
==Wikibase.cloud==
==Wikibase.cloud==
[https://www.mediawiki.org/wiki/Wikibase/Wikibase.cloud Wikibase.cloud documenation]
[https://www.mediawiki.org/wiki/Wikibase/Wikibase.cloud Wikibase.cloud documenation]

Revision as of 11:51, 6 December 2022

SPARQL

Wikidata Query Service/User Manual
IMPORTANT: in Wikidata prefixes don't need to be specified explicitly in SPARQL queries. However, in our Wikibase.cloud instance, prefixes must be explicitly stated, as this example shows. Please note and mind the distinction between PREFIX kbwdt, kbwd, wdt and wd.

Wikibase.cloud

Wikibase.cloud documenation Wikibase.cloud project updates

Tasks

Reconciliation service for Wikibase (KB example)

https://github.com/KBNLresearch/OpenRefine-Wikibase

Sorted properties

ISSUE: When adding statements to a Q-item such as Theun de Vries, by default the statements are (and remain) displayed in the same order as you originally added them. This is different from Wikidata, where in the corresponding Wikidata item about Theun de Vries the statements are displayed in a custom, fixed order, with "Instance of" and "Image" on top, and a list of external identifiers at the bottom of the page, irrespective of the exacty order these statements were originally added to this Wikidata item.

SOLUTION: This issue was solved by adding the page MediaWiki:Wikibase-SortedProperties to the Wikibase, in which the custom order of statements can be specified. This is the same as in Wikidata, see MediaWiki:Wikibase-SortedProperties and the manual on Wikidata. Please note that the required page cache purging needed for this functionality to kick in can be actively triggered via Special:Purge.

SPARQL examples / templates

ISSUE: the Wikidata SPARQL template for query syntax highlighting is not implemented in this Wikibase.

SOLUTION: Instead one must use a <sparql tryit="1">...</sparql> wrapper, as demonstrated in this example.