dgarijo / Widoco

Wizard for documenting ontologies. WIDOCO is a step by step generator of HTML templates with the documentation of your ontology. It uses the LODE environment to create part of the template.
Apache License 2.0
292 stars 88 forks source link

Specifying custom settings for WebVOWL #390

Closed ColinMaudry closed 3 years ago

ColinMaudry commented 4 years ago

Hi!

My instance is here: https://vocab.sireneld.io/sirene/webvowl/index.html#

I would like to customise the default WebVOWL settings, mainly:

I saw that these settings can be specified in the VOWL json that the app exports. It's explained on the (thin) WebVOWL official documentation:

Alternatively, the generated JSON file can be exported and linked or uploaded. If the JSON file has been exported using WebVOWL, the VOWL visualization will be restored with the layout and user settings it had before.

I have edited the generated webvowl/data/ontology.json and added a valid settings object (inspired from the sample JSON) that sets two settings to non-default values (freshly generated, it doesn't have a .settings):

{
  "settings": {
    "filter": {
      "degreesSliderValue": "0"
    },
    "gravity": {
      "datatypeDistance": 450
    }
  }
}

But that doesn't affect the display configuration when I open WebVOWL.

Questions:

I almost opened this issue in the WebVOWL repo, but I first need to understand how Widoco set it up.

Thanks!

ColinMaudry commented 4 years ago

I also try adding a fully filled settings object (not just the settings I wanted to edit) and edit it. No success either.

dgarijo commented 4 years ago

Hi @ColinMaudry, yes, WIDOCO will generate the ontology.json through owl2vowl and then load it up. If you modify that file, then it should work appropriately. If it doesn't then it could be because I have a previous version of WebVOWL in WIDOCO which doesn't support this behavior...

dgarijo commented 3 years ago

Fixed in develop branch. I tested it out, it was just an issue of updating to a newer WebVowl version.