!buSEZBEvVNBUdwhvvn:matrix.org

Semantic MediaWiki

190 Members
SMW lets you store and query data with­in MediaWiki pages. Mirrored in the SMW Telegram, which you can join at https://t.me/joinchat/MCG84k3OMoaYZoFA9yhyMg10 Servers

Load older messages


SenderMessageTime
2 Jan 2024
@kimmybrewer:matrix.orgKimmy Brewer
In reply to @jeffreywang:matrix.org
Which version of Canasta is this?
We are using 1.3.0
13:45:51
@justinl:matrix.orgjustinlQuick, simple response: I know that DPL was in use before SMW on the GW2 English wiki (also only DPL is used on the GW1 wiki, no SMW there), and removing it would be a good deal of work for our editors.15:17:11
@jeffreywang:matrix.orgJeffrey Wang (MyWikis)update.php runs every time the container is first booted. The developers are unable to speculate on what's going wrong in a bespoke Kubernetes setup, but the general advice I can give is to kill off the container/pod and spawn a new one.17:48:50
@jeffreywang:matrix.orgJeffrey Wang (MyWikis) If you need to run update.php while the pod is still running, you can do so by doing something like (where the following command syntax is not correct but I hope it gets the point across) kubectl exec -- php /var/www/mediawiki/w/maintenance/update.php --quick 17:49:58
3 Jan 2024
@wouter_egel:matrix.orgWouter Rademaker (egel.org)
In reply to @krabina:matrix.org
I never understood why anyone would want to use DPL when they have SMW. (I personally never have used DPL)
DPL is sometimes useful if you want to do certain things that go against the philosophy of SMW. For example, DPL allows you to select articles in a category, excluding articles in underlying categories, see for example: https://nl.scoutwiki.org/Portaal:Scoutingmethode
15:22:50
4 Jan 2024
@kimmybrewer:matrix.orgKimmy BrewerHello! Just an update. The author of the extension we brought in just got back to us and said it's not compatible with our current version of MW. As soon we can roll back hopefully the SMW upgrade key issue is resolved by itself. Thank you for your ideas and thoughts I appreciate it. 16:41:10
13 Jan 2024
@telegram_217433484:t2bot.ioMatthew Marchese Anyone know if there's technically a way to set $wgMaxArticleSize for a specific namespace? We have a namespace that's protected and therefore controlled from DDoS abuse. I'd like to allow larger than normal limits exclusively within this namespace. https://www.mediawiki.org/wiki/Manual:$wgMaxArticleSize 21:46:48
@jeffreywang:matrix.orgJeffrey Wang (MyWikis)Maybe there is a hook that can emulate the aborting of the save of the page if it can detect the max article size in KB. You could write the hook to exclude the check in that database. It would require you to write an extension to achieve that, or very unorthodoxically but still possible as of MediaWiki 1.39, add that hook function to your LocalSettings.php. You’d then stop using $wgMaxArticleSize22:16:02
@jeffreywang:matrix.orgJeffrey Wang (MyWikis)Idk if there is a hook that can somehow pass the page size in KB, though you could always use some sort of PHP function to calculate it using the length of the text trying to be saved.22:17:29
@telegram_217433484:t2bot.ioMatthew MarcheseThank you for the thoughts, Jeffery Wang. It'23:01:22
@telegram_217433484:t2bot.ioMatthew Marchese* Thank you for the thoughts, Jeffery Wang. It's a little out of the solution scope for me to write a custom extension for this. Was hoping for more of a off-the-shelf or existing solution. :) Appreciate any other feedback on this item!23:02:04
14 Jan 2024
@alex.mashin:matrix.orgAlexander Mashin
In reply to @telegram_217433484:t2bot.io
Anyone know if there's technically a way to set $wgMaxArticleSize for a specific namespace? We have a namespace that's protected and therefore controlled from DDoS abuse. I'd like to allow larger than normal limits exclusively within this namespace. https://www.mediawiki.org/wiki/Manual:$wgMaxArticleSize

You might try this:

define( 'NS_LARGE', NS_TEXT );
define( 'LARGE_ARTICLE', 10 * 1024 * 1024 ); // 10MB.
$wgHooks['ParserClearState'][] = function( Parser $parser ) {
	$title = $parser->getTitle();
	if ( $title ) {
		$ns = $title->getNamespace();
		if ( $ns === NS_LARGE ) {
			$options = $parser->getOptions();
			$options['maxIncludeSize'] = LARGE_ARTICLE;
			$parser->setOptions( $options );
		}
	}
};
09:12:02
@alex.mashin:matrix.orgAlexander Mashin *

You might try this:

define( 'NS_LARGE', NS_… ); // The protected namespace.
define( 'LARGE_ARTICLE', 10 * 1024 * 1024 ); // 10MB.
$wgHooks['ParserClearState'][] = function( Parser $parser ) {
	$title = $parser->getTitle();
	if ( $title ) {
		$ns = $title->getNamespace();
		if ( $ns === NS_LARGE ) {
			$options = $parser->getOptions();
			$options['maxIncludeSize'] = LARGE_ARTICLE;
			$parser->setOptions( $options );
		}
	}
};

