Last modified: 2012-07-29 12:43:59 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 T38634, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36634 - Support anonymous subobjects (easy)
Support anonymous subobjects (easy)
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-08 10:23 UTC by Ad Strack van Schijndel
Modified: 2012-07-29 12:43 UTC (History)
3 users (show)

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


Attachments

Description Ad Strack van Schijndel 2012-05-08 10:23:35 UTC
When more than one subobject is created with the same name on a page only one subobject appears in 'Has subobject' property. When this subobject is browsed however, all different values of properties appear.
Comment 1 Markus Krötzsch 2012-05-08 11:44:09 UTC
This is the intended behaviour. The name is an identifier for a subobject of a page. If you use the same name multiple times, then you refer to the same subobject. So you cannot "create more than one subobject of the same name", you can merely add properties to the same subobject in multiple places on a page.
Comment 2 Ad Strack van Schijndel 2012-05-08 15:42:13 UTC
That is a big difference with Semantic Internal Objects and a reason that subobjects cannot be used with multiple-instance templates. I would recommend to be clear about this in the documentation.
Comment 3 Markus Krötzsch 2012-05-08 16:49:55 UTC
Ok, I then make this into a feature request:

#subobject should allow an empty subobject name to be used. In this case, a new name that has not been used yet should be generated for the subobject internally. This allows the creation of "anonymous" subobjects without an explicit name.

This could be done in the same way as for Type:Record values.

The documentation (for the current behaviour) could also be updated independently (feel free to add a remark to the wiki if you find it unclear now).
Comment 4 MWJames 2012-07-29 12:43:59 UTC
The change ([1]) should resolve this bugfix and be generally available with SMW 1.8. For further information, please consult the change description.

[1] https://gerrit.wikimedia.org/r/#/c/16884/

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


Navigation
Links