jena icon indicating copy to clipboard operation
jena copied to clipboard

configurable yasgui prefix and query

Open SimonBin opened this issue 2 years ago • 10 comments

GitHub issue resolved #1680

Pull request Description:

fusekiUI will look for a dataset named yasgui-config to load Example Queries and Prefixes based on the current dataset name


  • [ ] Tests are included.
  • [ ] Documentation change and updates are provided for the Apache Jena website
  • [ ] Commits have been squashed to remove intermediate development commit messages.
  • [ ] Key commit messages start with the issue number (GH-xxxx or JENA-xxxx)

By submitting this pull request, I acknowledge that I am making a contribution to the Apache Software Foundation under the terms and conditions of the Contributor's Agreement.


See the Apache Jena "Contributing" guide.

SimonBin avatar Dec 16 '22 15:12 SimonBin

if it's decided that we need to avoid using JSON then I can work on manual unwrapping json-resultset, but I wanted to open the PR first

SimonBin avatar Dec 16 '22 15:12 SimonBin

Just to be clear - this is too late for 4.7.0.

afs avatar Dec 16 '22 15:12 afs

no worries, there's always a next version

SimonBin avatar Dec 16 '22 15:12 SimonBin

Not necessarily what we are doing here, but I thought interesting that prez uses a triplestore dataset that documents the existing datasets in the triple store. Then, through existing vocabularies (dcat/prof/skos/etc) it tries to automatically know what users can do with the dataset, and it renders templates for the user (they are working on a python + vue web app refactoring).

Maybe the idea of a global "triplestore" dataset of sorts, storing some data common to all vocabularies like example queries, and maybe settings, could be helpful for this issue too.

kinow avatar Jan 06 '23 20:01 kinow

Fuseki admin has a system database. Its not used much (flexible data representation not required! and on disk file are easier or user to work with). That could be repurposed.

afs avatar Jan 07 '23 14:01 afs

Fuseki admin has a system database. Its not used much (flexible data representation not required! and on disk file are easier or user to work with). That could be repurposed.

Didn't know that. +1 !

kinow avatar Jan 07 '23 17:01 kinow

I didn't see the system database in the dataset list so it might be harder to edit the config from the UI(?)

SimonBin avatar Jan 09 '23 07:01 SimonBin

For managing fixed structures, an RDF database is probably over-engineering.

A basic HTTP PUT/GET to a "prefix store" (persisted by a text file - i.e. human editable) and a URL scheme may be better (simpler, easier to maintain, does not require RDF handling in the UI code (potentially yet more dependencies)).

But please ensure the parts of the UI that provide the "workbench" also work when just a SPARQL query endpoint is the target - i.e. it works for any triplestore and that includes a Fuseki server where the UI user is not in charge (not admin). Specific features may not be available in a graceful way.

Yasgui has some configuration features - presumably it uses browser-local storage.

afs avatar Jan 09 '23 10:01 afs

I think this one requires further discussion and thinking on how to implement it. Also some work on YASGUI integration with Vue.js.

kinow avatar Mar 26 '23 21:03 kinow

sure, that's why I opened the discussion :-)

for the example in this pull request, it provides the possibility to change the prefix and sample query list per dataset in the Fuseki UI, and you can edit it using the Fuseki UI built-in graph editor, so that was a plus for us

SimonBin avatar Mar 28 '23 09:03 SimonBin