You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, the Fuseki did not like the rdfxml query format, so I changed it in the PR347 in Tripper.
After that I can now query the physmet fuseki as follows:
fromtripperimportTriplestore, Literalfromtripper.datadocimportsearch_iris, load_dictfromtripper.datadoc.tabledocimportTableDocimportkeyringimportjson# You would have to set the credentials in your system's keyring beforehand.username=keyring.get_password("PhysMet_fuseki", "username")
password=keyring.get_password("PhysMet_fuseki", "password")
url='https://physmetfuseki.azurewebsites.net'database='test-tem'ts=Triplestore(
backend="sparqlwrapper",
base_iri=f'{url}/{database}',
username=username,
password=password,
update_iri=f'{url}/{database}/update',
)
ts.bind("pm","https://www.ntnu.edu/physmet/data#")
datasets=search_iris(ts, type="dataset")
table=TableDoc.fromdicts([load_dict(ts, iri) foririindatasets])
table.write_csv('data.csv')
This code raise a TypeError
The text was updated successfully, but these errors were encountered: