Talk:Wikibase

About this board

Arbitrary access to statement values using federated properties

1
Beet keeper (talkcontribs)

Is there any additional guidance around access to statement values when using federated properties? From the Wikidata guide (arbitrary access): https://www.wikidata.org/wiki/Wikidata:How_to_use_data_on_Wikimedia_projects if I try #statements:P31|from=Q1 (curly brackets left out) P31 can't be found, despite existing in Wikidata's Properties and being completed on my Q1 entity as "company". The error: Failed to render property P31: P31 property not found.

Reply to "Arbitrary access to statement values using federated properties"
ChofisDan (talkcontribs)

I installed this extension once and this happened: first all good, I could create items, properties, etc. But at some point it stopped working, I couldn't do anything anymore, the button to add declarations didn't appear, even the special pages to set labels and descriptions didn't work either.

Now that I have re-installed the extension on the same wiki, the exact same thing happened. I don't know what I'm doing wrong, and I know that this is not enough to know the problem, but I don't know what else to do.

Dan Shick (WMDE) (talkcontribs)

We need some more information in order to help you with this problem. Could you provide the version numbers of MediaWiki and Wikibase, which install instructions you used, the output from the relevant MediaWiki logs, and a more detailed description of the failures, including screenshots if possible?


See also our FAQ and the MediaWiki-specific Manual:How to debug and Manual:Common errors and symptoms#Installation Errors .

Reply to "the extension doesn't work"

Is there any way to delete all Wikibase entries?

3
2001:8F8:146D:1C00:BD7D:F814:60B7:1B86 (talkcontribs)

Hello all,

Is there any way to delete all Wikibase entries? something like (SQL command or similar)

Thank you

2001:8F8:146D:E115:DCFD:16D7:4CA5:8916 (talkcontribs)

the file deleteAllData.php does not exist

Addshore (talkcontribs)

Are you looking to delete all data? or only Wikibase entities? Are you looking to do a MediaWiki "delete" or rather totally remove all references from you database? What's the usecase?

Reply to "Is there any way to delete all Wikibase entries?"

When only properties can have datatypes ...

1
Summary by Henryfunk

Taking a look at https://www.wikidata.org/wiki/EntitySchema:E101 and some of its properties made me see the light. However, it would have been easier to get started if there had been a simple example ontology with accompanying discussion.

Henryfunk (talkcontribs)

how can one make a new item an instance of "X", where "X" is something like a class (in OOP terms), a schema (think XML) or a table structure (think RDBMS) so that it gets (the possibility of having) a given set of properties from the start and can perhaps be validated? It seems to me that without a complex datatype, for instance the entity Berlin will be just an amorphous something, and one will have to turn Berlin into a property to be able to make it a city.

How can one reuse the structure of an existing item as a basis for creating a new, similar item?

At Wikidata:WikiProject Books/Book data model, the data model for a book requires the presence of the property "instance of". This of course is fairly easily understod by humans, but does it mean anything to the framework? And if so, how? It is my understanding that inheritance is not supported. I spent a day reading about Wikibase concepts but still have not found any clear answers.

Help with WDQS UPDATER container failing/restarting

2
Tinyttt (talkcontribs)

Could anyone please advise why this is happening?

Running Wikibase based on the docker-compose.yml file on wikibase-docker repository. 7 of 8 containers are up except for the the WDQS-updater which keeps restarting with the following error.

The following is from the logs:

at org.wikidata.query.rdf.tool.change.ChangeSourceContext.getStartTime(ChangeSourceContext.java:97)

at org.wikidata.query.rdf.tool.Update.initialize(Update.java:144)

at org.wikidata.query.rdf.tool.Update.main(Update.java:97)

wait-for-it.sh: waiting 300 seconds for wikibase.svc:80

wait-for-it.sh: wikibase.svc:80 is available after 0 seconds

wait-for-it.sh: waiting 300 seconds for wdqs.svc:9999

wait-for-it.sh: wdqs.sv

c:9999

is available after 0 seconds

