This is in response to the process of trying to turn class instances into reactive objects. Since this library is a core dependency of 'shacl-vue' which uses Vuejs, and since this library is independent of Vuejs, an external package should be able to take shacl-tulip's exports and make them reactive. It has been a challenging process to figure out how to do this generally. Refer to https://github.com/psychoinformatics-de/shacl-vue/issues/84. So th current best solution that I could find is to introduce a 'data' argument, which defaults to an empty object, to the RdfDataset class and to set this as the value of this.data in the class constructor. This allows external libraries to pass a reactive object to the constructor, and afterward the reactive object will be accessible on the data property of the class instance. All data properties get moved to be properties of the data property and methods remain where they are. Additionally, tests were updated to reflect this change. |
||
|---|---|---|
| .. | ||
| ClassDataset.test.js | ||
| FormBase.test.js | ||
| RdfDataset.test.js | ||
| ShapesDataset.test.js | ||
| tulip.test.js | ||