Help talk:Adding subobjects

From semantic-mediawiki.org
Jump to: navigation, search
Please note

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 SMW user mailing list is always a good idea for seeking help.

Please note

Names

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?

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

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.
Alex Mashin 10:34, 11 April 2012 (CEST)

  • Oh, I see. It's other way round now, and who cares about backward compability.
    Alex 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

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? --AdSvS 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) -- MWJames 18:28, 27. Apr. 2012‎

Querying subobjects

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?
Alex Mashintalk 12:08, 8 August 2012 (CEST)

Contents

Thread titleRepliesLast modified
Adding Subobjects using Semantic Forms007:36, 20 October 2013
{{#subobject::}} vs {{#subobject::-}}218:19, 7 September 2013
Querying itself120: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

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

WolfgangFahl (talk)07: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?

Cavila (talk)10:31, 7 September 2013

Querying itself

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

Is it a good idea?

Alex Mashintalk18:14, 9 June 2013

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

Stefahn (talk)20:47, 9 June 2013
 

subobject (SMW) and set_internal (extension)

What are the differences? Or they are the same?

Emijrp (talk)16:22, 11 February 2013

Yaron has provided information on the differences. Cheers

[[kgh]] (talk)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)

DinoKev (talk)23:16, 18 November 2012