Last modified: 2013-02-18 04:06:12 UTC
I thing it could be useful to add an Option so that a Property can only be used once on a page. Maybe something like [[Only usable once::true]] and [[Only usable once::false]]. The Idea is that this could prevent unwanted output in some inline queries. And in bigger wikis with a lot of users this could happen fast. In the case that a Property with the Option [[Only usable once::true]] is used twice or more in one page only the first Value schould be used an there schould be shown an errormessage.
I agree. This kind of properties is often called "functional". A simple syntactic check for multiple values would be easy, including subproperties in this check would be more difficult though. We will consider this in some future.
Re-assign to extension developer for triage/comments.
3 years and nothing happend here!? :o
Added to the SMW 1.9.0 tracking ticket.
> 3 years and nothing happend here!? :o You need to convince some developer to implement this ;) > MWJames 2012-11-07 09:29:39 UTC > Added to the SMW 1.9.0 tracking ticket. Are you planning to get to this? > including subproperties in this check would be more difficult though. I'm guessing the easiest implementation would be to restrict per semantic data container, and thus allow for having multiple subobjects with such a (single) property per page.
(In reply to comment #5) > > MWJames 2012-11-07 09:29:39 UTC > > Added to the SMW 1.9.0 tracking ticket. > > Are you planning to get to this? I don't have time for this therefore it is off the SMW 1.9 list.