Re: [Tracker] Editing a tag: SPARQL help wanted



hi,

 this is not the first time we hear that request. We have two options

1. add extra properties on nao:Tag
2. make nao.Tag subclass of InformationElement

 i think 2. is fine. Any other suggestion? we can change that for the
next week release.

ivan

On 4/9/10, Debarshi Ray <debarshi ray gmail com> wrote:
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
_______________________________________________
tracker-list mailing list
tracker-list gnome org
http://mail.gnome.org/mailman/listinfo/tracker-list




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