Page MenuHomePhabricator

Functional property (property only usable once per instance)
Closed, DeclinedPublic

Description

Author: dasch

Description:
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.


Version: unspecified
Severity: enhancement

Details

Reference
bz13597

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:03 PM
bzimport set Reference to bz13597.
bzimport added a subscriber: Unknown Object (MLST).

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.

dasch wrote:

3 years and nothing happend here!? :o

Unknown Object (User) added a comment.Nov 7 2012, 9:29 AM

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.

Unknown Object (User) added a comment.Feb 18 2013, 4:06 AM

(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.

Aklapper closed this task as Declined.Mar 3 2015, 5:50 PM
Aklapper added a subscriber: Aklapper.

The Semantic MediaWiki developers requested in https://phabricator.wikimedia.org/T64114 to move their task tracking to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues and to close remaining tasks in Wikimedia Phabricator. If you still face the problem reported in this task in a supported version of SMW, please feel free to transfer your report to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues . We are sorry for the inconvenience.