-
DescriptionHow to check "P18" exist in claims or not? |
Beta Was this translation helpful? Give feedback.
Answered by
dahlia
Aug 4, 2022
Replies: 1 comment
-
As >>> from wikidata.client import Client
>>> client = Client()
>>> entity = client.get('Q20145')
>>> image_prop = client.get('P18')
>>> image_prop in entity
True |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dahlia
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As
Entity
implementsMapping
protocol, you can treat it as a kind of dictionary. Just usein
operator: