Jump to content

Extension talk:Semantic Extra Special Properties

About this board

Upgrading mediawik 1.31.8 to 1.35.1

4
Legaulph (talkcontribs)
MediaWiki 1.35.1
PHP 7.4.15 (apache2handler)
MySQL 8.0.23
Semantic MediaWiki 3.2.2
Semantic Extra Special Properties 2.1.0

When running the php maintenance\update.php, Im getting the following error.

Importing from sesp.groups.json ...

   ... smw/schema:Group:Extra special properties ...               [FAILED]

       ├ smw-schema-error-input-schema, property-group-schema.v1

       └ smw-schema-error-violatio ... lue found, but an object is required

   ... smw/schema:Group:Exif special properties ...                [FAILED]

       ├ smw-schema-error-input-schema, property-group-schema.v1

       └ smw-schema-error-violatio ... lue found, but an object is required

   ... done.

Importing from smw.groups.json ...

   ... smw/schema:Group:Schema properties ...PHP Notice:  Undefined index: implicit in D:\Bitnami\wampstack\apps\mediawiki\includes\user\UserGroupManager.php on line 267

Notice: Undefined index: implicit in D:\Bitnami\wampstack\apps\mediawiki\includes\user\UserGroupManager.php on line 267

              [EXISTS,REPLACE]

   ... smw/schema:Group:Predefined properties ...PHP Notice:  Undefined index: implicit in D:\Bitnami\wampstack\apps\mediawiki\includes\user\UserGroupManager.php on line 267

Notice: Undefined index: implicit in D:\Bitnami\wampstack\apps\mediawiki\includes\user\UserGroupManager.php on line 267

          [EXISTS,REPLACE]


Any help would be great,

Thanks Legaulph (talk) 15:15, 30 March 2021 (UTC)

NotYour007 (talkcontribs)

Just hit this, @Legaulph

Did you figure it out?

Plegault3397 (talkcontribs)
NotYour007 (talkcontribs)
Reply to "Upgrading mediawik 1.31.8 to 1.35.1"
88.130.155.122 (talkcontribs)

I am struggling to incorporate extra special properties link _EUSER or _CUSER into a wiki-page. I am trying to automatically display the authors of an article within this article.

What would this query look like? Thanks..

Kghbln (talkcontribs)

For _EUSER it would be:

{{#show:
 {{FULLPAGENAME}}
 |?Page author
}}

Extending SESP to include Real Name for User pages

1
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

1
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

2
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

1
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

5
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

2
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

3
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}}]]
|format=ul
}}

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

4
Summary by Kghbln

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

Nakohdo (talkcontribs)

Hi,

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

require_once("$IP/extensions/SemanticExtraSpecialProperties/SemanticExtraSpecialProperties.php");

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

TIA

Frank

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

Backtrace:
#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.