View source for MediaWiki:WikibaseExport

MediaWiki interface page

You can view the configuration documentation below the edit area.

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in the group: Users.
  • This page provides interface text for the software on this wiki, and is protected to prevent abuse. To add or change translations for all wikis, please use translatewiki.net, the MediaWiki localisation project.
  • You do not have permission to edit this JSON page because it may affect all visitors.

You can view and copy the source of this page.

Configuration documentation

Besides the configuration reference below, you can consult the Wikibase Export usage documentation and demo wiki.

Export language

By default the export happens in the wiki's main language.

You can change the export language or let the user choose by specifying multiple available languages.

Example configuration:

{
	"exportLanguages": [
		"en",
		"nl",
		"de"
	]
}

Export subjects

You can specify the subjects that should be selected for export by default.

{
	"defaultSubjects": [
		"Q1",
		"Q2"
	]
}

This can be any entities defined in this wiki.

You can also limit which entities show up in the search results via subjectFilterPropertyId and subjectFilterPropertyValue. Example:

{
	"subjectFilterPropertyId": "P1",
	"subjectFilterPropertyValue": "Q2"
}

Exporting ungrouped values

To have the "ungrouped values" section show on the export page, configure at least one ungroued property.

{
	"ungroupedProperties": [
		"P1",
		"P2"
	]
}

Statements with ungrouped properties will have their values be included in the export without grouping or filtering.

Grouping values by year

Values can be filtered and grouped by year. You can configure which properties should have their values be grouped this way.

{
	"propertiesToGroupByYear": [
		"P3",
		"P4"
	]
}

For the "values grouped by year" section to show on the export page, you need to configure at least one property to be grouped by year and at least one time qualifier property:

{
	"startTimePropertyId": "P100",
	"endTimePropertyId": "P200",
	"pointInTimePropertyId": "P300"
}

You can optionally configure the default start and end years to be shown on the export page:

{
	"defaultStartYear": 2019,
	"defaultEndYear": 2023
}

The current year will be used if there is no configuration for the defaults.

Full example

{
	"exportLanguages": [ "en", "nl" ],
	"defaultSubjects": [
		"Q1",
		"Q2"
	],
	"subjectFilterPropertyId": "P50",
	"subjectFilterPropertyValue": "company",
	"ungroupedProperties": [
		"P3",
		"P4"
	],
	"propertiesToGroupByYear": [
		"P1",
		"P2"
	],
	"startTimePropertyId": "P100",
	"endTimePropertyId": "P200",
	"pointInTimePropertyId": "P300",
	"defaultStartYear": 2022,
	"defaultEndYear": null
}

Interface messages customization

You can change the following export page text snippets:

To see where each message is used, view Special:WikibaseExport?uselang=qqx.

Return to MediaWiki:WikibaseExport.