filbertkm / WikibaseImport

Import entities from another Wikibase instance (e.g. Wikidata)
GNU General Public License v2.0
28 stars 18 forks source link

help with starting to use Wikibase import #47

Open Rik44444 opened 4 years ago

Rik44444 commented 4 years ago

Hi, thanks for developing and maintaining this extension, it will be really really useful for me once i get it to work!

So atm i'm getting an error. Steps to reproduce (i followed https://github.com/filbertkm/WikibaseImport):

Expected result:

Actual result:

[1c3bcba28243820e0d31340f] [no req] Error from line 155 of /home/mydomain/w/extensions/WikibaseImport/src/EntityImporter.php: Call to undefined method Wikibase\DataModel\Entity\Item::getSiteLinks() Backtrace:

0 /home/mydomain/w/extensions/WikibaseImport/src/EntityImporter.php(185): Wikibase\Import\EntityImporter->getBadgeItems(array)

1 /home/mydomain/w/extensions/WikibaseImport/src/EntityImporter.php(69): Wikibase\Import\EntityImporter->importBadgeItems(array)

2 /home/mydomain/w/extensions/WikibaseImport/maintenance/importEntities.php(78): Wikibase\Import\EntityImporter->importEntities(array)

3 /home/mydomain/w/maintenance/doMaintenance.php(99): Wikibase\Import\Maintenance\ImportEntities->execute()

4 /home/mydomain/w/extensions/WikibaseImport/maintenance/importEntities.php(133): require_once(string)

5 {main}

I also have a bonus question: nowhere have i entered "wikidata.org", so how does the extension know that i want an item from WikiData? + How do i enter a different URL when i want to import items from a different Wiki repo?

maxchu2021 commented 4 years ago

I've got this issue also.

I can only do "php maintenance/importEntities.php --all-properties" this one. But others have the same issue as above.

danmichaelo commented 4 years ago

This seems to be an actual compatibility issue.

The Item::getSiteLinks() method was removed in wikibase/data-model 8.0 (2018-08-03), so WikibaseImport needs to be updated to use getSiteLinkList() instead.

danmichaelo commented 4 years ago

Oh, and there is already a PR that fixes it: https://github.com/filbertkm/WikibaseImport/pull/45

Rik44444 commented 4 years ago

is there anything i can do to help in getting this fixed?

danmichaelo commented 4 years ago

There is a working fork at https://github.com/Wikidata/WikibaseImport

Rik44444 commented 4 years ago

ah brilliant! i will try that asap. many thanks @danmichaelo