Help talk:Adding subobjects
Talk pages on this wiki should primarily be used to address possible mistakes as well as missing and superseded information in the documentation.
In case you are seeking support concerning individual questions, please have a look at this page. The Semantic MediaWiki user mailing list is always a good idea for seeking help.
Contents
Names[edit]
The fact that all subobjects on a page have the same name " pagename#subobjectclassname " makes things difficult. SIO uses generic names " pagename#continuous number " which works a lot better when querying for all subobjects of the same class on a page.
What are dev list and RFC?[edit]
What does it mean by dev list and RFC? Thanks. --Linforest 12:46, 21 March 2012 (CET)
- Heiya, with "dev list" the developer mailing list is meant and "RFC (Request for Comments)" refers to the discussion releated to the implemenatition of this parser function. It's true that it is not clear what is meant right away. I will adjust this. Cheers --[[kgh]] 19:31, 22 March 2012 (CET)
- Heiya kgh, so many thanks. And I'll update the Chinese version for these. Cheers --Linforest 05:57, 23 March 2012 (CET)
Possible Bug[edit]
It seems that {{#subobject:}} doesn't set the self-referencing property (the function's first parametre), which the old {{#set_internal:}} from Semantic Internal objects did.
Alexander Mashin 10:34, 11 April 2012 (CEST)
- Oh, I see. It's other way round now, and who cares about backward compability.
Alexander Mashin 10:54, 11 April 2012 (CEST)
- You may still use SIO if you would like to. This gives you time to organise a transition. Cheers --[[kgh]] 22:50, 13 April 2012 (CEST)
Multiple subobjects on a page[edit]
Hi, it doesn't seem possible to have more than one subobject with the same name on a page. This is what happens if you use subobjects to semantically store data contained in multiple-instance templates.
Is this meant to be? --Ad Strack van Schijndel 15:33, 27 April 2012 (CEST)
- It is possible to have multiple subobjects per page. Different identifiers will allow to have different subobjects (have a look at the example which contains Has subobject with one for Meta data and one for URL) -- James Hong Kong 18:28, 27. Apr. 2012
Querying subobjects[edit]
Apparently, if you set several similar (with the same first parametre) subobjects on the same page, they get all mixed up in a query, as if subobjects are identified by the page name and referring property only.
Here is an example. It is in Russian, but the idea is that the table should have a separate row for each author (first column)/title (second column) pair, not only one row per referring page (third column).
It is either a bug or I don't understand the meaning of the first parametre in {{#subobject:}}
. Should it contain a unique identifier for the object?
Alexander Mashintalk 12:08, 8 August 2012 (CEST)
- Closed after 1.8 release.
Alexander Mashintalk 16:29, 11 February 2013 (CET)
- [View source↑]
- [History↑]
Contents
Thread title | Replies | Last modified |
---|---|---|
exclude subobjects from FactBox | 1 | 16:04, 19 June 2018 |
Subobjects with internal links? | 1 | 19:09, 10 June 2017 |
-- | 0 | 11:10, 23 May 2017 |
Adding Subobjects using Semantic Forms | 0 | 06:36, 20 October 2013 |
{{#subobject::}} vs {{#subobject::-}} | 2 | 17:19, 7 September 2013 |
Querying itself | 1 | 19:47, 9 June 2013 |
subobject (SMW) and set_internal (extension) | 1 | 00:14, 12 February 2013 |
Some subjects not shown in query | 0 | 23:16, 18 November 2012 |
Is it possible to exclude subobjects from FactBox added by "__SHOWFACTBOX__"?
FactBox adds page name for each subobject, which is not useful and looks like spam.
I have problems to set subobjects when the value of a property contains e.g. a [[link]] to an other page. Is there a work around for this issue? The property has the type text.
Please use https://sandbox.semantic-mediawiki.org to demonstrate the issue.
There seems to be a separate discussion page for this so I added an article there: Help_talk:Adding_subobjects_using_Semantic_Forms
The syntax for anonymous identifiers used to be either {{#subobject:-}} or {{#subobject:}}, i.e. either a hyphen or a blank. Apparently, the documentation no longer mentions the former. Why so? Will it be deprecated in SMW 1.9?
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] |?property1 |?property2 }}
Is it a good idea?
I found this suggestion in this thread by Yaron.
It seems to work fine.
Yaron has provided information on the differences. Cheers
Hi, I have more than 1 subobjects within a template. I noticed that when a page using the template is edited, some subobjects on the page will be missing when queried even after waiting for a few days. Data repair is always required in order for all the subobjects to appear but after a few hours some subobject will start to get missing again. I always have to either remove all the sematic properties from the template and reinsert them again or to remove all the data on the missing page and reinsert all the data again for it to reappear when queried. I'm not sure whether it's a known issue though. DinoKev (talk) 23:16, 18 November 2012 (CET)