Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Wikibase external entities

No security coverage Under active development 2 sites

This module allows Drupal to connect to and display data from an external Wikibase installation. It retrieves lists of items using SPARQL queries and fetches individual item details via a REST API. The module also integrates with the Search API to create dynamic, indexed listings of this external data.

This module provides a storage client for exposing external entities in a Wikibase installation to Drupal. See the [external entities documentation](https://www.drupal.org/docs/contributed-modules/external-entities) for more information.

Listing

The listing of id's can be retrieved by a SPARQL query. The query should be in the form of:

        SELECT %item WHERE {
            %item *predicate* *object*
        }

The query should return a list of al the QID's of interest. The `%item` variable should is fixed and should always be called `%item`.

It is possible to extend the query to filter out specific objects. The query is transformed with some regular expressions for pagination and interoperability with the Search API module, so highly complex queries may break.

Detail view

The detail view of an object is retrieved through the REST API of the Wikibase installation.

Search API

Views can not handle external entities at the moment. See https://www.drupal.org/project/external_entities/issues/2538706.

To make dynamic, flexible listings you can use Search API to index the external entities. This submodule has some functionality to keep the search index in sync with upstream changes:

- Get the latest updates from Wikibase since last index and mark updated entities for reindexing
- Changing the search query will trigger a rebuild of the tracking info because this can narrow or widen the result set.

Drupal 8–10 · not 11

Ask your assistant about Wikibase external entities

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jul 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core PHP Release date
1.0.0 Stable 8–10 Jul 2, 2025