datagov-cz / ontoGrapher

Tento repozitář je udržován v rámci projektu OPZ č. CZ.03.4.74/0.0/0.0/15_025/0013983.
Mozilla Public License 2.0
2 stars 2 forks source link

Fetching workspaces created by mission-control does not load its vocabularies #59

Closed bindeali closed 4 years ago

bindeali commented 4 years ago

Mentioned examples:

This is mainly due to how validace, the repository ontoGrapher's fetching capabilities were tested on, differs from dev. The main difference are as follows:

Tagging @psiotwo just in case this doesn't get to you.

psiotwo commented 4 years ago

Mentioned examples:

This is mainly due to how validace, the repository ontoGrapher's fetching capabilities were tested on, differs from dev. The main difference are as follows:

  • In validace, the vocabularies can be found from the triples of the vocabulary context linked to the metadata context via d-sgov-pracovní-prostor-pojem:odkazuje-na-kontext, such as d-sgov-pracovní-prostor-pojem:obsahuje-slovník. However, dev's vocabulary context (link) contains no triples with such a predicate, and the IRI of the vocabulary context is also the IRI of the repository graph with the vocabulary, which isn't true for validace. Therefore, we either need two ways for each context style or decide on one and throw out the other.

I can see https://slovník.gov.cz/datový/pracovní-prostor/pojem/odkazuje-na-kontext e.g. in dev for https://slovník.gov.cz/datový/pracovní-prostor/pojem/metadatový-kontext/instance30701954

  • The vocabulary context graph in dev contains very few information about the vocabulary (no labels or definitions, etc. - just the types, subclasses and restrictions). Therefore, should we want to load this additional info, we need the original source (or mission-control could duplicate at least these mentioned triples to dev, if not all of them - if I'm not mistaken, this is currently being worked on).

They should be present in the vocabulary content - some of the current data are loaded from models, however, which does not contain any label however. https://graphdb.onto.fel.cvut.cz/resource?uri=https:%2F%2Fslovn%C3%ADk.gov.cz%2Fdatov%C3%BD%2Fpracovn%C3%AD-prostor%2Fpojem%2Fslovn%C3%ADkovy-kontext%2Finstance-542393289

bindeali commented 4 years ago

Progress update: I can now load vocabularies from mission-control work-spaces in branch latest, I will do more testing today in the afternoon to see if saving functions etc. are unaffected. I'll notify when I deploy it so you can take a look at it.

bindeali commented 4 years ago

So, it seems like I have implemented the feature in branch latest, but I am a little confused on how (and when) mission-control creates the instance of the selected vocabulary, which prevents me from fully testing this. (Also, loading the workspace from mission-control is also implemented, but this won't be useful until the changes are merged into master, as mission-control understandably points to the master deploy.)

My question is this: How do you initiate the copying of added vocabularies in mission-control? I have added some into an example workspace, but nothing seems to be happening on graphDB (i.e. the vocabulary context graph is not created and no vocabulary triples are brought over). Maybe I am inputting the wrong URIs?

Also, MB private workspace is empty in mission-control and V-SGoV doesn't seem to load at all. If I'm not mistaken, mission-control is currently being worked on, so I'm not sure I can test much until any changes are done.

My testing workspace is here.

psiotwo commented 4 years ago

Once a vocabulary is added to workspace, it is being loaded into the context. For example, this workspace https://slovník.gov.cz/datový/pracovní-prostor/pojem/metadatový-kontext/instance-1839837489 contains some loaded vocabularies.

Currently, you have to add vocabularies of the form <VOC>/glosář or <VOC>/model, e.g. https://slovník.gov.cz/agendový/104/glosář, but not https://slovník.gov.cz/agendový/104.