-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Labels
Description
Code:
client = Client() # doctest: +SKIP
entity = client.get('Q317521', load=True)
client = Client()
prop = client.get('P69', load=True)
res = entity.getlist(prop)
print(res[0])
print(res[0].label)
client = Client()
start_time = res[0].get('P580')
print(start_time)
entity2 = client.get('Q105424537', load=True)
prop2 = client.get('P580', load=True)
print(prop2)
print(prop2.label)
print(type(prop2))
print(prop2.get('start time'))
print(prop2.get('P580'))
Output:
<wikidata.entity.Entity Q105424537>
Smith School of Business
None
<wikidata.entity.Entity P580 'start time'>
start time
<class 'wikidata.entity.Entity'>
None
None
Reactions are currently unavailable
