Open ingoboerner opened 5 years ago
In 4e63793 I added the prefixes mentioned above to the default query that's shown when you initially load YASGUI or when you open above. The yasqe.addPrefixes
method seems to do exactly that programatically for an individual query editor, while I added it to the YASQE.defaults.value
in the initial configuration. @ingoboerner: is that what you had in mind?
PS: make sure to clear your localStorage to be able to see this change on https://dracor.org/sparql.
YASGUI was implemented in #40 Some features would be very helpful for users:
Add predefined prefixes: Could be implemented by changing the settings object, as stated in the documentation https://yasqe.yasgui.org/doc/
yasqe.addPrefixes(prefixes: object) Add prefixes to the query. The prefixes are defined as {"rdf: "http://www.w3.org/1999/02/22-rdf-syntax-ns#"}
We could predefine: