Triply-Dev / YASGUI.YASQE-deprecated

Deprecated, see https://github.com/TriplyDB/Yasgui for the Yasgui monorepo
MIT License
73 stars 36 forks source link

used prefixes are not correctly updated in prefixes array #150

Closed JJ-Author closed 4 years ago

JJ-Author commented 5 years ago

if you use prefixes in yasqe and then decide to rename it (bug seems to only occur for the last prefix entry) the getPrefixesFromQuery() method will return both the old prefix name(s) but also the new prefix name. as a result in yasr still the old prefix will be used to prettify IRIs. I've made a test page for you here in order to reproduce it: https://databus.dbpedia.org/yasgui/yasgui_jan.html just replace rdfs by rdfsd and you will get {"rdf":"http://www.w3.org/1999/02/22-rdf-syntax-ns#","rdfs":"http://www.w3.org/2000/01/rdf-schema#","rdfsd":"http://www.w3.org/2000/01/rdf-schema#"}

Note if you change now the first prefix both prefixes get updated correctly. probably some index var problem

LaurensRietveld commented 4 years ago

Thanks, this is fixed now in the latest version (see https://github.com/TriplyDB/Yasgui and https://yasgui.triply.cc)