title: Extracting RDF triples from Wikidata
body: <p>I'm following <a href="https://pypi.org/project/Wikidata/" rel="nofollow noreferrer">this</a> guide on querying from Wikidata.</p>
  <p>I can get a certain entity (if I know its code) using with:</p>
  <pre><code>from wikidata.client import Client
  client = Client()
  entity = client.get('Q20145', load=True)
  entity
  &gt;&gt;&gt;&lt;wikidata.entity.Entity Q20145 'IU'&gt;
  entity.description
  &gt;&gt;&gt;m'South Korean singer-songwriter, record producer, and actress'
  </code></pre>
  <p>But how can I get the RDF triples of that entity? That is, all the outgoing and incoming edges in the form of (subject, predicate, object)</p>
  <p>Looks like <a href="https://stackoverflow.com/questions/60113451/extract-triples-from-a-wikidata-rdf-file">this</a> SO question managed to get the triples, but only from a data dump <a href="https://dumps.wikimedia.org/wikidatawiki/entities/" rel="nofollow noreferrer">here</a>. I'm trying to get it from the library itself.</p>