Talk:Wikibase/FAQ

From mediawiki.org
Latest comment: 4 months ago by Addshore in topic Wikidata schema

Federating properties[edit]

After following the FAQ instructions on federating properties, when I try to add a statement, I can't seem to access any properties at all. What do I have to do? Do I have to request them using an API?

Will Hanley (talk) 21:23, 18 February 2022 (UTC)Reply[reply]

referencing post on mailing list. -Mohammed Sadat (WMDE) (talk) 14:14, 1 March 2022 (UTC)Reply[reply]
Hi Will! If you have it configured correctly then it should all just work, so my guess would be that something is not configured correctly!
What do you see if you go to the `Special:ListProperties` page?
How are you running Wikibase? ·addshore· talk to me! 09:47, 1 March 2022 (UTC)Reply[reply]
Hello Adam. Thanks for your response; sorry it took me a long time to reply. The `Special:ListProperties` page reports no results, so I guess I misconfigured, though I don't think I did anything beyond the basic install. I'm using the docker image on OSX. - Will Hanley (talk) 18:58, 11 May 2022 (UTC)Reply[reply]
In order to enable federated properties you need to set `$wgWBRepoSettings['federatedPropertiesEnabled'] = true;` in your LocalSettings.php file.
To do this in the docker images you have 2 options. 1) just modify the file in the current container (temporary) 2) Copy the file from the container, modify it, and then mount it into the correct location ·addshore· talk to me! 19:03, 26 May 2022 (UTC)Reply[reply]

Wikidata schema[edit]

Are there any document that contains the mapping of Wikidata Data Model into a Wikibase database schema? I want know, for example, if Item is mapped to one relational table of MariaDB and Property to another one or if both are mapped to only one table (as Entity), if ItemDescriptions has a separate table, how many tables support the Statement structure, including references and qualifiers, which column datatype is used to represent an IRI, and so on. Or even if the entire model is stored as a JSON document, one for each entity.

https://www.mediawiki.org/wiki/Wikibase/DataModel https://doc.wikimedia.org/Wikibase/master/php/md_docs_topics_json.html

— Preceding unsigned comment added by Versant.2612 (talkcontribs)

@Versant.2612: Hi there,
No there is not a document such as this, as Wikibase entities do not map to any database schema.
An internal entity JSON representation is stored in the MediaWiki content store. By default this is Manual:Text_table.
There are some secondary tables, current docs for these can be found at https://doc.wikimedia.org/Wikibase/master/php/md_docs_topics_storage.html
·addshore· talk to me! 19:06, 26 May 2022 (UTC)Reply[reply]