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

get_by_label_all only works after sync_attributes #502

Closed
francescalb opened this issue Nov 18, 2022 · 0 comments · Fixed by #503
Closed

get_by_label_all only works after sync_attributes #502

francescalb opened this issue Nov 18, 2022 · 0 comments · Fixed by #503
Assignees

Comments

@francescalb
Copy link
Collaborator

When making a new entity it is not immediately available with get_by_label_all

from ontopy import get_ontology
batt = get_ontology('https://raw.githubusercontent.com/BIG-MAP/BattINFO/dev/battinfo.ttl').load()
batt.new_entity('Tull',batt.Electrolyte)

Now:
batt.get_by_label('Tull') returns battinfo.Tull, but `batt.get_by_label_all('Tull') return an empty list.
Ater running batt.sync_attributes(), Tull is findable also with get_by_label_all.

New concepts should be available directly from get_by_label_all before sync_attributes.

@francescalb francescalb self-assigned this Nov 18, 2022
@francescalb francescalb linked a pull request Nov 18, 2022 that will close this issue
11 tasks
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

Successfully merging a pull request may close this issue.

1 participant