mff-uk / dataspecer

https://dataspecer.com
MIT License
19 stars 7 forks source link

Relationship not generated in vocabulary file #631

Open jakubklimek opened 2 weeks ago

jakubklimek commented 2 weeks ago

In this project I have defined an "artefact" relationship: image It is present in the generated documentation: image but it is not present in the generated vocabulary file and therefore is not available for reuse in AP.

jakubklimek commented 2 weeks ago

Also, the lw-onto button does not work:

1dd3208c-55c29b4bf9b1abb0.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'iri')
    at m.writeClass (page-20b97c3e5fca7571.js:1:133558)
    at m.generate (page-20b97c3e5fca7571.js:1:132954)
    at t.generate (page-20b97c3e5fca7571.js:1:132035)
    at onClick (page-20b97c3e5fca7571.js:1:86371)
    at Object.aS (1dd3208c-55c29b4bf9b1abb0.js:1:71785)
    at aN (1dd3208c-55c29b4bf9b1abb0.js:1:71939)
    at 1dd3208c-55c29b4bf9b1abb0.js:1:138600
    at sw (1dd3208c-55c29b4bf9b1abb0.js:1:138699)
    at sS (1dd3208c-55c29b4bf9b1abb0.js:1:139113)
    at 1dd3208c-55c29b4bf9b1abb0.js:1:145256
skodapetr commented 2 weeks ago

I've fixed a missing argument to the geenrate function. It seems that the frontned geenrates the property correctly. Based on a smaller example it seems, that the problem is with the detection of the vocabulary to export.

The relation to export in the example is called "rel1" and is hidden behind the "record"relation.