Extension talk:Semantic Extra Special Properties

About this board

Extending SESP to include Real Name for User pages

Revansx (talkcontribs)

I think I read that it is now possible to extend SESP to include additional user defined properties. Am I understanding this correctly? If so, does anyone know off-hand if it is possible in theory for a site to add the user's real name to the list of SESP properties or user pages?

Reply to "Extending SESP to include Real Name for User pages"

Number of Duplicate Files in SESP

Revansx (talkcontribs)

In my perfect world -- SESP would provide the number of duplicates for every file as a property so one could write a statement like:

  • [[{{{1}}}]] has {{#show:{{{1}}}|?Has Num Of Duplicates}} duplicates. Is that
Reply to "Number of Duplicate Files in SESP"

SMW 3.0.0 and Approved Revisions 1.0

Summary by Kghbln

You will have to use SMW 3.1.x and SAR 1.0.0 which were not yet released.

Revansx (talkcontribs)
  • MediaWiki: 1.31.1 (a4c8065)
  • Semantic MediaWiki: 3.0.0
  • Semantic Extra Special Properties: 2.0.0
  • Approved Revs: 1.0 (b2f77fb) 15:21, 28 January 2019 (MEZA)

Semantic Properties for Approval status do not update until the next page edit.

I was told that this problem would be fixed by upgrading to SMW 3.0.0, but it is not. Am I missing something?

Kghbln (talkcontribs)

A classic cross-post - again. Continued here

Can we add "Watch List Users" to SESP

Revansx (talkcontribs)

In an enterprise environment, being able to query the page watchers would be a valuable feature. Can we add "Watch List Users" to SESP please?

Reply to "Can we add "Watch List Users" to SESP"

USERGROUP not working for custom user groups

Summary by Kghbln

Either update to SMW 3.0.0 or use cron to rebuild data for user pages on a regular basis or just refresh the respective user page after assigning a new user group.

Revansx (talkcontribs)

The SESP parameter "_USERGROUP" which adds a property to user pages with the users assigned groups .. works well for built-in mw groups, however, I can not seem to get it to work for custom groups. For example, I add:

$wgGroupPermissions['team-A']['read'] = true;

to my LocalSettings.php and the group exists in the Modify User Rights spacial page

I add the user to the group "team-A" and that works well.

SESP however does not pick up on this.

Am I missing a step?

Can someone confirm this.

Revansx (talkcontribs)
Kghbln (talkcontribs)

Works for me. You did refresh the semantic data of the respective user's page?

Revansx (talkcontribs)

yes. i had to do that to get the custom groups to show in SESP.. but it seems that it's not tracking the updates even after I make sure the job queue is clear

Kghbln (talkcontribs)

For the jobs to roll in you need at least SMW 3.0.0. Until then you can rebuild the data for the user pages on a regular basis via cron.

add CDATE feature please

Summary by Kghbln

See the issue on GitHub

Revansx (talkcontribs)

How hard would it be to get a CDATE magic word from SESP that provides the page creation date similar to the CUSER magic word that provides the User who created the page.

Kghbln (talkcontribs)

I believe that I pointed you to the correct spot. In the future I will ignore any post that is being duplicated in one way or the other.

Revision ID is different when viewed in page versus Browse Properties

Lsilverman (talkcontribs)

I've been attempting to write an #ask query that excludes the current page from the result set. I found it discussed here: http://smw.referata.com/wiki/Excluding_a_page_from_an_inline_query

I enabled the _REVID extra special property, ran the maintenance task SMW_refreshData.php, and waited for it to finish.

My query is very simple, but doesn't exclude the current page:

{{#ask: [[Category:MyCategory]] [[Revision ID::!{{REVISIONID}}]]

When I embed {{REVISIONID}} in the page, I get the correct revision number: 22586

When I view Browse Properties, I get a completely different number: 1136

Not sure what to try next.

Revansx (talkcontribs)

I seem to be experiencing this as well. Is there an explanation to this problem? @MWJames, are you saying there is solution to this issue? I read the github link you provided, but I couldn't figure out what I was supposed to be learning from the comment that applies to this issue. Can you clarify, please?

Reply to "Revision ID is different when viewed in page versus Browse Properties"

Error with manual installation

Summary by Kghbln

Installing manually without Composer is not possible. A individual file release is a way out.

Nakohdo (talkcontribs)


I've tried to install this extension without Composer by adding the following line to LocalSettings.php:


However, I get a white screen with the following error message. Could this be a problem with the extension loader? Any pointers welcome.



MediaWiki 1.27.4 | PHP 5.6.25 | Semantic MediaWiki 2.5.6 | BlueSpice 2.27.3

/hamwiki/ MWException from line 176 of /opt/rh/httpd24/root/var/www/html/hamwiki/includes/Hooks.php: Invalid callback \SESP\HookRegistry::onBeforeConfigCompletion in hooks for SMW::Config::BeforeCompletion

#0 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/includes/Settings.php(181): Hooks::run(string, array)
#1 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/src/Services/SharedServicesContainer.php(69): SMW\Settings::newFromGlobals()
#2 [internal function]: SMW\Services\SharedServicesContainer->SMW\Services\{closure}(Onoi\CallbackContainer\CallbackContainerBuilder)
#3 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/vendor/onoi/callback-container/src/CallbackContainerBuilder.php(260): call_user_func_array(Closure, array)
#4 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/vendor/onoi/callback-container/src/CallbackContainerBuilder.php(288): Onoi\CallbackContainer\CallbackContainerBuilder->getReturnValueFromCallbackHandlerFor(string, array)
#5 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/vendor/onoi/callback-container/src/CallbackContainerBuilder.php(195): Onoi\CallbackContainer\CallbackContainerBuilder->getReturnValueFromSingletonFor(string, array)
#6 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/src/ApplicationFactory.php(230): Onoi\CallbackContainer\CallbackContainerBuilder->singleton(string)
#7 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/src/MediaWiki/MwCollaboratorFactory.php(149): SMW\ApplicationFactory->getSettings()
#8 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/includes/Setup.php(108): SMW\MediaWiki\MwCollaboratorFactory->newMediaWikiDatabaseConnectionProvider(string)
#9 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/includes/Setup.php(55): SMW\Setup->registerConnectionProviders()
#10 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/load.php(132): SMW\Setup->run()
#11 /opt/rh/httpd24/root/var/www/html/hamwiki/extensions/SemanticMediaWiki/load.php(54): SemanticMediaWiki::onExtensionFunction()
#12 [internal function]: SemanticMediaWiki::{closure}()
#13 /opt/rh/httpd24/root/var/www/html/hamwiki/includes/Setup.php(838): call_user_func(Closure)
#14 /opt/rh/httpd24/root/var/www/html/hamwiki/includes/WebStart.php(137): require_once(string)
#15 /opt/rh/httpd24/root/var/www/html/hamwiki/index.php(40): require(string)
#16 {main}
Kghbln (talkcontribs)

That's not possible. You imperatively have to use Composer.

Nakohdo (talkcontribs)

Many thanks for the quick reply and this information!

Kghbln (talkcontribs)

You could do something like an individual file release on a laptop or so which has Composer and move over the files to your webspace.

Crysis19 (talkcontribs)

Can someone guide me through an installation of this extension without a lot of geek speak?

I don't have a week to learn all of that just to use this extension.

I have installed Composer via the Windows exe file, directed at my PHP.exe inside the XAMPP installation I am running MediaWiki on.

I have a JSON file inside the MediaWiki folder that has two requires in it. SESP 1.5 and SBL 1.4.

However when I run Composer Update, it blithely ignores the composer.json file. Tells me I don't have some global composer.json in my Roaming directory.

Then proceeds to spit out something about GIT, and start downloading all of the random stuff that is already inside my Vendor folder.

It runs for hours on end and doesn't get anything at all that mentions those two extensions.

Can someone please either package up the extension/vendor files I need for this so I can just drop them into my MW installation folder? Or come up with a simpler guide to using Composer that cuts out all the crap I DON'T need.

Reply to "Installation Help"

Initialisation value '' is not a number error.

Mitchelln (talkcontribs)


I'm running SMW on SMW 1.21.2. My SESP version is 0.2.8. I'm getting errors when saving pages using a Semantic Form (v2.6). It does not happen everytime, but I cannot see a pattern. However, it is happening a lot.

Initialisation value is not a number.


Reply to "Initialisation value '' is not a number error."
Return to "Semantic Extra Special Properties" page.