1
0
datagraph/test.py

16 lines
342 B
Python

import schemeld
import wikidata
import wikidata_ext
if __name__ == '__main__':
client = wikidata.client.Client()
EQV_PROPERTY = client.get('P1628')
schema_root = "https://schema.org/"
schema_prop = "image"
triples = wikidata_ext.get_triples(client, predicate = EQV_PROPERTY, "{}{}".format(schema_root, schema_prop))