Updating via http://wdqs.svc:9999/bigdata/namespace/wdq/sparql

OpenJDK 64-Bit Server VM warning: Cannot open file /var/log/wdqs/wdqs-updater_jvm_gc.pid10.log due to No such file or directory

#logback.classic pattern: %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n

04:13:17.250 [main] INFO org.wikidata.query.rdf.tool.Update - Starting Updater 0.3.10-SNAPSHOT (8bba8bfb0bbb12361c0e214fe482fbe15fcaa129)

04:13:18.251 [main] INFO o.w.q.r.t.change.ChangeSourceContext - Checking where we left off

04:13:18.252 [main] INFO o.w.query.rdf.tool.rdf.RdfRepository - Checking for left off time from the updater

04:13:18.512 [main] INFO o.w.query.rdf.tool.rdf.RdfRepository - Found left off time from the updater

04:13:18.514 [main] ERROR org.wikidata.query.rdf.tool.Update - Error during initialization.

java.lang.IllegalStateException: RDF store reports the last update time is before the minimum safe poll time. You will have to reload from scratch or you might have missing data.

at org.wikidata.query.rdf.tool.change.ChangeSourceContext.getStartTime(ChangeSourceContext.java:97)

at org.wikidata.query.rdf.tool.Update.initialize(Update.java:144)

at org.wikidata.query.rdf.tool.Update.main(Update.java:97)

Exception in thread "main" java.lang.IllegalStateException: RDF store reports the last update time is before the minimum safe poll time. You will have to reload from scratch or you might have missing data.

at org.wikidata.query.rdf.tool.change.ChangeSourceContext.getStartTime(ChangeSourceContext.java:97)

at org.wikidata.query.rdf.tool.Update.initialize(Update.java:144)

at org.wikidata.query.rdf.tool.Update.main(Update.java:97)

wait-for-it.sh: waiting 300 seconds for wikibase.svc:80

wait-for-it.sh: wikibase.svc:80 is available after 0 seconds

wait-for-it.sh: waiting 300 seconds for wdqs.svc:9999

wait-for-it.sh: wdqs.svc:9999 is available after 0 seconds

Updating via http://wdqs.svc:9999/bigdata/namespace/wdq/sparql

OpenJDK 64-Bit Server VM warning: Cannot open file /var/log/wdqs/wdqs-updater_jvm_gc.pid10.log due to No such file or directory

#logback.classic pattern: %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n

04:14:19.547 [main] INFO org.wikidata.query.rdf.tool.Update - Starting Updater 0.3.10-SNAPSHOT (8bba8bfb0bbb12361c0e214fe482fbe15fcaa129)

04:14:24.297 [main] INFO o.w.q.r.t.change.ChangeSourceContext - Checking where we left off

04:14:24.297 [main] INFO o.w.query.rdf.tool.rdf.RdfRepository - Checking for left off time from the updater

04:14:24.602 [main] INFO o.w.query.rdf.tool.rdf.RdfRepository - Found left off time from the updater

04:14:24.604 [main] ERROR org.wikidata.query.rdf.tool.Update - Error during initialization.

java.lang.IllegalStateException: RDF store reports the last update time is before the minimum safe poll time. You will have to reload from scratch or you might have missing data.

at org.wikidata.query.rdf.tool.change.ChangeSourceContext.getStartTime(ChangeSourceContext.java:97)

at org.wikidata.query.rdf.tool.Update.initialize(Update.java:144)

at org.wikidata.query.rdf.tool.Update.main(Update.java:97)

Exception in thread "main" java.lang.IllegalStateException: RDF store reports the last update time is before the minimum safe poll time. You will have to reload from scratch or you might have missing data.

at org.wikidata.query.rdf.tool.change.ChangeSourceContext.getStartTime(ChangeSourceContext.java:97)

at org.wikidata.query.rdf.tool.Update.initialize(Update.java:144)

at org.wikidata.query.rdf.tool.Update.main(Update.java:97)

Dan Shick (WMDE) (talkcontribs)
Reply to "Help with WDQS UPDATER container failing/restarting"

