How can I retrieve a list of prefixes via JavaScript or http API?

I want either to retrieve the list of prefixes, or to receive results of Sparql queries in prefixed rather than full IRI form. At this stage, I receive prefixed form via web console, but full URIs via JavaScript

Hi,

I’m not sure how well-documented this is (if at all), but there IS a way to do this. Send a PUT request to /admin/databases/{dbName}/options with a JSON body:

{ "database.namespaces": "" }

This will return an array of string values listing each namespace in a myNs=http://my.url.com# format.

Making this better and better documented is definitely on our to-do list for sometime during the 5.x cycle.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.