14 lines
337 B
Python
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))
|
|
|