-
Notifications
You must be signed in to change notification settings - Fork 14
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
core_props fails when prop is an ItemID (bug) #155
Comments
Hello @maximearmstrong , |
Ok, I can reproduce the issue with from wikibaseintegrator import wbi_core
from wikibaseintegrator.wbi_datatype import ItemID
data = ItemID(prop_nr='P1589', value='Q1491734')
item = wbi_core.ItemEngine(debug=True, core_props={'P1589'}, data=data)
print(item.item_id) # Q2 |
It's fixed in the master branch. Just for my knowledge, how do you use WikibaseIntegrator? |
Thanks a lot @LeMyst ! |
When using
ItemID
property as a core_prop inItemEngine
, the function__select_item()
fails because of this line, whereget_sparql_value()
returns anint
for theself.value
of anItemID
, soreplace()
fails.Is there another way to use an
ItemID
property in a core_props? Or is this a bug? Thanks a lot :)cc: @annaelleduff
The text was updated successfully, but these errors were encountered: