1
0
datagraph/test/test_datagraph.py

14 lines
337 B
Python
Raw Normal View History

2023-03-06 22:41:49 +00:00
import schemeld
import wikidata
import wikidata_ext
2023-12-12 22:20:58 +00:00
def test_get_triples():
2023-03-06 22:41:49 +00:00
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))