Client for Ontotext GraphDB to easily perform SPARQL queries and update statements against your RDF stores, your OWL ontologies or knowledge graphs in Node.js applications. The client implements the authentication, the handling of prefixes and the transformation of the SPARQL results into a result set that can easily be processed in JavaScript. You'll find it at: https://github.com/innotrade/enapso-graphdb-client. We'll be happy to discuss your questions and suggestions with you.
top of page
Forum
Um zu sehen wie dies funktioniert, öffne deine veröffentlichte Website.
Bearbeitet:Â 21. Feb. 2019
Enapso Ontotext GraphDB Client Released
Enapso Ontotext GraphDB Client Released
2 Kommentare
Gefällt mir
2 Kommentare
bottom of page
Hi Tiff,
in the enapso-graphdb-admin package at https://github.com/innotrade/enapso-graphdb-admin you'll find an downloadToFile method, that supports the export to JSONLD. If you have any further questions, don't hesitate to contact me again.
Best Regards,
Alex
async demoDownloadToFile() { // download a repository or named graph to file let lFormat = EnapsoGraphDBClient.FORMAT_JSON_LD; let resp = await this.graphDBEndpoint.downloadToFile({ format: lFormat.type, filename: 'ontologies/' + this.graphDBEndpoint.getRepository() + lFormat.extension }); enLogger.info('\nDownload (file):\n' + JSON.stringify(resp, null, 2)); return resp; }
Hi, do you have an example for how to export data as jsonLD? The readme is a bit light on the subject. I have json being returned OK using
graphDBEndpoint.query(sparqlStr,{ transform: 'toJSON' })
but I'm not clear on how to get the data using the constants mentioned in the readme