Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entites imported empty #19

Open
offlinehacker opened this issue Jan 29, 2017 · 22 comments
Open

Entites imported empty #19

offlinehacker opened this issue Jan 29, 2017 · 22 comments

Comments

@offlinehacker
Copy link

All entites are imported empty, without any statements.

@filbertkm
Copy link
Owner

which import command options are you using?

@offlinehacker
Copy link
Author

--entity xx and --all-properties, while entities and property labels are imported, statements are not. this is on master version of importer and mediawiki and plugins from wmf/1.29.0-wmf.9

@nyurik
Copy link

nyurik commented Aug 20, 2018

I have the same issue. Properties and Items were created with the labels in every language, but no statements. I received tons of You do not have the permissions needed to carry out this action. errors, without explanation.

Could this be that it tries to set up sitelinks, and since my sitelink table has just one custom entry, it fails?

At first it was also complaining that several properties already exist with the same names (i manually created instanceof, formatURL, and image), but after renaming them, I re-ran it several times, and kept getting the same thing.

@epaulson
Copy link

epaulson commented Nov 8, 2018

I also have the same issue. I'm using the docker images from https://github.com/wmde/wikibase-docker - in a fresh docker-compose up with the memory cranked up to 10GBs in the Docker for Mac settings, when I run:

root@a70d393e8ad2:/var/www/html/extensions/WikibaseImport# php maintenance/importEntities.php --all-properties --entity Q16107138