Unhelpful error message delivered by Wikibase

5
Marx.FelipeForte (talkcontribs)

This is the error I receive when trying to "Add links" to a page through Wikibase in MediaWiki 1.35.

Is there any way to improve the error message we receive, to help with troubleshooting?

Thiemo Kreuz (WMDE) (talkcontribs)

I'm afraid this needs much more context. Is this on wikidata.org or your own wiki? Do you see anything in the JavaScript console?

Marx.FelipeForte (talkcontribs)
Thiemo Kreuz (WMDE) (talkcontribs)

I'm afraid I can't help with that. I suggest to check if Manual:CORS is helpful.

Dan Shick (WMDE) (talkcontribs)
Reply to "Unhelpful error message delivered by Wikibase"

PHP Fatal error: Interface 'MediaWiki\Hook\ResourceLoaderRegisterModulesHook' not found in D:\Bitnami\mediawiki-1.35.0-0\apps\mediawiki\htdocs\extensions\Wikibase\lib\includes\LibHooks.php on line 20

2
Nathan J Richards (talkcontribs)

Hi, when I was installing wikibase 1.35.0 that I've downloaded from GitHub (wikibase 1.35.0-wmf.41) (link: https://github.com/wikimedia/mediawiki-extensions-Wikibase/tree/wmf/1.35.0-wmf.41) for mediawiki 1.35.0, while I was doing the final installation process (which is to run the setup scripts like "php maintenance/update.php", it gives me this error: "PHP Fatal error:  Interface 'MediaWiki\Hook\ResourceLoaderRegisterModulesHook' not found in D:\Bitnami\mediawiki-1.35.0-0\apps\mediawiki\htdocs\extensions\Wikibase\lib\includes\LibHooks.php on line 20"

Is there a solution to it?

By the ways, I'm using Bitnami MediaWiki Stack that utilizes version 1.35.0.

Thiemo Kreuz (WMDE) (talkcontribs)
Reply to "PHP Fatal error: Interface 'MediaWiki\Hook\ResourceLoaderRegisterModulesHook' not found in D:\Bitnami\mediawiki-1.35.0-0\apps\mediawiki\htdocs\extensions\Wikibase\lib\includes\LibHooks.php on line 20"

Call to undefined method GeoData\CoordinatesOutput::hasPrimary()

2
2001:8F8:1E23:1DCA:60BA:229A:9B00:88DC (talkcontribs)

Hello, hopes you are all doing well, I'm facing this issue, when i run:

php maintenance/importEntities.php --all-properties

