[Tracker] Editing a tag: SPARQL help wanted



In Solang, the nao:Tags are sometimes nie:InformationElements too to
allow the user to add some textual comment or description to the tags
in addition to the nao:prefLabel, which is more like the name of the
tag.

Right now we are using the following piece of SPARQL to edit these
tags, which is broken because tags are not always
nie:InformationElements.

DELETE {
  <urn:XXX:ZZZ> nao:prefLabel 'Old Label' ;
  nie:comment 'Old Comment' .
}
INSERT {
  <urn:XXX:ZZZ> nao:prefLabel 'New Label' ;
  nie:comment 'New Label' .
}

What is the best way to do this?

Thanks,
Debarshi
-- 
"Nearly all men can stand adversity, but if you want to test a man's
character, give him power."
    -- Abraham Lincoln



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]