feup-infolab / dendro

"Open-source Dropbox" with added description features. It is a data storage and description platform designed to help researchers and other users to describe their data files, built on Linked Open Data and ontologies. Users can use Dendro to publish data to CKAN, Zenodo, DSpace or EUDAT's B2Share and others.
http://dendro.fe.up.pt
Other
28 stars 3 forks source link

[BUG] Saving ontologies information in mongo #293

Closed NelsonPereira1991 closed 7 years ago

NelsonPereira1991 commented 7 years ago

Dendro Version if known (or site URL)

https://github.com/feup-infolab/dendro/tree/machine-plus-human-identifiers

Please describe the actual behaviour

The function "OntologiesCache.prototype.putElements" in "ontologies.cache.js" is associating descriptors to the wrong ontologies.

Example:

screen shot 2017-11-23 at 17 31 50

The exportedAt descriptor is being incorrectly associated to the dcterms ontology. It should be associated to the ddr one.

What steps can be taken to reproduce the issue?

In the file "deployment_configs.json", under the configuration "dev", change the values for the keys "load_databases" and "reload_ontologies_on_startup" to "true". Then add a breakpoint in the function "OntologiesCache.prototype.putElements", run dendro and inspect the variable "newElements".

Possible ways to fix the problem (programmers)

NelsonPereira1991 commented 7 years ago

Fixed in https://github.com/feup-infolab/dendro/pull/297