[2020-08-03 11:28:54]: Importing Batch: P10, P1000, P1001, P1002, P1003, P1004, P1005, P1006, P1007, P101 [2020-08-03 11:28:55]: Creating P10 [a005ade11535540a59260e84] [no req] Error from line 103 of /var/www/html/extensions/Wikibase/repo/includes/ParserOutput/GeoDataDataUpdater.php: Call to undefined method GeoData\CoordinatesOutput::hasPrimary() Backtrace: #0 /var/www/html/extensions/Wikibase/repo/includes/ParserOutput/CompositeStatementDataUpdater.php(32): Wikibase\Repo\ParserOutput\GeoDataDataUpdater->updateParserOutput() #1 /var/www/html/extensions/Wikibase/repo/includes/ParserOutput/PropertyParserOutputUpdater.php(31): Wikibase\Repo\ParserOutput\CompositeStatementDataUpdater->updateParserOutput() #2 /var/www/html/extensions/Wikibase/repo/includes/ParserOutput/PropertyParserOutputUpdater.php(22): Wikibase\Repo\ParserOutput\PropertyParserOutputUpdater->updateParserOutputForProperty() #3 /var/www/html/extensions/Wikibase/repo/includes/ParserOutput/EntityParserOutputDataUpdaterCollection.php(44): Wikibase\Repo\ParserOutput\PropertyParserOutputUpdater->updateParserOutput() #4 /var/www/html/extensions/Wikibase/repo/includes/ParserOutput/FullEntityParserOutputGenerator.php(138): Wikibase\Repo\ParserOutput\EntityParserOutputDataUpdaterCollection->updateParserOutput() #5 /var/www/html/extensions/Wikibase/repo/includes/ParserOutput/StatsdTimeRecordingEntityParserOutputGenerator.php(48): Wikibase\Repo\ParserOutput\FullEntityParserOutputGenerator->getParserOutput() #6 /var/www/html/extensions/Wikibase/repo/includes/Content/EntityContent.php(238): Wikibase\Repo\ParserOutput\StatsdTimeRecordingEntityParserOutputGenerator->getParserOutput() #7 /var/www/html/extensions/Wikibase/repo/includes/Content/PropertyContent.php(138): Wikibase\Repo\Content\EntityContent->getParserOutputFromEntityView() #8 /var/www/html/extensions/Wikibase/repo/includes/Content/EntityContent.php(177): Wikibase\Repo\Content\PropertyContent->getParserOutputFromEntityView() #9 /var/www/html/includes/Revision/RenderedRevision.php(263): Wikibase\Repo\Content\EntityContent->getParserOutput() #10 /var/www/html/includes/Revision/RenderedRevision.php(235): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached() #11 /var/www/html/includes/Revision/RevisionRenderer.php(215): MediaWiki\Revision\RenderedRevision->getSlotParserOutput() #12 /var/www/html/includes/Revision/RevisionRenderer.php(152): MediaWiki\Revision\RevisionRenderer->combineSlotOutput() #13 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}() #14 /var/www/html/includes/Revision/RenderedRevision.php(197): call_user_func() #15 /var/www/html/includes/Storage/DerivedPageDataUpdater.php(1309): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput() #16 /var/www/html/includes/Storage/PageUpdater.php(749): MediaWiki\Storage\DerivedPageDataUpdater->getCanonicalParserOutput() #17 /var/www/html/extensions/Wikibase/repo/includes/Store/Sql/WikiPageEntityStore.php(374): MediaWiki\Storage\PageUpdater->saveRevision() #18 /var/www/html/extensions/Wikibase/repo/includes/Store/Sql/WikiPageEntityStore.php(234): Wikibase\Repo\Store\Sql\WikiPageEntityStore->saveEntityContent() #19 /var/www/html/extensions/Wikibase/lib/includes/Store/TypeDispatchingEntityStore.php(85): Wikibase\Repo\Store\Sql\WikiPageEntityStore->saveEntity() #20 /var/www/html/extensions/WikibaseImport/src/EntityImporter.php(145): Wikibase\Lib\Store\TypeDispatchingEntityStore->saveEntity() #21 /var/www/html/extensions/WikibaseImport/src/EntityImporter.php(115): Wikibase\Import\EntityImporter->createEntity() #22 /var/www/html/extensions/WikibaseImport/src/EntityImporter.php(74): Wikibase\Import\EntityImporter->importBatch() #23 /var/www/html/extensions/WikibaseImport/maintenance/importEntities.php(78): Wikibase\Import\EntityImporter->importEntities() #24 /var/www/html/maintenance/doMaintenance.php(105): Wikibase\Import\Maintenance\ImportEntities->execute() #25 /var/www/html/extensions/WikibaseImport/maintenance/importEntities.php(133): require_once(string) #26 {main}

Thank you

Thiemo Kreuz (WMDE) (talkcontribs)

It looks like the version of the GeoData extension you are using is not compatible with the version of the Wikibase extension you are running. The method in the error message is available since release 1.35.0-wmf.2 and in all later releases. You should make sure your GeoData extension is at least this version.

Reply to "Call to undefined method GeoData\CoordinatesOutput::hasPrimary()"

Why do sense claims have no datatype?

3
Shisma (talkcontribs)
Lydia Pintscher (WMDE) (talkcontribs)

Could you please file a ticket for this on phabricator.wikimedia.org? Thanks!

Shisma (talkcontribs)
Reply to "Why do sense claims have no datatype?"
Pppery (talkcontribs)
Reply to "Wikibase lib hooks"