Last modified: 2013-02-18 04:06:12 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T15597, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 13597 - Functional property (property only usable once per instance)
Functional property (property only usable once per instance)
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-04-02 21:14 UTC by DaSch
Modified: 2013-02-18 04:06 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description DaSch 2008-04-02 21:14:35 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.
Comment 1 Markus Krötzsch 2008-08-08 21:00:30 UTC
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.
Comment 2 Siebrand Mazeland 2008-08-11 11:05:28 UTC
Re-assign to extension developer for triage/comments.
Comment 3 DaSch 2011-10-25 16:08:41 UTC
3 years and nothing happend here!? :o
Comment 4 MWJames 2012-11-07 09:29:39 UTC
Added to the SMW 1.9.0 tracking ticket.
Comment 5 Jeroen De Dauw 2013-01-10 15:41:46 UTC
> 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.
Comment 6 MWJames 2013-02-18 04:06:12 UTC
(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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links