But this hook will be called once per MW message as well.

09:13:13
@alex.mashin:matrix.orgAlexander Mashin *

You might try this in LocalSettings.php:

define( 'NS_LARGE', NS_… ); // The protected namespace.
define( 'LARGE_ARTICLE', 10 * 1024 * 1024 ); // 10MB.
$wgHooks['ParserClearState'][] = function( Parser $parser ) {
	$title = $parser->getTitle();
	if ( $title ) {
		$ns = $title->getNamespace();
		if ( $ns === NS_LARGE ) {
			$options = $parser->getOptions();
			$options['maxIncludeSize'] = LARGE_ARTICLE;
			$parser->setOptions( $options );
		}
	}
};

But this hook will be called once per MW message as well.

09:13:56
@wouter_egel:matrix.orgWouter Rademaker (egel.org)
In reply to @telegram_217433484:t2bot.io
Anyone know if there's technically a way to set $wgMaxArticleSize for a specific namespace? We have a namespace that's protected and therefore controlled from DDoS abuse. I'd like to allow larger than normal limits exclusively within this namespace. https://www.mediawiki.org/wiki/Manual:$wgMaxArticleSize
You can also look at the options offered by the AbuseFilter extension. With it, you can limit article size by namespace, as well as alternatives to slow down or prevent unwanted edits.
22:26:51
@telegram_217433484:t2bot.ioMatthew Marchese
In reply to @wouter_egel:matrix.org
You can also look at the options offered by the AbuseFilter extension. With it, you can limit article size by namespace, as well as alternatives to slow down or prevent unwanted edits.
This is a great tip. We do have AbuseFilter already in place
22:27:42
15 Jan 2024
@telegram_291383470:t2bot.ioAlexander Mashin
In reply to @wouter_egel:matrix.org
You can also look at the options offered by the AbuseFilter extension. With it, you can limit article size by namespace, as well as alternatives to slow down or prevent unwanted edits.
Yes, that would be simpler. Set a sufficiently big $wgMaxArticleSize and limit the article size with AbuseFilter.
02:06:34
23 Jan 2024
@krabina:matrix.orgkrabinaHow about someone knowledgeable about SMW would be a mentor in Google Summer of Code 2024? https://www.mediawiki.org/wiki/Google_Summer_of_Code/Mentors21:30:02
24 Jan 2024
@dwizzy:tchncs.deJoris
In reply to @krabina:matrix.org
How about someone knowledgeable about SMW would be a mentor in Google Summer of Code 2024?
https://www.mediawiki.org/wiki/Google_Summer_of_Code/Mentors
we'll have a look!
08:42:47
@revansx:matrix.orgrevansx

Is it possible to write an #ask that returns the values of given property?

Hypothetically, something like:
{{#ask: [[Property:Foo]] | mainlabel=- | link=none | value= | format=plainlist }}

Is this possible?

18:48:05
@revansx:matrix.orgrevansx *

Is it possible to write an #ask that returns the values of given property?

For example, if I have a Property named "Foo", I would like to write something like:
{{#ask: [[Property:Foo]] | mainlabel=- | link=none | value= | format=plainlist }}
to return a list of all the values of Foo in the wiki. Duplicates are ok.

Is this possible?

18:49:33
@krabina:matrix.orgkrabinaYes, you just have to add |?Foo as printout.18:51:43
@telegram_925330591:t2bot.ioFelipe Schenone https://www.semantic-mediawiki.org/wiki/Help:List_the_set_of_unique_values_for_a_property 19:03:18
25 Jan 2024
@venusnake:matrix.orgVENUSima_645b56b.jpeg
Download ima_645b56b.jpeg
14:25:05
@venusnake:matrix.orgVENUSima_8ab9aba.jpeg
Download ima_8ab9aba.jpeg
14:25:13
@venusnake:matrix.orgVENUS Hello! Has anyone ran across this or knows what may be causing it? I’m able to create properties and their type without an any issue. If I try to create a template the semantic property isn’t pulling any properties (image attached). This install does use a remote (same LAN) virtuoso which seems to be working fine 14:25:16
@krabina:matrix.orgkrabinaIt is a PageForms feature, so might be an issue in PF.17:41:22
26 Jan 2024
@telegram_217433484:t2bot.ioMatthew Marchese
In reply to @wouter_egel:matrix.org
You can also look at the options offered by the AbuseFilter extension. With it, you can limit article size by namespace, as well as alternatives to slow down or prevent unwanted edits.
Ended up going with this option and it's working great. Thanks again for the help!
23:02:53
1 Feb 2024
@krabina:matrix.orgkrabina At SMWCon we decided to try to get together as SMW community at the MediaWiki Hackathon 2024 in Tallin from May 3rd-5th: https://www.mediawiki.org/wiki/Wikimedia_Hackathon_2024 So please register for the hackathon soon, as long as it is possible. Tomorrow we there will be the MWStake monthly meeting, where this will also be announced: https://mwstake.org/mwstake/wiki/Event:19317:16:01
8 Feb 2024
@maxn-nth:matrix.orgMaximilian Nöth joined the room.09:04:13

Show newer messages


Back to Room ListRoom Version: 5