GeoKnow / Jassa

JAvascript Suite for Sparql Access
25 stars 3 forks source link

There are no means to update Sponate mapping #2

Open patrickwestphal opened 11 years ago

patrickwestphal commented 11 years ago

When having set a Sponate mapping, e.g. via

store.addMap({
    name: 'castles',
    template: [{
      id: '?s',
      name: '?l',
      depiction: '?d',
    }],
   from: '{ Select * { ?s a dbpedia-owl:Castle ; rdfs:label ?l ; foaf:depiction ?d ; dbpedia-owl:owner ?o . ?o rdfs:label ?on . Filter(langMatches(lang(?l), "en")) . Filter(langMatches(lang(?on), "en")) } Limit 10 }'
});

there is no way to update it. Calling the addMap method again will result in an error:

[ERROR] An attribute / store with name concept0 already exists

In some cases it would be very usefull to update or re-set a mapping for a given name, e.g. via delMap or by just calling addMap again.

Aklakan commented 11 years ago

Here is my API suggestion: