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

Entity that has the same label as existing entity will not be imported #36

Closed
D063520 opened this issue Feb 21, 2019 · 1 comment
Closed

Comments

@D063520
Copy link

D063520 commented Feb 21, 2019

When importing for example first P805 and then P1343 the import will fail because in "Luxembourgish" (a language) the label is the same:

Failed to add P1343
[2019-02-21 16:02:54]: Property [[Property:P207|P207]] already has label "Beschriwwen an" associated with language code lb.

@D063520
Copy link
Author

D063520 commented Feb 22, 2019

The solution is to replace in src/EntityImporter in the function createEntity this part:

$result = $this->entityStore->saveEntity(
$entity,
'Import entity',
$this->importUser,
EDIT_NEW | EntityContent::EDIT_IGNORE_CONSTRAINTS
);

@D063520 D063520 closed this as completed Feb 22, 2019
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

1 participant