(that's the Mayor of Madison, WI)

I get a slug of entities and properties created, but none of them appear to have any statements that match. Here's the output:

root@a70d393e8ad2:/var/www/html/extensions/WikibaseImport# php maintenance/importEntities.php --all-properties --entity Q16107138
[2018-11-08 03:44:12]: Creating Q16107138
[2018-11-08 03:44:16]: Creating Q17437796
[2018-11-08 03:44:23]: Creating Q17437798
[2018-11-08 03:44:24]: Q17437796 already imported
[2018-11-08 03:44:24]: Q17437798 already imported
[2018-11-08 03:44:24]: Creating Q17559452
[2018-11-08 03:44:25]: Q17437796 already imported
[2018-11-08 03:44:25]: Q17437798 already imported
[2018-11-08 03:44:25]: Q17559452 already imported
[2018-11-08 03:44:25]: Q17437796 already imported
[2018-11-08 03:44:25]: Q17437798 already imported
[2018-11-08 03:44:27]: Creating P31
[2018-11-08 03:44:35]: Creating Q5
[2018-11-08 03:44:45]: Creating P143
[2018-11-08 03:44:45]: Creating Q328
[2018-11-08 03:44:46]: Creating P21
[2018-11-08 03:44:46]: Creating Q6581097
[2018-11-08 03:44:47]: Creating P27
[2018-11-08 03:44:47]: Creating Q30
[2018-11-08 03:44:55]: Creating P569
[2018-11-08 03:44:55]: Creating P18
[2018-11-08 03:44:57]: Creating P69
[2018-11-08 03:44:57]: Creating Q152303
[2018-11-08 03:44:57]: Creating P735
[2018-11-08 03:44:58]: Creating Q4925623
[2018-11-08 03:45:07]: Creating P102
[2018-11-08 03:45:07]: Creating Q29552
[2018-11-08 03:45:08]: Creating P106
[2018-11-08 03:45:08]: Creating Q82955
[2018-11-08 03:45:08]: Creating P2267
[2018-11-08 03:45:08]: Creating P646
[2018-11-08 03:45:10]: Q17437796 already imported
[2018-11-08 03:45:10]: Q17437798 already imported
[2018-11-08 03:45:10]: Q17559452 already imported
[2018-11-08 03:45:11]: Q17437798 already imported
[2018-11-08 03:45:11]: Q17437796 already imported
[2018-11-08 03:45:11]: Creating Q648625
[2018-11-08 03:45:12]: Creating P19
[2018-11-08 03:45:12]: Creating Q1297
[2018-11-08 03:45:12]: Creating P1412
[2018-11-08 03:45:12]: Creating Q1860
[2018-11-08 03:45:13]: Creating P345
[2018-11-08 03:45:13]: Creating P3344
[2018-11-08 03:45:13]: Creating P2390
[2018-11-08 03:45:13]: Creating P373
[2018-11-08 03:45:13]: Adding statements: Q16107138
[2018-11-08 03:45:14]: DB connection was already closed or the connection dropped.
[2018-11-08 03:45:14]: Done
root@a70d393e8ad2:/var/www/html/extensions/WikibaseImport# 

screen shot 2018-11-07 at 9 52 17 pm

@D063520
Copy link

D063520 commented Feb 27, 2019

I also get this problem, but generally after importing a list of entites. At the beginning it works, then it stops working.

@jjkoehorst
Copy link

Any news on this issue? I have the same issue and I think it is due to: You do not have the permissions needed to carry out this action.

@D063520
Copy link

D063520 commented Jul 4, 2019

can you past your entity stack ?

@jjkoehorst
Copy link

You mean:

docker exec phenowiki_wikibase_1 php /var/www/html/extensions/WikibaseImport/maintenance/importEntities.php --entity Q21079489                 
[2019-07-04 17:29:20]: Q21079489 already imported
[2019-07-04 17:29:22]: P225 already imported
[2019-07-04 17:29:22]: P248 already imported
[2019-07-04 17:29:22]: Q13711410 already imported
[2019-07-04 17:29:22]: P813 already imported
[2019-07-04 17:29:22]: P685 already imported
[2019-07-04 17:29:22]: P31 already imported
[2019-07-04 17:29:22]: Q855769 already imported
[2019-07-04 17:29:22]: P171 already imported
[2019-07-04 17:29:22]: Q2738168 already imported
[2019-07-04 17:29:22]: P105 already imported
[2019-07-04 17:29:22]: P1604 already imported
[2019-07-04 17:29:22]: Q18396533 already imported
[2019-07-04 17:29:22]: Q1203864 already imported
[2019-07-04 17:29:22]: P2597 already imported
[2019-07-04 17:29:22]: Q632006 already imported
[2019-07-04 17:29:22]: P3251 already imported
[2019-07-04 17:29:22]: P3253 already imported
[2019-07-04 17:29:22]: P3252 already imported
[2019-07-04 17:29:22]: P4333 already imported
[2019-07-04 17:29:22]: Q901755 already imported
[2019-07-04 17:29:23]: Q17437798 already imported
[2019-07-04 17:29:23]: P854 already imported
[2019-07-04 17:29:23]: P2946 already imported
[2019-07-04 17:29:23]: P2143 already imported
[2019-07-04 17:29:23]: Q5412874 already imported
[2019-07-04 17:29:23]: Adding statements: Q21079489
[2019-07-04 17:29:23]: You do not have the permissions needed to carry out this action.
[2019-07-04 17:29:23]: Done

?

@D063520
Copy link

D063520 commented Jul 4, 2019

So your error is different:
You do not have the permissions needed to carry out this action.
Can it be that your wiki is configured as private?

@jjkoehorst
Copy link

Bingo...

@D063520
Copy link

D063520 commented Jul 4, 2019

I open the wiki to import the entities and close it after .... no better solution for now .... I would open a separate issue if this is the case. But I cannot help debug it .... sorry!

@jjkoehorst
Copy link

No problem but after allowing it to edit and a full reset of the docker instance I now have: [2019-07-04 17:36:04]: DB connection was already closed or the connection dropped.

@D063520
Copy link

D063520 commented Jul 4, 2019

can you try a second time ....

@jjkoehorst
Copy link

docker exec phenowiki_wikibase_1 php /var/www/html/extensions/WikibaseImport/maintenance/importEntities.php --entity Q21079489
[2019-07-04 17:40:03]: Q21079489 already imported
[2019-07-04 17:40:04]: P225 already imported
[2019-07-04 17:40:04]: P248 already imported
[2019-07-04 17:40:04]: Q13711410 already imported
[2019-07-04 17:40:04]: P813 already imported
[2019-07-04 17:40:04]: P685 already imported
[2019-07-04 17:40:04]: P31 already imported
[2019-07-04 17:40:04]: Q855769 already imported
[2019-07-04 17:40:04]: P171 already imported
[2019-07-04 17:40:04]: Q2738168 already imported
[2019-07-04 17:40:04]: P105 already imported
[2019-07-04 17:40:05]: P1604 already imported
[2019-07-04 17:40:05]: Q18396533 already imported
[2019-07-04 17:40:05]: Q1203864 already imported
[2019-07-04 17:40:05]: P2597 already imported
[2019-07-04 17:40:05]: Q632006 already imported
[2019-07-04 17:40:05]: P3251 already imported
[2019-07-04 17:40:05]: P3253 already imported
[2019-07-04 17:40:05]: P3252 already imported
[2019-07-04 17:40:05]: P4333 already imported
[2019-07-04 17:40:05]: Q901755 already imported
[2019-07-04 17:40:05]: Q17437798 already imported
[2019-07-04 17:40:06]: P854 already imported
[2019-07-04 17:40:06]: P2946 already imported
[2019-07-04 17:40:06]: P2143 already imported
[2019-07-04 17:40:06]: Q5412874 already imported
[2019-07-04 17:40:06]: Adding statements: Q21079489
[2019-07-04 17:40:06]: Illegal value: http://www.wikidata.org/entity/Q25267
[2019-07-04 17:40:06]: Done

@D063520
Copy link

D063520 commented Jul 4, 2019

yes, this is another problem ... you need to patch with the pull request
#41
I hope it will be integrated at some point ... took me long time to fix it

@jjkoehorst
Copy link

Ok ill need to see how I can do it while running a docker instance of the wikibase environment. The /var/www/html/extensions/WikibaseImport does not seem to be a git repo. I can try to reclone / checkout the right branch and copy it into the container... or could there be a better solution?

@jjkoehorst
Copy link

The following steps fixed this issue:

> cat fixImporter.sh 
git clone https://github.com/filbertkm/WikibaseImport.git
cd WikibaseImport
git checkout issue16
cd ../
docker cp WikibaseImport/. phenowiki_wikibase_1:/var/www/html/extensions/WikibaseImport/.

@D063520
Copy link

D063520 commented Jul 4, 2019

you remove WikibaseImport, clone it with the patch .... that's it

@anchardo
Copy link

I've similar issue (all entites are imported empty, without any statements):

root@1a760c586b11:/var/www/html/extensions# php WikibaseImport/maintenance/importEntities.php --all-properties --entity Q168721
[2020-01-25 20:15:39]: Q17437798 already imported
[2020-01-25 20:15:39]: Q168721 already imported
[2020-01-25 20:15:41]: Creating P21
[2020-01-25 20:15:42]: Failed to add P21
[2020-01-25 20:15:42]: * Property [[Property:P87|P87]] already has label "sekse of geslacht" associated with language code nl. * Property [[Property:P87|P87]] already has label "sex or gender" associated with language code en. 
[2020-01-25 20:15:42]: Q6581072 already imported
[2020-01-25 20:15:42]: P143 already imported
.......
[2020-01-25 20:16:19]: P2638 already imported
[2020-01-25 20:16:19]: Adding statements: Q168721
[2020-01-25 20:16:19]: Entity not found for P21.
[2020-01-25 20:16:19]: Entity not found for P813.
[2020-01-25 20:16:19]: Entity not found for P813.
[2020-01-25 20:16:19]: Entity not found for P854.
[2020-01-25 20:16:19]: Entity not found for P106.
[2020-01-25 20:16:19]: Entity not found for P106.
....
[2020-01-25 20:16:20]: Property [[Property:P21|P21]] not found
[2020-01-25 20:16:20]: Done

@diagnostikon
Copy link

diagnostikon commented May 5, 2020

The same for me no statements, is this mainteined at all?

[2020-05-05 11:13:04]: Q103659 already imported
PHP Notice: Only variables should be passed by reference in /var/lib/mediawiki/extensions/WikibaseImport/src/EntityImporter.php on line 228
PHP Notice: Only variables should be passed by reference in /var/lib/mediawiki/extensions/WikibaseImport/src/EntityImporter.php on line 228
PHP Notice: Only variables should be passed by reference in /var/lib/mediawiki/extensions/WikibaseImport/src/EntityImporter.php on line 228
PHP Notice: Only variables should be passed by reference in /var/lib/mediawiki/extensions/WikibaseImport/src/EntityImporter.php on line 228
[2020-05-05 11:13:14]: Q17437796 already imported
[2020-05-05 11:13:14]: Q17437798 already imported
[2020-05-05 11:14:17]: P41 already imported
[2020-05-05 11:14:17]: P244 already imported
[2020-05-05 11:14:17]: Q54919 already imported
[2020-05-05 11:14:17]: P402 already imported
[2020-05-05 11:14:17]: P6766 already imported
[2020-05-05 11:14:17]: P361 already imported
[2020-05-05 11:14:19]: Q297853 already imported
[2020-05-05 11:14:19]: P7859 already imported
[2020-05-05 11:14:19]: P6192 already imported
[2020-05-05 11:14:19]: Adding statements: Q103659
[2020-05-05 11:14:19]: Entity not found for P1943.
[2020-05-05 11:14:21]: Property [[Property:P1943|P1943]] not found
[2020-05-05 11:14:21]: Done

@diagnostikon
Copy link

diagnostikon commented May 7, 2020

Now I get a

The save has failed at the end.

root@wikibase:/var/www/html/w/extensions/WikibaseImport/maintenance# php importEntities.php --entity Q2167
[2020-05-07 07:29:04]: Importing Batch: Q17559452, Q17559452
[2020-05-07 07:29:04]: Q17559452 already imported
[2020-05-07 07:29:04]: Importing Batch: Q2167
[2020-05-07 07:29:06]: Creating Q2167
[2020-05-07 07:29:07]: Adding Q2167 to mapping store
PHP Notice: Only variables should be passed by reference in /var/lib/mediawiki/extensions/WikibaseImport/src/EntityImporter.php on line 300
PHP Notice: Only variables should be passed by reference in /var/lib/mediawiki/extensions/WikibaseImport/src/EntityImporter.php on line 300
PHP Notice: Only variables should be passed by reference in /var/lib/mediawiki/extensions/WikibaseImport/src/EntityImporter.php on line 300
PHP Notice: Only variables should be passed by reference in /var/lib/mediawiki/extensions/WikibaseImport/src/EntityImporter.php on line 300
PHP Notice: Only variables should be passed by reference in /var/lib/mediawiki/extensions/WikibaseImport/src/EntityImporter.php on line 300
PHP Notice: Only variables should be passed by reference in /var/lib/mediawiki/extensions/WikibaseImport/src/EntityImporter.php on line 300
PHP Notice: Only variables should be passed by reference in /var/lib/mediawiki/extensions/WikibaseImport/src/EntityImporter.php on line 300
PHP Notice: Only variables should be passed by reference in /var/lib/mediawiki/extensions/WikibaseImport/src/EntityImporter.php on line 300
PHP Notice: Only variables should be passed by reference in /var/lib/mediawiki/extensions/WikibaseImport/src/EntityImporter.php on line 300
PHP Notice: Only variables should be passed by reference in /var/lib/mediawiki/extensions/WikibaseImport/src/EntityImporter.php on line 300
PHP Notice: Only variables should be passed by reference in /var/lib/mediawiki/extensions/WikibaseImport/src/EntityImporter.php on line 300
PHP Notice: Only variables should be passed by reference in /var/lib/mediawiki/extensions/WikibaseImport/src/EntityImporter.php on line 300
[2020-05-07 07:29:22]: Importing Batch: Q17437796, Q17437798, Q17437798, Q17437796, Q17559452, Q17437798, Q17437796
[2020-05-07 07:29:23]: Q17437796 already imported
[2020-05-07 07:29:23]: Q17437798 already imported
[2020-05-07 07:29:23]: Q17559452 already imported
[2020-05-07 07:29:23]: Importing Batch: P775, P854, P123, Q1472511, P813, P407, Q9027, P1476, P18, P180
[2020-05-07 07:29:25]: Creating P775
[2020-05-07 07:29:25]: Adding P775 to mapping store
[2020-05-07 07:29:25]: P854 already imported
[2020-05-07 07:29:25]: P123 already imported
[2020-05-07 07:29:25]: Q1472511 already imported
[2020-05-07 07:29:25]: P813 already imported
[2020-05-07 07:29:25]: P407 already imported
[2020-05-07 07:29:25]: Q9027 already imported
[2020-05-07 07:29:25]: P1476 already imported
[2020-05-07 07:29:25]: P18 already imported
[2020-05-07 07:29:25]: Creating P180
[2020-05-07 07:29:26]: Adding P180 to mapping store
[2020-05-07 07:29:29]: Importing Batch: Q17437796, Q17437798, Q17437798, Q17559452, Q17437798, Q17437796, Q17559452, Q17437798, Q17559452, Q17559452
[2020-05-07 07:29:30]: Q17437796 already imported
[2020-05-07 07:29:30]: Q17437798 already imported
[2020-05-07 07:29:30]: Q17559452 already imported
[2020-05-07 07:29:30]: Importing Batch: Q10681418, P31, Q12813115, P248, Q27643113, P17, Q34, P580, P5573, Q265049
[2020-05-07 07:29:33]: Creating Q10681418
[2020-05-07 07:29:33]: Adding Q10681418 to mapping store
[2020-05-07 07:29:33]: P31 already imported
[2020-05-07 07:29:33]: Creating Q12813115
[2020-05-07 07:29:34]: Adding Q12813115 to mapping store
[2020-05-07 07:29:34]: P248 already imported
[2020-05-07 07:29:34]: Creating Q27643113
[2020-05-07 07:29:34]: Adding Q27643113 to mapping store
[2020-05-07 07:29:34]: P17 already imported
[2020-05-07 07:29:34]: Q34 already imported
[2020-05-07 07:29:34]: P580 already imported
[2020-05-07 07:29:34]: P5573 already imported
[2020-05-07 07:29:34]: Q265049 already imported
[2020-05-07 07:29:37]: Importing Batch: Q17437796, Q17437798, Q17559452, Q17559452, Q17437798, Q17437796, Q17437798
[2020-05-07 07:29:39]: Q17437796 already imported
[2020-05-07 07:29:39]: Q17437798 already imported
[2020-05-07 07:29:39]: Q17559452 already imported
[2020-05-07 07:29:39]: Importing Batch: Q35, P582, P373, P131, Q505018, P143, Q328, Q10570845, Q504609, P910
[2020-05-07 07:29:41]: Creating Q35
[2020-05-07 07:29:44]: Adding Q35 to mapping store
[2020-05-07 07:29:44]: P582 already imported
[2020-05-07 07:29:44]: P373 already imported
[2020-05-07 07:29:44]: P131 already imported
[2020-05-07 07:29:44]: Q505018 already imported
[2020-05-07 07:29:44]: P143 already imported
[2020-05-07 07:29:44]: Q328 already imported
[2020-05-07 07:29:44]: Creating Q10570845
[2020-05-07 07:29:44]: Adding Q10570845 to mapping store
[2020-05-07 07:29:44]: Q504609 already imported
[2020-05-07 07:29:44]: P910 already imported
[2020-05-07 07:29:46]: Importing Batch: Q6418199, P948, P998, P646, Q15241312, P577, P982, Q14005, P571, Q26961029
[2020-05-07 07:29:48]: Creating Q6418199
[2020-05-07 07:29:48]: Adding Q6418199 to mapping store
[2020-05-07 07:29:48]: Creating P948
[2020-05-07 07:29:48]: Adding P948 to mapping store
[2020-05-07 07:29:48]: Creating P998
[2020-05-07 07:29:48]: Adding P998 to mapping store
[2020-05-07 07:29:48]: P646 already imported
[2020-05-07 07:29:48]: Q15241312 already imported
[2020-05-07 07:29:48]: P577 already imported
[2020-05-07 07:29:48]: P982 already imported
[2020-05-07 07:29:48]: Q14005 already imported
[2020-05-07 07:29:48]: P571 already imported
[2020-05-07 07:29:48]: Creating Q26961029
[2020-05-07 07:29:49]: Adding Q26961029 to mapping store
[2020-05-07 07:29:51]: Importing Batch: P1566, Q830106, P1464, Q8062040, Q11920, P1465, Q9688206, P1792, Q8740932, Q199698
[2020-05-07 07:29:53]: P1566 already imported
[2020-05-07 07:29:53]: Q830106 already imported
[2020-05-07 07:29:53]: P1464 already imported
[2020-05-07 07:29:53]: Creating Q8062040
[2020-05-07 07:29:53]: Adding Q8062040 to mapping store
[2020-05-07 07:29:53]: Q11920 already imported
[2020-05-07 07:29:53]: P1465 already imported
[2020-05-07 07:29:53]: Creating Q9688206
[2020-05-07 07:29:53]: Adding Q9688206 to mapping store
[2020-05-07 07:29:53]: P1792 already imported
[2020-05-07 07:29:53]: Creating Q8740932
[2020-05-07 07:29:53]: Adding Q8740932 to mapping store
[2020-05-07 07:29:53]: Creating Q199698
[2020-05-07 07:29:54]: Adding Q199698 to mapping store
[2020-05-07 07:29:56]: Importing Batch: Q17559452
[2020-05-07 07:29:57]: Q17559452 already imported
[2020-05-07 07:29:57]: Importing Batch: P1376, P3452, P935, P47, Q117493, Q8447, P1997, P1082, P585, Q169514
[2020-05-07 07:29:59]: Creating P1376
[2020-05-07 07:29:59]: Adding P1376 to mapping store
[2020-05-07 07:29:59]: P3452 already imported
[2020-05-07 07:29:59]: Creating P935
[2020-05-07 07:29:59]: Adding P935 to mapping store
[2020-05-07 07:29:59]: P47 already imported
[2020-05-07 07:29:59]: Creating Q117493
[2020-05-07 07:29:59]: Adding Q117493 to mapping store
[2020-05-07 07:29:59]: Q8447 already imported
[2020-05-07 07:29:59]: Creating P1997
[2020-05-07 07:30:00]: Adding P1997 to mapping store
[2020-05-07 07:30:00]: P1082 already imported
[2020-05-07 07:30:00]: P585 already imported
[2020-05-07 07:30:00]: Q169514 already imported
[2020-05-07 07:30:01]: Importing Batch: P518, Q37276725, Q72175200, Q88541482, Q88541673, P421, Q6655, P1264, Q1777301, Q6723
[2020-05-07 07:30:02]: P518 already imported
[2020-05-07 07:30:02]: Creating Q37276725
[2020-05-07 07:30:03]: Adding Q37276725 to mapping store
[2020-05-07 07:30:03]: Creating Q72175200
[2020-05-07 07:30:03]: Adding Q72175200 to mapping store
[2020-05-07 07:30:03]: Creating Q88541482
[2020-05-07 07:30:03]: Adding Q88541482 to mapping store
[2020-05-07 07:30:03]: Creating Q88541673
[2020-05-07 07:30:03]: Adding Q88541673 to mapping store
[2020-05-07 07:30:03]: P421 already imported
[2020-05-07 07:30:03]: Q6655 already imported
[2020-05-07 07:30:03]: P1264 already imported
[2020-05-07 07:30:03]: Q1777301 already imported
[2020-05-07 07:30:03]: Q6723 already imported
[2020-05-07 07:30:06]: Importing Batch: Q17437796, Q17437798, Q17437796, Q17437796, Q17437796, Q17437796, Q17437796, Q17437798, Q17437796
[2020-05-07 07:30:07]: Q17437796 already imported
[2020-05-07 07:30:07]: Q17437798 already imported
[2020-05-07 07:30:07]: Importing Batch: Q36669, P242, Q565, P2046, Q35852, Q27579148, P473, P2044, Q11573, Q8449
[2020-05-07 07:30:08]: Q36669 already imported
[2020-05-07 07:30:08]: P242 already imported
[2020-05-07 07:30:08]: Creating Q565
[2020-05-07 07:30:09]: Adding Q565 to mapping store
[2020-05-07 07:30:09]: P2046 already imported
[2020-05-07 07:30:09]: Creating Q35852
[2020-05-07 07:30:09]: Adding Q35852 to mapping store
[2020-05-07 07:30:09]: Creating Q27579148
[2020-05-07 07:30:09]: Adding Q27579148 to mapping store
[2020-05-07 07:30:09]: Creating P473
[2020-05-07 07:30:10]: Adding P473 to mapping store
[2020-05-07 07:30:10]: Creating P2044
[2020-05-07 07:30:10]: Adding P2044 to mapping store
[2020-05-07 07:30:10]: Creating Q11573
[2020-05-07 07:30:11]: Adding Q11573 to mapping store
[2020-05-07 07:30:11]: Creating Q8449
[2020-05-07 07:30:11]: Adding Q8449 to mapping store
[2020-05-07 07:30:13]: Importing Batch: P2347, P3417, P281, P3222, P4672, P1791, Q19799642, P625, P443, P856
[2020-05-07 07:30:14]: Creating P2347
[2020-05-07 07:30:15]: Adding P2347 to mapping store
[2020-05-07 07:30:15]: P3417 already imported
[2020-05-07 07:30:15]: Creating P281
[2020-05-07 07:30:15]: Adding P281 to mapping store
[2020-05-07 07:30:15]: P3222 already imported
[2020-05-07 07:30:15]: Creating P4672
[2020-05-07 07:30:15]: Adding P4672 to mapping store
[2020-05-07 07:30:15]: Creating P1791
[2020-05-07 07:30:15]: Adding P1791 to mapping store
[2020-05-07 07:30:15]: Creating Q19799642
[2020-05-07 07:30:15]: Adding Q19799642 to mapping store
[2020-05-07 07:30:15]: P625 already imported
[2020-05-07 07:30:15]: Creating P443
[2020-05-07 07:30:16]: Adding P443 to mapping store
[2020-05-07 07:30:16]: P856 already imported
[2020-05-07 07:30:17]: Importing Batch: Q24237997, P1417, P2924, P244, P6821, P6766, P1296, P1448, Q72257792, P214
[2020-05-07 07:30:19]: Creating Q24237997
[2020-05-07 07:30:20]: Adding Q24237997 to mapping store
[2020-05-07 07:30:20]: P1417 already imported
[2020-05-07 07:30:20]: Creating P2924
[2020-05-07 07:30:20]: Adding P2924 to mapping store
[2020-05-07 07:30:20]: P244 already imported
[2020-05-07 07:30:20]: Creating P6821
[2020-05-07 07:30:20]: Adding P6821 to mapping store
[2020-05-07 07:30:20]: P6766 already imported
[2020-05-07 07:30:20]: P1296 already imported
[2020-05-07 07:30:20]: Creating P1448
[2020-05-07 07:30:20]: Adding P1448 to mapping store
[2020-05-07 07:30:20]: Creating Q72257792
[2020-05-07 07:30:20]: Adding Q72257792 to mapping store
[2020-05-07 07:30:20]: P214 already imported
[2020-05-07 07:30:22]: Importing Batch: P1705, Q206855, P4656, P7870, P7867, Q84088487, P3365, P4223, P898, P7859
[2020-05-07 07:30:24]: Creating P1705
[2020-05-07 07:30:25]: Adding P1705 to mapping store
[2020-05-07 07:30:25]: Q206855 already imported
[2020-05-07 07:30:25]: P4656 already imported
[2020-05-07 07:30:25]: Creating P7870
[2020-05-07 07:30:25]: Adding P7870 to mapping store
[2020-05-07 07:30:25]: Creating P7867
[2020-05-07 07:30:25]: Adding P7867 to mapping store
[2020-05-07 07:30:25]: Creating Q84088487
[2020-05-07 07:30:25]: Adding Q84088487 to mapping store
[2020-05-07 07:30:25]: Creating P3365
[2020-05-07 07:30:25]: Adding P3365 to mapping store
[2020-05-07 07:30:25]: Creating P4223
[2020-05-07 07:30:25]: Adding P4223 to mapping store
[2020-05-07 07:30:25]: Creating P898
[2020-05-07 07:30:26]: Adding P898 to mapping store
[2020-05-07 07:30:26]: P7859 already imported
[2020-05-07 07:30:27]: Importing Batch: P691, P1810, Q13550863
[2020-05-07 07:30:28]: Creating P691
[2020-05-07 07:30:28]: Adding P691 to mapping store
[2020-05-07 07:30:28]: Creating P1810
[2020-05-07 07:30:28]: Adding P1810 to mapping store
[2020-05-07 07:30:28]: Creating Q13550863
[2020-05-07 07:30:29]: Adding Q13550863 to mapping store
[2020-05-07 07:30:29]: Adding statements: Q2167
[2020-05-07 07:30:45]: The save has failed.
[2020-05-07 07:30:45]: Done

@D063520
Copy link

D063520 commented Dec 20, 2021

Hi everyone, you can try to use the following tool that allows to import entities and properties from Wikidata:

https://github.com/the-qa-company/WikibaseSync

it has the same functionality as this one + the following advantages:

  1. you can run the import on any client, not only on the machine where the Wikibase instance is installed.
  2. you can keep entities in sync. For example if you import an entity (like Spain) and the entity changes in WIkidata then you can import it again and only the new statements will be added. Removed statement will be deleted.
  3. there is an external link that points the imported entity to the entity in Wikidata.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants