semvec/pypi-packages huggingface dataset:
wdentity 0.1.4
Retrieve all properties of a Wikidata entity
License: MIT
Keywords: wikidata,properties,entity

# wdentity
#### Retrieve all properties of a Wikidata entity

wdentity accepts a Wikidata entity ID and returns all properties of the entity.

## Install

    pip install wdentity
   
    >>>   import wdentity
     
    >>>   e = wdentity.Properties('Q1426')
     
    >>>   print(e.entityDict)
        
     {'P734': ['Federer'], 'P735': ['Roger'], 'P1412': ['French', 'English', 'German'], ...                     
     
     >>>  print(e.entityDict['P2048'])
     
     ['+185 centimetre']
     
    >>>   print(e.entityDict['P2218'])
     
     ['+450000000 United States dollar']
     
    >>>   print(e.entityDict['P286'])
     
     ['Ivan Ljubičić', 'Peter Carter startTime: +1991-00-00T00:00:00Z endTime: +1995-00-00T00:00:00Z', 'Peter Carter startTime: +1997-00-00T00:00:00Z endTime: +1998-00-00T00:00:00Z', 'José Higueras pointinTime: +2008-00-00T00:00:00Z', 'Severin Lüthi startTime: +2007-00-00T00:00:00Z']