Gruff now connects directly to SPARQL Endpoints so you can view a Graph and issue SPARQL queries. The default uses:
When you're browsing DBPedia, the query view will have a "Sample" button just above the "Do Query" button. It will paste in one of six (so far) sample queries that it rotates through. These were selected for producing relatively interesting results and visual graphs. (Please send us your favorite query and we might include it as a Gruff example.)
Gruff's Graphical query view now has a Sample button too, but only has one example query so far.
Current user will notice the command that was named "Display All Triples (up to a limit)" is now called "Display | Display Some Sample Triples". It uses the same sample queries as the Sample button in the query view, and so generates the same visual graphs (in DBPedia only).
Also on the Display menu for DBPedia only, the commands to display a node by URI or by label will initially offer a suggestion of an interesting node.
We have employed a few strategies to make creating a visual graph from query results reasonably fast. Instead of asking the server for all of the triples of the nodes in the results, and then selecting from those, it instead deduces some triples that must exist in the store by plugging variable matches into triple patterns from the query. This way it doesn't need to ask the server for the triples at all. But it won't find anything for triple patterns in a UNION or the optional part of an OPTIONAL, for example.
This functionality is still in development so we welcome feedback. If you'd like to unlock this capability please contact us - firstname.lastname@example.org for the password.