Semanticmediawiki: Named subobjects

Created on 15 Apr 2021  路  5Comments  路  Source: SemanticMediaWiki/SemanticMediaWiki

I have a clarifying question regarding named subobjects.

Both the main documentation and the Semantic Scribunto documentation state, that anonymous subobjects are prefered or that [...] manually setting a subobject id. [...] is not recommended.

Are there any performance implications using named subobjects?

question

All 5 comments

Are there any performance implications using named subobjects?

I'm not sure but suspect not

I believe the reason behind this is that you can do much more when you use unnamed subobjects. Cannot remember the last time I used this variant if ever.

Cannot remember the last time I used this variant if ever.

By the contrary, my default is using named subobjects. :joy: By using named subobjects we can atribute properties/values in more than one call to the object. Using unnamed subobjects that is not possible (each call creates a new subobject). Also, an ID to the object (the named part) allows us to query by that ID.

Fair enough. Admittedly I usually pass the object name to the subobject as an annotation to the subobject to establish a direct connection.

It seems that naming objects is a valid approach.
The reason for my question is that I'm adding objects from an external API as subobjects. Some objects are missing data which should be set manually by adding supplemental subobjects to the wikipage (which only works if they get an ID so they are merged).

Thanks all for the help! 馃槂

Was this page helpful?
0 / 5 - 0 ratings

Related issues

plegault3397 picture plegault3397  路  3Comments

Nikerabbit picture Nikerabbit  路  3Comments

MvGulik picture MvGulik  路  4Comments

JeroenDeDauw picture JeroenDeDauw  路  3Comments

mwjames picture mwjames  路  3Comments