1
0
datagraph/test/test_datagraph.py
2023-12-12 23:20:58 +01:00

14 lines
337 B
Python

import schemeld
import wikidata
import wikidata_ext
def test_get_triples():
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))