Wikibase/Wikibase.cloud/FAQ
This article is for Wikibase Cloud. FAQs relevant for a self-hosted Wikibase are here. |
Configuration
[edit]How do I map entities from my Wikibase to Wikidata entities?
[edit]- As an instance manager, go to your Dashboard.
- Click the ⚙️ icon next to your instance.
- Go to the Features tab.
- Use the mapping tables there to map entities in your Wikibase to entities on Wikidata.
How can I make external identifiers clickable?
[edit]These instructions are valid for Wikibase Cloud. If you have a self-hosted Wikibase instance, see here. For Wikidata, see example below. |
First, set up a formatter URL property
- Create a property of data type
String
that will serve as your formatter URL property. - Map this property to the Wikidata property P1630.
Then, set up an external identifier property for a specific source
- Create a property of data type
External Identifier
that you will use to generate URLs to an external web resource. - To this property, add a statement with the formatter URL property you just created. The value must contain a template for the URL: write $1 where the external identifier is supposed to go.
Finally, use the external identifier in a statement
- Use the external identifier property you just created in a statement for a Wikibase entity.
- The value of the statement will replace $1 in the template to generate a clickable URL pointing to the external resource.
Wikidata example
|
How do I change the order of statements on an entity page?
[edit]By default, sites that use structured data from Wikibase display those statements in the order in which they were added: the first statement added to the entity appears at the top, and the last statement added appears at the bottom.
On Wikibase Cloud instances, the only way to change the default order of properties is to edit the Wikibase-SortedProperties page. This action is only available to Administrators.
Data modeling
[edit]How can I create Lexemes?
[edit]These instructions are valid for Wikibase Cloud. If you have a self-hosted Wikibase instance, refer to the documentation for the WikibaseLexeme extension. |
First, make sure that Lexemes are enabled on your instance
- As an instance manager, go to your Dashboard.
- Click the ⚙️ icon next to your instance.
- Go to the Features tab.
- Make sure that Lexemes are enabled in the Lexeme section.
Create a language code property
- Create a property of data type
External Identifier
for specifying language codes. - Map this property to the Wikidata property P218.
Then, create language items
- Create an item for a language (for example, English).
- Add a statement to it using the language code property you created earlier. Specify a language code as its value (for example, en).
- Add any additional languages you need in a similar way.
Also, create a lexical category
Create any item for the concept describing a lexical category, for example, noun.
Finally, create a Lexeme
- Click New Lexeme in the side bar.
- When you fill out the form, the languages you created should be available in the Lexeme's language dropdown.
- You can specify any relevant item from your Wikibase as lexical category.
Wikidata example
|
Tools
[edit]How can I add examples to the Query Service interface?
[edit]These instructions are valid for Wikibase Cloud. |
Edit the Project:SPARQL/examples
page on your instance by adding your own example.
Let the template of the page source below guide you.
== Example category == === Example name === <sparql tryit="1"> SELECT (COUNT(DISTINCT ?item) AS ?count) WHERE { ?item ?predicate ?object . FILTER REGEX(STR(?item), "^.*/entity/Q[0-9]+$") } </sparql>
This example will show up in Query Service examples like this:
Query Service examples for Wikidata are configured here. |