Triply-Dev / YASGUI.legacy

Yet another SPARQL GUI
http://legacy.yasgui.org
MIT License
44 stars 8 forks source link

Use prefixes from the query in construct (turtle) results #226

Open jneubert opened 10 years ago

jneubert commented 10 years ago

It would be great if, in the results of construct queries in turtle format, full URIs would be replaced by prefixed ones, with the prefixes already defined in the query:

Much more compact, and much more readable.

Especially with temporary fancy URIs, such as in this example.

LaurensRietveld commented 10 years ago

I'm a bit hesitant implementing this, but maybe you can convince me. Reasons:

An option would be to make this feature optional. For example, a button in the right top of the result section, converting the results to a prefixed version. (or, perhaps better, automatic conversion, and a button which can toggle to the -original- response)

jneubert commented 10 years ago

I like the idea of having a button for getting to the original query result: The default would be most convenient for users and still leave the chance for debugging the original result.

As I just verified in my stwv endpoint, prefixes are returned by Fuseki when they are part of the construct template, but not when ?predicate is a variable. I found no way to tune this in the endpoint itself - which would open an opportunity for yasgui to add even more value :).