Help talk:Adding subobjects

From semantic-mediawiki.org

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.

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)

Contents

Thread titleRepliesLast modified
exclude subobjects from FactBox116:04, 19 June 2018
Subobjects with internal links?119:09, 10 June 2017
--011:10, 23 May 2017
Adding Subobjects using Semantic Forms006:36, 20 October 2013
{{#subobject::}} vs {{#subobject::-}}217:19, 7 September 2013
Querying itself119:47, 9 June 2013
subobject (SMW) and set_internal (extension)100:14, 12 February 2013
Some subjects not shown in query023:16, 18 November 2012

exclude subobjects from FactBox

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.

06:34, 18 June 2018

No, I guess this would be a feature request to either include them or not at display of the factbox. Same for special page "Browse" though I would not recommend to remove them there from display since they would no longer be explorable.

16:04, 19 June 2018
 

Subobjects with internal links?

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.

10:36, 23 May 2017

Please use https://sandbox.semantic-mediawiki.org to demonstrate the issue.

19:09, 10 June 2017
 

sorry - double post

11:08, 23 May 2017

Adding Subobjects using Semantic Forms

There seems to be a separate discussion page for this so I added an article there: Help_talk:Adding_subobjects_using_Semantic_Forms

06:36, 20 October 2013

{{#subobject::}} vs {{#subobject::-}}

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?

09:31, 7 September 2013

Querying itself

{{#ask: [[-Has subobject::{{FULLPAGENAME}}]]
    |?property1
    |?property2
}}

Is it a good idea?

17:14, 9 June 2013

I found this suggestion in this thread by Yaron.
It seems to work fine.

19:47, 9 June 2013
 

subobject (SMW) and set_internal (extension)

What are the differences? Or they are the same?

16:22, 11 February 2013

Yaron has provided information on the differences. Cheers

00:14, 12 February 2013
 

Some subjects not shown in query

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)

23:16, 18 November 2012