You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(2) |
Dec
(9) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(1) |
Feb
(5) |
Mar
(38) |
Apr
(16) |
May
(70) |
Jun
(80) |
Jul
(55) |
Aug
(34) |
Sep
(50) |
Oct
(30) |
Nov
(52) |
Dec
(34) |
2007 |
Jan
(41) |
Feb
(38) |
Mar
(91) |
Apr
(143) |
May
(104) |
Jun
(47) |
Jul
(141) |
Aug
(151) |
Sep
(73) |
Oct
(101) |
Nov
(49) |
Dec
(64) |
2008 |
Jan
(64) |
Feb
(82) |
Mar
(91) |
Apr
(82) |
May
(84) |
Jun
(120) |
Jul
(140) |
Aug
(241) |
Sep
(154) |
Oct
(92) |
Nov
(115) |
Dec
(154) |
2009 |
Jan
(288) |
Feb
(238) |
Mar
(143) |
Apr
(121) |
May
(148) |
Jun
(89) |
Jul
(170) |
Aug
(219) |
Sep
(192) |
Oct
(208) |
Nov
(354) |
Dec
(242) |
2010 |
Jan
(156) |
Feb
(398) |
Mar
(388) |
Apr
(259) |
May
(268) |
Jun
(225) |
Jul
(338) |
Aug
(278) |
Sep
(249) |
Oct
(311) |
Nov
(212) |
Dec
(267) |
2011 |
Jan
(291) |
Feb
(205) |
Mar
(249) |
Apr
(180) |
May
(212) |
Jun
(206) |
Jul
(285) |
Aug
(228) |
Sep
(276) |
Oct
(212) |
Nov
(313) |
Dec
(153) |
2012 |
Jan
(245) |
Feb
(267) |
Mar
(169) |
Apr
(120) |
May
(165) |
Jun
(93) |
Jul
(152) |
Aug
(180) |
Sep
(102) |
Oct
(123) |
Nov
(164) |
Dec
(171) |
2013 |
Jan
(255) |
Feb
(224) |
Mar
(194) |
Apr
(223) |
May
(179) |
Jun
(168) |
Jul
(147) |
Aug
(200) |
Sep
(195) |
Oct
(162) |
Nov
(191) |
Dec
(173) |
2014 |
Jan
(221) |
Feb
(206) |
Mar
(235) |
Apr
(181) |
May
(108) |
Jun
(131) |
Jul
(142) |
Aug
(212) |
Sep
(149) |
Oct
(179) |
Nov
(136) |
Dec
(94) |
2015 |
Jan
(124) |
Feb
(138) |
Mar
(99) |
Apr
(84) |
May
(99) |
Jun
(103) |
Jul
(33) |
Aug
(63) |
Sep
(125) |
Oct
(88) |
Nov
(122) |
Dec
(56) |
2016 |
Jan
(94) |
Feb
(94) |
Mar
(67) |
Apr
(83) |
May
(55) |
Jun
(133) |
Jul
(96) |
Aug
(68) |
Sep
(97) |
Oct
(99) |
Nov
(137) |
Dec
(114) |
2017 |
Jan
(47) |
Feb
(26) |
Mar
(109) |
Apr
(49) |
May
(109) |
Jun
(112) |
Jul
(61) |
Aug
(34) |
Sep
(35) |
Oct
(61) |
Nov
(79) |
Dec
(33) |
2018 |
Jan
(28) |
Feb
(57) |
Mar
(34) |
Apr
(19) |
May
(27) |
Jun
(43) |
Jul
(26) |
Aug
(23) |
Sep
(23) |
Oct
(90) |
Nov
(47) |
Dec
(37) |
2019 |
Jan
(38) |
Feb
(39) |
Mar
(31) |
Apr
(17) |
May
(45) |
Jun
(35) |
Jul
(22) |
Aug
(69) |
Sep
(30) |
Oct
(20) |
Nov
(52) |
Dec
(39) |
2020 |
Jan
(36) |
Feb
(26) |
Mar
(47) |
Apr
(21) |
May
(27) |
Jun
(23) |
Jul
(9) |
Aug
(6) |
Sep
(28) |
Oct
(9) |
Nov
(8) |
Dec
(38) |
2021 |
Jan
(46) |
Feb
(54) |
Mar
(36) |
Apr
(30) |
May
(11) |
Jun
(26) |
Jul
(28) |
Aug
(5) |
Sep
(33) |
Oct
(19) |
Nov
(28) |
Dec
(41) |
2022 |
Jan
(36) |
Feb
(28) |
Mar
(39) |
Apr
(61) |
May
(37) |
Jun
(25) |
Jul
(5) |
Aug
(23) |
Sep
(40) |
Oct
(40) |
Nov
(18) |
Dec
(36) |
2023 |
Jan
(30) |
Feb
(46) |
Mar
(34) |
Apr
(9) |
May
(17) |
Jun
(20) |
Jul
(1) |
Aug
(2) |
Sep
(1) |
Oct
(10) |
Nov
(16) |
Dec
(12) |
2024 |
Jan
(9) |
Feb
(25) |
Mar
(15) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Александр М. <ale...@gm...> - 2024-03-16 07:34:54
|
Dear all, In PHP, when formatting a result row, is there a way to know the "owner" of a value returned by a chain printout (e.g., ResultArray), that is the title of the page, in which this chain value has been set? I.e., for ?relation1.property2 get the name of the target of relation1? Alexander Mashin |
From: Dominik M. <do...@we...> - 2024-03-15 16:39:40
|
Hi Bernhard, good idea: I just did! https://www.semantic-mediawiki.org/wiki/Help:Count_a_SMW_Property%27s_values_for_a_page Thanks, Dominik Am 15.03.2024 um 09:00 schrieb Bernhard Krabina, KM-A: > > Can you add this here, please? > > https://www.semantic-mediawiki.org/wiki/Category:Tips > > Best, > > Bernhard > > *Von:*Dominik Maus <do...@we...> > *Gesendet:* Freitag, 15. März 2024 00:21 > *An:* Jeremi Plazas <ke...@gm...>; > sem...@li...; Bernhard Krabina, KM-A > <ber...@km...> > *Betreff:* Re: [Semediawiki-user] Count contents of a property > > Oh oops, > yes I made 3 brackets of course! > > I found a way. It's a little a dirty one but it works. However it'll > be inefficient since you need to do two queries: > > {{#ifexpr: > {{#ask: > [[{{FULLPAGENAME}}]] > [[Loot::+]] > |format=count > }} > 0 > |{{#expr: > {{#count: > {{#ask: > [[{{FULLPAGENAME}}]] > [[Loot::+]] > |?Loot= > |mainlabel=- > |link=none > |format=list > }} > |,}} + 1 > }} > }} > > > Thanks everyone for having those cool tips, that helped me to get > deeper into the topic! > > Dominik > > Am 14.03.2024 um 23:07 schrieb Jeremi Plazas: > > Also it's "{{{rank|}}}" with 3 braces on each side not two. > > Cheers, > > Jeremi > > On Mar 14, 2024 at 11:05 PM +0100, Jeremi Plazas > <ke...@gm...> <mailto:ke...@gm...>, wrote: > > I know this is all very "hacky" but my last 2 suggestions: > > * Trying adding "|valuesep=+" so you don't have to worry > about having it in your template and adding the 0. > * Try to condense onto one line. Sometimes these functions > can't handle line breaks or too many spaces. > > Beyond that I'm out of tricks 😄 > > Cheers, > > Jeremi > > On Mar 14, 2024 at 11:02 PM +0100, Dominik Maus > <do...@we...> <mailto:do...@we...>, wrote: > > That failed, too. > > Am 14.03.2024 um 23:00 schrieb Jeremi Plazas: > > Try adding "link=none" > > Cheers, > > Jeremi > > On Mar 14, 2024 at 10:59 PM +0100, Dominik Maus > <do...@we...> <mailto:do...@we...>, wrote: > > I tried feeding it to {{#expr}} but it failed. > > Basically I did the following: > > {{#expr:0 > {{#ask: > [[{{FULLPAGENAME}}]] > [[Loot::+]] > |?Loot > |format=valuerank > |template=Count Property Occurences Returner > }} > }} > > The template simply returns '+{{rank|0}}', that's > why I added the 0 > after the expr call (dirty, I know, just for the > test). The query ended > up with 'Expression error: Unrecognized > punctuation character "[".'. > I've googled a bit and found there's some option I > could add > '|import-annotation=true' to the #ask, but this > ended up in another > error: 'Expression error: Unrecognized word "ul". '. > > This is far from my smw knowledge at all, I have > no idea what's behind > those errors. > > Any suggestions? > > Thanks, > Dominik > > > Am 14.03.2024 um 22:19 schrieb Jeremi Plazas: > > Well not if there are different values > assigned within one page. I suggested > valuerank because you could use it to list the > occurrences maybe separated by « + » and then > feed into an {{#expr}} tag and get a sum? > Maybe ?🤔 > ¯\_(ツ)_/¯ > > Cheers, > > Jeremi > Le 14 mars 2024 à 10:16 PM +0100, Bernhard > Krabina, KM-A <ber...@km...> > <mailto:ber...@km...>, a écrit : > > > But if you only query one particular > page {{#ask:[[MyPage]]...}}, does > valuerank not give you that? > > > > Best, > > Bernhard > > > > -----Ursprüngliche Nachricht----- > > Von: Dominik Maus <do...@we...> > <mailto:do...@we...> > > Gesendet: Donnerstag, 14. März 2024 21:47 > > An: Jeremi Plazas <ke...@gm...> > <mailto:ke...@gm...>; > sem...@li... > > Betreff: Re: [Semediawiki-user] Count > contents of a property > > > > Thanks for your answer Jeremi, > > valuerank had my attention earlier but I > cannot see a way to just count the set > property values. Valuerank seems to count > the occurences for each of the value which > is not what I want. > > > > Thanks, > > Dominik > > > > Am 14.03.2024 um 17:39 schrieb Jeremi > Plazas: > > >> Look into valuerank format: > >> > https://www.semantic-mediawiki.org/wiki/Help:Valuerank_format > >> > >> Cheers, > >> > >> Jeremi > >> On Mar 14, 2024 at 5:38 PM +0100, > Dominik Maus <do...@we...> > <mailto:do...@we...>, > >> wrote: > > >>> Greetings, > >>> I am having multiple values in > a single property per page but can't > >>> seem to find a good way to > count those. I know of > Extension:Arrays > >>> but it got mentioned that the > extension will not work in future > >>> MediaWiki releases, so I am > looking for alternatives. > >>> > >>> SMW Result format 'count' > isn't what I am looking for since > this only > >>> returns the page count, not > the property values count. > >>> > >>> What I wanted to do is: > >>> {{#set:myprop=A}} > >>> {{#set:myprop=B}} > >>> {{#set:myprop=C}} > >>> > >>> This should be queried somehow > and result in 3. > >>> > >>> Thanks! > >>> > >>> > >>> > _______________________________________________ > >>> Semediawiki-user mailing list > >>> > Sem...@li... > >>> > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > > > > _______________________________________________ > > Semediawiki-user mailing list > > Sem...@li... > > > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > > > Am 14.03.2024 um 22:19 schrieb Jeremi Plazas: > > Well not if there are different values > assigned within one page. I suggested > valuerank because you could use it to list the > occurrences maybe separated by « + » and then > feed into an {{#expr}} tag and get a sum? > Maybe ?🤔 > ¯\_(ツ)_/¯ > > Cheers, > > Jeremi > Le 14 mars 2024 à 10:16 PM +0100, Bernhard > Krabina, KM-A <ber...@km...> > <mailto:ber...@km...>, a écrit : > > > But if you only query one particular > page {{#ask:[[MyPage]]...}}, does > valuerank not give you that? > > > > Best, > > Bernhard > > > > -----Ursprüngliche Nachricht----- > > Von: Dominik Maus <do...@we...> > <mailto:do...@we...> > > Gesendet: Donnerstag, 14. März 2024 21:47 > > An: Jeremi Plazas <ke...@gm...> > <mailto:ke...@gm...>; > sem...@li... > > Betreff: Re: [Semediawiki-user] Count > contents of a property > > > > Thanks for your answer Jeremi, > > valuerank had my attention earlier but I > cannot see a way to just count the set > property values. Valuerank seems to count > the occurences for each of the value which > is not what I want. > > > > Thanks, > > Dominik > > > > Am 14.03.2024 um 17:39 schrieb Jeremi > Plazas: > > >> Look into valuerank format: > >> > https://www.semantic-mediawiki.org/wiki/Help:Valuerank_format > >> > >> Cheers, > >> > >> Jeremi > >> On Mar 14, 2024 at 5:38 PM +0100, > Dominik Maus <do...@we...> > <mailto:do...@we...>, > >> wrote: > > >>> Greetings, > >>> I am having multiple values in > a single property per page but can't > >>> seem to find a good way to > count those. I know of > Extension:Arrays > >>> but it got mentioned that the > extension will not work in future > >>> MediaWiki releases, so I am > looking for alternatives. > >>> > >>> SMW Result format 'count' > isn't what I am looking for since > this only > >>> returns the page count, not > the property values count. > >>> > >>> What I wanted to do is: > >>> {{#set:myprop=A}} > >>> {{#set:myprop=B}} > >>> {{#set:myprop=C}} > >>> > >>> This should be queried somehow > and result in 3. > >>> > >>> Thanks! > >>> > >>> > >>> > _______________________________________________ > >>> Semediawiki-user mailing list > >>> > Sem...@li... > >>> > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > > > > > > _______________________________________________ > > Semediawiki-user mailing list > > Sem...@li... > > > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > |
From: Bernhard K. KM-A <ber...@km...> - 2024-03-15 08:00:30
|
Can you add this here, please? https://www.semantic-mediawiki.org/wiki/Category:Tips Best, Bernhard Von: Dominik Maus <do...@we...> Gesendet: Freitag, 15. März 2024 00:21 An: Jeremi Plazas <ke...@gm...>; sem...@li...; Bernhard Krabina, KM-A <ber...@km...> Betreff: Re: [Semediawiki-user] Count contents of a property Oh oops, yes I made 3 brackets of course! I found a way. It's a little a dirty one but it works. However it'll be inefficient since you need to do two queries: {{#ifexpr: {{#ask: [[{{FULLPAGENAME}}]] [[Loot::+]] |format=count }} > 0 |{{#expr: {{#count: {{#ask: [[{{FULLPAGENAME}}]] [[Loot::+]] |?Loot= |mainlabel=- |link=none |format=list }} |,}} + 1 }} }} Thanks everyone for having those cool tips, that helped me to get deeper into the topic! Dominik Am 14.03.2024 um 23:07 schrieb Jeremi Plazas: Also it's "{{{rank|}}}" with 3 braces on each side not two. Cheers, Jeremi On Mar 14, 2024 at 11:05 PM +0100, Jeremi Plazas <ke...@gm...><mailto:ke...@gm...>, wrote: I know this is all very "hacky" but my last 2 suggestions: * Trying adding "|valuesep=+" so you don't have to worry about having it in your template and adding the 0. * Try to condense onto one line. Sometimes these functions can't handle line breaks or too many spaces. Beyond that I'm out of tricks 😄 Cheers, Jeremi On Mar 14, 2024 at 11:02 PM +0100, Dominik Maus <do...@we...><mailto:do...@we...>, wrote: That failed, too. Am 14.03.2024 um 23:00 schrieb Jeremi Plazas: Try adding "link=none" Cheers, Jeremi On Mar 14, 2024 at 10:59 PM +0100, Dominik Maus <do...@we...><mailto:do...@we...>, wrote: I tried feeding it to {{#expr}} but it failed. Basically I did the following: {{#expr:0 {{#ask: [[{{FULLPAGENAME}}]] [[Loot::+]] |?Loot |format=valuerank |template=Count Property Occurences Returner }} }} The template simply returns '+{{rank|0}}', that's why I added the 0 after the expr call (dirty, I know, just for the test). The query ended up with 'Expression error: Unrecognized punctuation character "[".'. I've googled a bit and found there's some option I could add '|import-annotation=true' to the #ask, but this ended up in another error: 'Expression error: Unrecognized word "ul". '. This is far from my smw knowledge at all, I have no idea what's behind those errors. Any suggestions? Thanks, Dominik Am 14.03.2024 um 22:19 schrieb Jeremi Plazas: Well not if there are different values assigned within one page. I suggested valuerank because you could use it to list the occurrences maybe separated by « + » and then feed into an {{#expr}} tag and get a sum? Maybe ?🤔 ¯\_(ツ)_/¯ Cheers, Jeremi Le 14 mars 2024 à 10:16 PM +0100, Bernhard Krabina, KM-A <ber...@km...><mailto:ber...@km...>, a écrit : > But if you only query one particular page {{#ask:[[MyPage]]...}}, does valuerank not give you that? > > Best, > Bernhard > > -----Ursprüngliche Nachricht----- > Von: Dominik Maus <do...@we...><mailto:do...@we...> > Gesendet: Donnerstag, 14. März 2024 21:47 > An: Jeremi Plazas <ke...@gm...><mailto:ke...@gm...>; sem...@li...<mailto:sem...@li...> > Betreff: Re: [Semediawiki-user] Count contents of a property > > Thanks for your answer Jeremi, > valuerank had my attention earlier but I cannot see a way to just count the set property values. Valuerank seems to count the occurences for each of the value which is not what I want. > > Thanks, > Dominik > > Am 14.03.2024 um 17:39 schrieb Jeremi Plazas: >> Look into valuerank format: >> https://www.semantic-mediawiki.org/wiki/Help:Valuerank_format >> >> Cheers, >> >> Jeremi >> On Mar 14, 2024 at 5:38 PM +0100, Dominik Maus <do...@we...><mailto:do...@we...>, >> wrote: >>> Greetings, >>> I am having multiple values in a single property per page but can't >>> seem to find a good way to count those. I know of Extension:Arrays >>> but it got mentioned that the extension will not work in future >>> MediaWiki releases, so I am looking for alternatives. >>> >>> SMW Result format 'count' isn't what I am looking for since this only >>> returns the page count, not the property values count. >>> >>> What I wanted to do is: >>> {{#set:myprop=A}} >>> {{#set:myprop=B}} >>> {{#set:myprop=C}} >>> >>> This should be queried somehow and result in 3. >>> >>> Thanks! >>> >>> >>> _______________________________________________ >>> Semediawiki-user mailing list >>> Sem...@li...<mailto:Sem...@li...> >>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > _______________________________________________ > Semediawiki-user mailing list > Sem...@li...<mailto:Sem...@li...> > https://lists.sourceforge.net/lists/listinfo/semediawiki-user _______________________________________________ Semediawiki-user mailing list Sem...@li...<mailto:Sem...@li...> https://lists.sourceforge.net/lists/listinfo/semediawiki-user Am 14.03.2024 um 22:19 schrieb Jeremi Plazas: Well not if there are different values assigned within one page. I suggested valuerank because you could use it to list the occurrences maybe separated by « + » and then feed into an {{#expr}} tag and get a sum? Maybe ?🤔 ¯\_(ツ)_/¯ Cheers, Jeremi Le 14 mars 2024 à 10:16 PM +0100, Bernhard Krabina, KM-A <ber...@km...><mailto:ber...@km...>, a écrit : > But if you only query one particular page {{#ask:[[MyPage]]...}}, does valuerank not give you that? > > Best, > Bernhard > > -----Ursprüngliche Nachricht----- > Von: Dominik Maus <do...@we...><mailto:do...@we...> > Gesendet: Donnerstag, 14. März 2024 21:47 > An: Jeremi Plazas <ke...@gm...><mailto:ke...@gm...>; sem...@li...<mailto:sem...@li...> > Betreff: Re: [Semediawiki-user] Count contents of a property > > Thanks for your answer Jeremi, > valuerank had my attention earlier but I cannot see a way to just count the set property values. Valuerank seems to count the occurences for each of the value which is not what I want. > > Thanks, > Dominik > > Am 14.03.2024 um 17:39 schrieb Jeremi Plazas: >> Look into valuerank format: >> https://www.semantic-mediawiki.org/wiki/Help:Valuerank_format >> >> Cheers, >> >> Jeremi >> On Mar 14, 2024 at 5:38 PM +0100, Dominik Maus <do...@we...><mailto:do...@we...>, >> wrote: >>> Greetings, >>> I am having multiple values in a single property per page but can't >>> seem to find a good way to count those. I know of Extension:Arrays >>> but it got mentioned that the extension will not work in future >>> MediaWiki releases, so I am looking for alternatives. >>> >>> SMW Result format 'count' isn't what I am looking for since this only >>> returns the page count, not the property values count. >>> >>> What I wanted to do is: >>> {{#set:myprop=A}} >>> {{#set:myprop=B}} >>> {{#set:myprop=C}} >>> >>> This should be queried somehow and result in 3. >>> >>> Thanks! >>> >>> >>> _______________________________________________ >>> Semediawiki-user mailing list >>> Sem...@li...<mailto:Sem...@li...> >>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > _______________________________________________ > Semediawiki-user mailing list > Sem...@li...<mailto:Sem...@li...> > https://lists.sourceforge.net/lists/listinfo/semediawiki-user _______________________________________________ Semediawiki-user mailing list Sem...@li...<mailto:Sem...@li...> https://lists.sourceforge.net/lists/listinfo/semediawiki-user |
From: Bernhard K. KM-A <ber...@km...> - 2024-03-15 00:50:08
|
But if you only query one particular page {{#ask:[[MyPage]]...}}, does valuerank not give you that? Best, Bernhard -----Ursprüngliche Nachricht----- Von: Dominik Maus <do...@we...> Gesendet: Donnerstag, 14. März 2024 21:47 An: Jeremi Plazas <ke...@gm...>; sem...@li... Betreff: Re: [Semediawiki-user] Count contents of a property Thanks for your answer Jeremi, valuerank had my attention earlier but I cannot see a way to just count the set property values. Valuerank seems to count the occurences for each of the value which is not what I want. Thanks, Dominik Am 14.03.2024 um 17:39 schrieb Jeremi Plazas: > Look into valuerank format: > https://www.semantic-mediawiki.org/wiki/Help:Valuerank_format > > Cheers, > > Jeremi > On Mar 14, 2024 at 5:38 PM +0100, Dominik Maus <do...@we...>, > wrote: >> Greetings, >> I am having multiple values in a single property per page but can't >> seem to find a good way to count those. I know of Extension:Arrays >> but it got mentioned that the extension will not work in future >> MediaWiki releases, so I am looking for alternatives. >> >> SMW Result format 'count' isn't what I am looking for since this only >> returns the page count, not the property values count. >> >> What I wanted to do is: >> {{#set:myprop=A}} >> {{#set:myprop=B}} >> {{#set:myprop=C}} >> >> This should be queried somehow and result in 3. >> >> Thanks! >> >> >> _______________________________________________ >> Semediawiki-user mailing list >> Sem...@li... >> https://lists.sourceforge.net/lists/listinfo/semediawiki-user _______________________________________________ Semediawiki-user mailing list Sem...@li... https://lists.sourceforge.net/lists/listinfo/semediawiki-user |
From: Dominik M. <do...@we...> - 2024-03-14 23:21:30
|
Oh oops, yes I made 3 brackets of course! I found a way. It's a little a dirty one but it works. However it'll be inefficient since you need to do two queries: {{#ifexpr: {{#ask: [[{{FULLPAGENAME}}]] [[Loot::+]] |format=count }} > 0 |{{#expr: {{#count: {{#ask: [[{{FULLPAGENAME}}]] [[Loot::+]] |?Loot= |mainlabel=- |link=none |format=list }} |,}} + 1 }} }} Thanks everyone for having those cool tips, that helped me to get deeper into the topic! Dominik Am 14.03.2024 um 23:07 schrieb Jeremi Plazas: > Also it's "{{{rank|}}}" with 3 braces on each side not two. > > Cheers, > > Jeremi > On Mar 14, 2024 at 11:05 PM +0100, Jeremi Plazas <ke...@gm...>, > wrote: >> I know this is all very "hacky" but my last 2 suggestions: >> >> * Trying adding "|valuesep=+" so you don't have to worry about >> having it in your template and adding the 0. >> * Try to condense onto one line. Sometimes these functions can't >> handle line breaks or too many spaces. >> >> Beyond that I'm out of tricks 😄 >> >> Cheers, >> >> Jeremi >> On Mar 14, 2024 at 11:02 PM +0100, Dominik Maus >> <do...@we...>, wrote: >>> That failed, too. >>> >>> Am 14.03.2024 um 23:00 schrieb Jeremi Plazas: >>>> Try adding "link=none" >>>> >>>> Cheers, >>>> >>>> Jeremi >>>> On Mar 14, 2024 at 10:59 PM +0100, Dominik Maus >>>> <do...@we...>, wrote: >>>>> I tried feeding it to {{#expr}} but it failed. >>>>> >>>>> Basically I did the following: >>>>> >>>>> {{#expr:0 >>>>> {{#ask: >>>>> [[{{FULLPAGENAME}}]] >>>>> [[Loot::+]] >>>>> |?Loot >>>>> |format=valuerank >>>>> |template=Count Property Occurences Returner >>>>> }} >>>>> }} >>>>> >>>>> The template simply returns '+{{rank|0}}', that's why I added the 0 >>>>> after the expr call (dirty, I know, just for the test). The query >>>>> ended >>>>> up with 'Expression error: Unrecognized punctuation character "[".'. >>>>> I've googled a bit and found there's some option I could add >>>>> '|import-annotation=true' to the #ask, but this ended up in another >>>>> error: 'Expression error: Unrecognized word "ul". '. >>>>> >>>>> This is far from my smw knowledge at all, I have no idea what's behind >>>>> those errors. >>>>> >>>>> Any suggestions? >>>>> >>>>> Thanks, >>>>> Dominik >>>>> >>>>> >>>>> Am 14.03.2024 um 22:19 schrieb Jeremi Plazas: >>>>>> Well not if there are different values assigned within one page. >>>>>> I suggested valuerank because you could use it to list the >>>>>> occurrences maybe separated by « + » and then feed into an >>>>>> {{#expr}} tag and get a sum? Maybe ?🤔 >>>>>> ¯\_(ツ)_/¯ >>>>>> >>>>>> Cheers, >>>>>> >>>>>> Jeremi >>>>>> Le 14 mars 2024 à 10:16 PM +0100, Bernhard Krabina, KM-A >>>>>> <ber...@km...>, a écrit : >>>>>>> > But if you only query one particular page >>>>>>> {{#ask:[[MyPage]]...}}, does valuerank not give you that? >>>>>>> > >>>>>>> > Best, >>>>>>> > Bernhard >>>>>>> > >>>>>>> > -----Ursprüngliche Nachricht----- >>>>>>> > Von: Dominik Maus <do...@we...> >>>>>>> > Gesendet: Donnerstag, 14. März 2024 21:47 >>>>>>> > An: Jeremi Plazas <ke...@gm...>; >>>>>>> sem...@li... >>>>>>> > Betreff: Re: [Semediawiki-user] Count contents of a property >>>>>>> > >>>>>>> > Thanks for your answer Jeremi, >>>>>>> > valuerank had my attention earlier but I cannot see a way to >>>>>>> just count the set property values. Valuerank seems to count the >>>>>>> occurences for each of the value which is not what I want. >>>>>>> > >>>>>>> > Thanks, >>>>>>> > Dominik >>>>>>> > >>>>>>> > Am 14.03.2024 um 17:39 schrieb Jeremi Plazas: >>>>>>>> >> Look into valuerank format: >>>>>>>> >> https://www.semantic-mediawiki.org/wiki/Help:Valuerank_format >>>>>>>> >> >>>>>>>> >> Cheers, >>>>>>>> >> >>>>>>>> >> Jeremi >>>>>>>> >> On Mar 14, 2024 at 5:38 PM +0100, Dominik Maus >>>>>>>> <do...@we...>, >>>>>>>> >> wrote: >>>>>>>>> >>> Greetings, >>>>>>>>> >>> I am having multiple values in a single property per page >>>>>>>>> but can't >>>>>>>>> >>> seem to find a good way to count those. I know of >>>>>>>>> Extension:Arrays >>>>>>>>> >>> but it got mentioned that the extension will not work in >>>>>>>>> future >>>>>>>>> >>> MediaWiki releases, so I am looking for alternatives. >>>>>>>>> >>> >>>>>>>>> >>> SMW Result format 'count' isn't what I am looking for >>>>>>>>> since this only >>>>>>>>> >>> returns the page count, not the property values count. >>>>>>>>> >>> >>>>>>>>> >>> What I wanted to do is: >>>>>>>>> >>> {{#set:myprop=A}} >>>>>>>>> >>> {{#set:myprop=B}} >>>>>>>>> >>> {{#set:myprop=C}} >>>>>>>>> >>> >>>>>>>>> >>> This should be queried somehow and result in 3. >>>>>>>>> >>> >>>>>>>>> >>> Thanks! >>>>>>>>> >>> >>>>>>>>> >>> >>>>>>>>> >>> _______________________________________________ >>>>>>>>> >>> Semediawiki-user mailing list >>>>>>>>> >>> Sem...@li... >>>>>>>>> >>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user >>>>>>> > >>>>>>> > _______________________________________________ >>>>>>> > Semediawiki-user mailing list >>>>>>> > Sem...@li... >>>>>>> > https://lists.sourceforge.net/lists/listinfo/semediawiki-user >>>>>> _______________________________________________ >>>>>> Semediawiki-user mailing list >>>>>> Sem...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user >>>>> >>>>> >>>>> >>>>> Am 14.03.2024 um 22:19 schrieb Jeremi Plazas: >>>>>> Well not if there are different values assigned within one page. >>>>>> I suggested valuerank because you could use it to list the >>>>>> occurrences maybe separated by « + » and then feed into an >>>>>> {{#expr}} tag and get a sum? Maybe ?🤔 >>>>>> ¯\_(ツ)_/¯ >>>>>> >>>>>> Cheers, >>>>>> >>>>>> Jeremi >>>>>> Le 14 mars 2024 à 10:16 PM +0100, Bernhard Krabina, KM-A >>>>>> <ber...@km...>, a écrit : >>>>>>> > But if you only query one particular page >>>>>>> {{#ask:[[MyPage]]...}}, does valuerank not give you that? >>>>>>> > >>>>>>> > Best, >>>>>>> > Bernhard >>>>>>> > >>>>>>> > -----Ursprüngliche Nachricht----- >>>>>>> > Von: Dominik Maus <do...@we...> >>>>>>> > Gesendet: Donnerstag, 14. März 2024 21:47 >>>>>>> > An: Jeremi Plazas <ke...@gm...>; >>>>>>> sem...@li... >>>>>>> > Betreff: Re: [Semediawiki-user] Count contents of a property >>>>>>> > >>>>>>> > Thanks for your answer Jeremi, >>>>>>> > valuerank had my attention earlier but I cannot see a way to >>>>>>> just count the set property values. Valuerank seems to count the >>>>>>> occurences for each of the value which is not what I want. >>>>>>> > >>>>>>> > Thanks, >>>>>>> > Dominik >>>>>>> > >>>>>>> > Am 14.03.2024 um 17:39 schrieb Jeremi Plazas: >>>>>>>> >> Look into valuerank format: >>>>>>>> >> https://www.semantic-mediawiki.org/wiki/Help:Valuerank_format >>>>>>>> >> >>>>>>>> >> Cheers, >>>>>>>> >> >>>>>>>> >> Jeremi >>>>>>>> >> On Mar 14, 2024 at 5:38 PM +0100, Dominik Maus >>>>>>>> <do...@we...>, >>>>>>>> >> wrote: >>>>>>>>> >>> Greetings, >>>>>>>>> >>> I am having multiple values in a single property per page >>>>>>>>> but can't >>>>>>>>> >>> seem to find a good way to count those. I know of >>>>>>>>> Extension:Arrays >>>>>>>>> >>> but it got mentioned that the extension will not work in >>>>>>>>> future >>>>>>>>> >>> MediaWiki releases, so I am looking for alternatives. >>>>>>>>> >>> >>>>>>>>> >>> SMW Result format 'count' isn't what I am looking for >>>>>>>>> since this only >>>>>>>>> >>> returns the page count, not the property values count. >>>>>>>>> >>> >>>>>>>>> >>> What I wanted to do is: >>>>>>>>> >>> {{#set:myprop=A}} >>>>>>>>> >>> {{#set:myprop=B}} >>>>>>>>> >>> {{#set:myprop=C}} >>>>>>>>> >>> >>>>>>>>> >>> This should be queried somehow and result in 3. >>>>>>>>> >>> >>>>>>>>> >>> Thanks! >>>>>>>>> >>> >>>>>>>>> >>> >>>>>>>>> >>> _______________________________________________ >>>>>>>>> >>> Semediawiki-user mailing list >>>>>>>>> >>> Sem...@li... >>>>>>>>> >>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user >>>>>>> > >>>>>>> > >>>>>>> > _______________________________________________ >>>>>>> > Semediawiki-user mailing list >>>>>>> > Sem...@li... >>>>>>> > https://lists.sourceforge.net/lists/listinfo/semediawiki-user >>>>>> _______________________________________________ >>>>>> Semediawiki-user mailing list >>>>>> Sem...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user >>>>> >>> |
From: Jeremi P. <ke...@gm...> - 2024-03-14 22:07:39
|
Also it's "{{{rank|}}}" with 3 braces on each side not two. Cheers, Jeremi On Mar 14, 2024 at 11:05 PM +0100, Jeremi Plazas <ke...@gm...>, wrote: > I know this is all very "hacky" but my last 2 suggestions: > > • Trying adding "|valuesep=+" so you don't have to worry about having it in your template and adding the 0. > • Try to condense onto one line. Sometimes these functions can't handle line breaks or too many spaces. > > Beyond that I'm out of tricks 😄 > > Cheers, > > Jeremi > On Mar 14, 2024 at 11:02 PM +0100, Dominik Maus <do...@we...>, wrote: > > That failed, too. > > > > Am 14.03.2024 um 23:00 schrieb Jeremi Plazas: > > > Try adding "link=none" > > > > > > Cheers, > > > > > > Jeremi > > > On Mar 14, 2024 at 10:59 PM +0100, Dominik Maus <do...@we...>, wrote: > > > > I tried feeding it to {{#expr}} but it failed. > > > > > > > > Basically I did the following: > > > > > > > > {{#expr:0 > > > > {{#ask: > > > > [[{{FULLPAGENAME}}]] > > > > [[Loot::+]] > > > > |?Loot > > > > |format=valuerank > > > > |template=Count Property Occurences Returner > > > > }} > > > > }} > > > > > > > > The template simply returns '+{{rank|0}}', that's why I added the 0 > > > > after the expr call (dirty, I know, just for the test). The query ended > > > > up with 'Expression error: Unrecognized punctuation character "[".'. > > > > I've googled a bit and found there's some option I could add > > > > '|import-annotation=true' to the #ask, but this ended up in another > > > > error: 'Expression error: Unrecognized word "ul". '. > > > > > > > > This is far from my smw knowledge at all, I have no idea what's behind > > > > those errors. > > > > > > > > Any suggestions? > > > > > > > > Thanks, > > > > Dominik > > > > > > > > > > > > Am 14.03.2024 um 22:19 schrieb Jeremi Plazas: > > > > > Well not if there are different values assigned within one page. I suggested valuerank because you could use it to list the occurrences maybe separated by « + » and then feed into an {{#expr}} tag and get a sum? Maybe ?🤔 > > > > > ¯\_(ツ)_/¯ > > > > > > > > > > Cheers, > > > > > > > > > > Jeremi > > > > > Le 14 mars 2024 à 10:16 PM +0100, Bernhard Krabina, KM-A <ber...@km...>, a écrit : > > > > > > > But if you only query one particular page {{#ask:[[MyPage]]...}}, does valuerank not give you that? > > > > > > > > > > > > > > Best, > > > > > > > Bernhard > > > > > > > > > > > > > > -----Ursprüngliche Nachricht----- > > > > > > > Von: Dominik Maus <do...@we...> > > > > > > > Gesendet: Donnerstag, 14. März 2024 21:47 > > > > > > > An: Jeremi Plazas <ke...@gm...>; sem...@li... > > > > > > > Betreff: Re: [Semediawiki-user] Count contents of a property > > > > > > > > > > > > > > Thanks for your answer Jeremi, > > > > > > > valuerank had my attention earlier but I cannot see a way to just count the set property values. Valuerank seems to count the occurences for each of the value which is not what I want. > > > > > > > > > > > > > > Thanks, > > > > > > > Dominik > > > > > > > > > > > > > > Am 14.03.2024 um 17:39 schrieb Jeremi Plazas: > > > > > > > >> Look into valuerank format: > > > > > > > >> https://www.semantic-mediawiki.org/wiki/Help:Valuerank_format > > > > > > > >> > > > > > > > >> Cheers, > > > > > > > >> > > > > > > > >> Jeremi > > > > > > > >> On Mar 14, 2024 at 5:38 PM +0100, Dominik Maus <do...@we...>, > > > > > > > >> wrote: > > > > > > > > >>> Greetings, > > > > > > > > >>> I am having multiple values in a single property per page but can't > > > > > > > > >>> seem to find a good way to count those. I know of Extension:Arrays > > > > > > > > >>> but it got mentioned that the extension will not work in future > > > > > > > > >>> MediaWiki releases, so I am looking for alternatives. > > > > > > > > >>> > > > > > > > > >>> SMW Result format 'count' isn't what I am looking for since this only > > > > > > > > >>> returns the page count, not the property values count. > > > > > > > > >>> > > > > > > > > >>> What I wanted to do is: > > > > > > > > >>> {{#set:myprop=A}} > > > > > > > > >>> {{#set:myprop=B}} > > > > > > > > >>> {{#set:myprop=C}} > > > > > > > > >>> > > > > > > > > >>> This should be queried somehow and result in 3. > > > > > > > > >>> > > > > > > > > >>> Thanks! > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > >>> _______________________________________________ > > > > > > > > >>> Semediawiki-user mailing list > > > > > > > > >>> Sem...@li... > > > > > > > > >>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > > > > > > > > > > > > _______________________________________________ > > > > > > > Semediawiki-user mailing list > > > > > > > Sem...@li... > > > > > > > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > > > _______________________________________________ > > > > > Semediawiki-user mailing list > > > > > Sem...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > > > > > > > > > > > > > > Am 14.03.2024 um 22:19 schrieb Jeremi Plazas: > > > > > Well not if there are different values assigned within one page. I suggested valuerank because you could use it to list the occurrences maybe separated by « + » and then feed into an {{#expr}} tag and get a sum? Maybe ?🤔 > > > > > ¯\_(ツ)_/¯ > > > > > > > > > > Cheers, > > > > > > > > > > Jeremi > > > > > Le 14 mars 2024 à 10:16 PM +0100, Bernhard Krabina, KM-A <ber...@km...>, a écrit : > > > > > > > But if you only query one particular page {{#ask:[[MyPage]]...}}, does valuerank not give you that? > > > > > > > > > > > > > > Best, > > > > > > > Bernhard > > > > > > > > > > > > > > -----Ursprüngliche Nachricht----- > > > > > > > Von: Dominik Maus <do...@we...> > > > > > > > Gesendet: Donnerstag, 14. März 2024 21:47 > > > > > > > An: Jeremi Plazas <ke...@gm...>; sem...@li... > > > > > > > Betreff: Re: [Semediawiki-user] Count contents of a property > > > > > > > > > > > > > > Thanks for your answer Jeremi, > > > > > > > valuerank had my attention earlier but I cannot see a way to just count the set property values. Valuerank seems to count the occurences for each of the value which is not what I want. > > > > > > > > > > > > > > Thanks, > > > > > > > Dominik > > > > > > > > > > > > > > Am 14.03.2024 um 17:39 schrieb Jeremi Plazas: > > > > > > > >> Look into valuerank format: > > > > > > > >> https://www.semantic-mediawiki.org/wiki/Help:Valuerank_format > > > > > > > >> > > > > > > > >> Cheers, > > > > > > > >> > > > > > > > >> Jeremi > > > > > > > >> On Mar 14, 2024 at 5:38 PM +0100, Dominik Maus <do...@we...>, > > > > > > > >> wrote: > > > > > > > > >>> Greetings, > > > > > > > > >>> I am having multiple values in a single property per page but can't > > > > > > > > >>> seem to find a good way to count those. I know of Extension:Arrays > > > > > > > > >>> but it got mentioned that the extension will not work in future > > > > > > > > >>> MediaWiki releases, so I am looking for alternatives. > > > > > > > > >>> > > > > > > > > >>> SMW Result format 'count' isn't what I am looking for since this only > > > > > > > > >>> returns the page count, not the property values count. > > > > > > > > >>> > > > > > > > > >>> What I wanted to do is: > > > > > > > > >>> {{#set:myprop=A}} > > > > > > > > >>> {{#set:myprop=B}} > > > > > > > > >>> {{#set:myprop=C}} > > > > > > > > >>> > > > > > > > > >>> This should be queried somehow and result in 3. > > > > > > > > >>> > > > > > > > > >>> Thanks! > > > > > > > > >>> > > > > > > > > >>> > > > > > > > > >>> _______________________________________________ > > > > > > > > >>> Semediawiki-user mailing list > > > > > > > > >>> Sem...@li... > > > > > > > > >>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > Semediawiki-user mailing list > > > > > > > Sem...@li... > > > > > > > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > > > _______________________________________________ > > > > > Semediawiki-user mailing list > > > > > Sem...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > > > > |
From: Jeremi P. <ke...@gm...> - 2024-03-14 22:05:21
|
I know this is all very "hacky" but my last 2 suggestions: • Trying adding "|valuesep=+" so you don't have to worry about having it in your template and adding the 0. • Try to condense onto one line. Sometimes these functions can't handle line breaks or too many spaces. Beyond that I'm out of tricks 😄 Cheers, Jeremi On Mar 14, 2024 at 11:02 PM +0100, Dominik Maus <do...@we...>, wrote: > That failed, too. > > Am 14.03.2024 um 23:00 schrieb Jeremi Plazas: > > Try adding "link=none" > > > > Cheers, > > > > Jeremi > > On Mar 14, 2024 at 10:59 PM +0100, Dominik Maus <do...@we...>, wrote: > > > I tried feeding it to {{#expr}} but it failed. > > > > > > Basically I did the following: > > > > > > {{#expr:0 > > > {{#ask: > > > [[{{FULLPAGENAME}}]] > > > [[Loot::+]] > > > |?Loot > > > |format=valuerank > > > |template=Count Property Occurences Returner > > > }} > > > }} > > > > > > The template simply returns '+{{rank|0}}', that's why I added the 0 > > > after the expr call (dirty, I know, just for the test). The query ended > > > up with 'Expression error: Unrecognized punctuation character "[".'. > > > I've googled a bit and found there's some option I could add > > > '|import-annotation=true' to the #ask, but this ended up in another > > > error: 'Expression error: Unrecognized word "ul". '. > > > > > > This is far from my smw knowledge at all, I have no idea what's behind > > > those errors. > > > > > > Any suggestions? > > > > > > Thanks, > > > Dominik > > > > > > > > > Am 14.03.2024 um 22:19 schrieb Jeremi Plazas: > > > > Well not if there are different values assigned within one page. I suggested valuerank because you could use it to list the occurrences maybe separated by « + » and then feed into an {{#expr}} tag and get a sum? Maybe ?🤔 > > > > ¯\_(ツ)_/¯ > > > > > > > > Cheers, > > > > > > > > Jeremi > > > > Le 14 mars 2024 à 10:16 PM +0100, Bernhard Krabina, KM-A <ber...@km...>, a écrit : > > > > > > But if you only query one particular page {{#ask:[[MyPage]]...}}, does valuerank not give you that? > > > > > > > > > > > > Best, > > > > > > Bernhard > > > > > > > > > > > > -----Ursprüngliche Nachricht----- > > > > > > Von: Dominik Maus <do...@we...> > > > > > > Gesendet: Donnerstag, 14. März 2024 21:47 > > > > > > An: Jeremi Plazas <ke...@gm...>; sem...@li... > > > > > > Betreff: Re: [Semediawiki-user] Count contents of a property > > > > > > > > > > > > Thanks for your answer Jeremi, > > > > > > valuerank had my attention earlier but I cannot see a way to just count the set property values. Valuerank seems to count the occurences for each of the value which is not what I want. > > > > > > > > > > > > Thanks, > > > > > > Dominik > > > > > > > > > > > > Am 14.03.2024 um 17:39 schrieb Jeremi Plazas: > > > > > > >> Look into valuerank format: > > > > > > >> https://www.semantic-mediawiki.org/wiki/Help:Valuerank_format > > > > > > >> > > > > > > >> Cheers, > > > > > > >> > > > > > > >> Jeremi > > > > > > >> On Mar 14, 2024 at 5:38 PM +0100, Dominik Maus <do...@we...>, > > > > > > >> wrote: > > > > > > > >>> Greetings, > > > > > > > >>> I am having multiple values in a single property per page but can't > > > > > > > >>> seem to find a good way to count those. I know of Extension:Arrays > > > > > > > >>> but it got mentioned that the extension will not work in future > > > > > > > >>> MediaWiki releases, so I am looking for alternatives. > > > > > > > >>> > > > > > > > >>> SMW Result format 'count' isn't what I am looking for since this only > > > > > > > >>> returns the page count, not the property values count. > > > > > > > >>> > > > > > > > >>> What I wanted to do is: > > > > > > > >>> {{#set:myprop=A}} > > > > > > > >>> {{#set:myprop=B}} > > > > > > > >>> {{#set:myprop=C}} > > > > > > > >>> > > > > > > > >>> This should be queried somehow and result in 3. > > > > > > > >>> > > > > > > > >>> Thanks! > > > > > > > >>> > > > > > > > >>> > > > > > > > >>> _______________________________________________ > > > > > > > >>> Semediawiki-user mailing list > > > > > > > >>> Sem...@li... > > > > > > > >>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > > > > > > > > > > _______________________________________________ > > > > > > Semediawiki-user mailing list > > > > > > Sem...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > > _______________________________________________ > > > > Semediawiki-user mailing list > > > > Sem...@li... > > > > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > > > > > > > > > > Am 14.03.2024 um 22:19 schrieb Jeremi Plazas: > > > > Well not if there are different values assigned within one page. I suggested valuerank because you could use it to list the occurrences maybe separated by « + » and then feed into an {{#expr}} tag and get a sum? Maybe ?🤔 > > > > ¯\_(ツ)_/¯ > > > > > > > > Cheers, > > > > > > > > Jeremi > > > > Le 14 mars 2024 à 10:16 PM +0100, Bernhard Krabina, KM-A <ber...@km...>, a écrit : > > > > > > But if you only query one particular page {{#ask:[[MyPage]]...}}, does valuerank not give you that? > > > > > > > > > > > > Best, > > > > > > Bernhard > > > > > > > > > > > > -----Ursprüngliche Nachricht----- > > > > > > Von: Dominik Maus <do...@we...> > > > > > > Gesendet: Donnerstag, 14. März 2024 21:47 > > > > > > An: Jeremi Plazas <ke...@gm...>; sem...@li... > > > > > > Betreff: Re: [Semediawiki-user] Count contents of a property > > > > > > > > > > > > Thanks for your answer Jeremi, > > > > > > valuerank had my attention earlier but I cannot see a way to just count the set property values. Valuerank seems to count the occurences for each of the value which is not what I want. > > > > > > > > > > > > Thanks, > > > > > > Dominik > > > > > > > > > > > > Am 14.03.2024 um 17:39 schrieb Jeremi Plazas: > > > > > > >> Look into valuerank format: > > > > > > >> https://www.semantic-mediawiki.org/wiki/Help:Valuerank_format > > > > > > >> > > > > > > >> Cheers, > > > > > > >> > > > > > > >> Jeremi > > > > > > >> On Mar 14, 2024 at 5:38 PM +0100, Dominik Maus <do...@we...>, > > > > > > >> wrote: > > > > > > > >>> Greetings, > > > > > > > >>> I am having multiple values in a single property per page but can't > > > > > > > >>> seem to find a good way to count those. I know of Extension:Arrays > > > > > > > >>> but it got mentioned that the extension will not work in future > > > > > > > >>> MediaWiki releases, so I am looking for alternatives. > > > > > > > >>> > > > > > > > >>> SMW Result format 'count' isn't what I am looking for since this only > > > > > > > >>> returns the page count, not the property values count. > > > > > > > >>> > > > > > > > >>> What I wanted to do is: > > > > > > > >>> {{#set:myprop=A}} > > > > > > > >>> {{#set:myprop=B}} > > > > > > > >>> {{#set:myprop=C}} > > > > > > > >>> > > > > > > > >>> This should be queried somehow and result in 3. > > > > > > > >>> > > > > > > > >>> Thanks! > > > > > > > >>> > > > > > > > >>> > > > > > > > >>> _______________________________________________ > > > > > > > >>> Semediawiki-user mailing list > > > > > > > >>> Sem...@li... > > > > > > > >>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > Semediawiki-user mailing list > > > > > > Sem...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > > _______________________________________________ > > > > Semediawiki-user mailing list > > > > Sem...@li... > > > > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > > |
From: Dominik M. <do...@we...> - 2024-03-14 22:02:26
|
That failed, too. Am 14.03.2024 um 23:00 schrieb Jeremi Plazas: > Try adding "link=none" > > Cheers, > > Jeremi > On Mar 14, 2024 at 10:59 PM +0100, Dominik Maus <do...@we...>, > wrote: >> I tried feeding it to {{#expr}} but it failed. >> >> Basically I did the following: >> >> {{#expr:0 >> {{#ask: >> [[{{FULLPAGENAME}}]] >> [[Loot::+]] >> |?Loot >> |format=valuerank >> |template=Count Property Occurences Returner >> }} >> }} >> >> The template simply returns '+{{rank|0}}', that's why I added the 0 >> after the expr call (dirty, I know, just for the test). The query ended >> up with 'Expression error: Unrecognized punctuation character "[".'. >> I've googled a bit and found there's some option I could add >> '|import-annotation=true' to the #ask, but this ended up in another >> error: 'Expression error: Unrecognized word "ul". '. >> >> This is far from my smw knowledge at all, I have no idea what's behind >> those errors. >> >> Any suggestions? >> >> Thanks, >> Dominik >> >> >> Am 14.03.2024 um 22:19 schrieb Jeremi Plazas: >>> Well not if there are different values assigned within one page. I >>> suggested valuerank because you could use it to list the occurrences >>> maybe separated by « + » and then feed into an {{#expr}} tag and get >>> a sum? Maybe ?🤔 >>> ¯\_(ツ)_/¯ >>> >>> Cheers, >>> >>> Jeremi >>> Le 14 mars 2024 à 10:16 PM +0100, Bernhard Krabina, KM-A >>> <ber...@km...>, a écrit : >>>> > But if you only query one particular page {{#ask:[[MyPage]]...}}, >>>> does valuerank not give you that? >>>> > >>>> > Best, >>>> > Bernhard >>>> > >>>> > -----Ursprüngliche Nachricht----- >>>> > Von: Dominik Maus <do...@we...> >>>> > Gesendet: Donnerstag, 14. März 2024 21:47 >>>> > An: Jeremi Plazas <ke...@gm...>; >>>> sem...@li... >>>> > Betreff: Re: [Semediawiki-user] Count contents of a property >>>> > >>>> > Thanks for your answer Jeremi, >>>> > valuerank had my attention earlier but I cannot see a way to just >>>> count the set property values. Valuerank seems to count the >>>> occurences for each of the value which is not what I want. >>>> > >>>> > Thanks, >>>> > Dominik >>>> > >>>> > Am 14.03.2024 um 17:39 schrieb Jeremi Plazas: >>>>> >> Look into valuerank format: >>>>> >> https://www.semantic-mediawiki.org/wiki/Help:Valuerank_format >>>>> >> >>>>> >> Cheers, >>>>> >> >>>>> >> Jeremi >>>>> >> On Mar 14, 2024 at 5:38 PM +0100, Dominik Maus >>>>> <do...@we...>, >>>>> >> wrote: >>>>>> >>> Greetings, >>>>>> >>> I am having multiple values in a single property per page but >>>>>> can't >>>>>> >>> seem to find a good way to count those. I know of >>>>>> Extension:Arrays >>>>>> >>> but it got mentioned that the extension will not work in future >>>>>> >>> MediaWiki releases, so I am looking for alternatives. >>>>>> >>> >>>>>> >>> SMW Result format 'count' isn't what I am looking for since >>>>>> this only >>>>>> >>> returns the page count, not the property values count. >>>>>> >>> >>>>>> >>> What I wanted to do is: >>>>>> >>> {{#set:myprop=A}} >>>>>> >>> {{#set:myprop=B}} >>>>>> >>> {{#set:myprop=C}} >>>>>> >>> >>>>>> >>> This should be queried somehow and result in 3. >>>>>> >>> >>>>>> >>> Thanks! >>>>>> >>> >>>>>> >>> >>>>>> >>> _______________________________________________ >>>>>> >>> Semediawiki-user mailing list >>>>>> >>> Sem...@li... >>>>>> >>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user >>>> > >>>> > _______________________________________________ >>>> > Semediawiki-user mailing list >>>> > Sem...@li... >>>> > https://lists.sourceforge.net/lists/listinfo/semediawiki-user >>> _______________________________________________ >>> Semediawiki-user mailing list >>> Sem...@li... >>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user >> >> >> >> Am 14.03.2024 um 22:19 schrieb Jeremi Plazas: >>> Well not if there are different values assigned within one page. I >>> suggested valuerank because you could use it to list the occurrences >>> maybe separated by « + » and then feed into an {{#expr}} tag and get >>> a sum? Maybe ?🤔 >>> ¯\_(ツ)_/¯ >>> >>> Cheers, >>> >>> Jeremi >>> Le 14 mars 2024 à 10:16 PM +0100, Bernhard Krabina, KM-A >>> <ber...@km...>, a écrit : >>>> > But if you only query one particular page {{#ask:[[MyPage]]...}}, >>>> does valuerank not give you that? >>>> > >>>> > Best, >>>> > Bernhard >>>> > >>>> > -----Ursprüngliche Nachricht----- >>>> > Von: Dominik Maus <do...@we...> >>>> > Gesendet: Donnerstag, 14. März 2024 21:47 >>>> > An: Jeremi Plazas <ke...@gm...>; >>>> sem...@li... >>>> > Betreff: Re: [Semediawiki-user] Count contents of a property >>>> > >>>> > Thanks for your answer Jeremi, >>>> > valuerank had my attention earlier but I cannot see a way to just >>>> count the set property values. Valuerank seems to count the >>>> occurences for each of the value which is not what I want. >>>> > >>>> > Thanks, >>>> > Dominik >>>> > >>>> > Am 14.03.2024 um 17:39 schrieb Jeremi Plazas: >>>>> >> Look into valuerank format: >>>>> >> https://www.semantic-mediawiki.org/wiki/Help:Valuerank_format >>>>> >> >>>>> >> Cheers, >>>>> >> >>>>> >> Jeremi >>>>> >> On Mar 14, 2024 at 5:38 PM +0100, Dominik Maus >>>>> <do...@we...>, >>>>> >> wrote: >>>>>> >>> Greetings, >>>>>> >>> I am having multiple values in a single property per page but >>>>>> can't >>>>>> >>> seem to find a good way to count those. I know of >>>>>> Extension:Arrays >>>>>> >>> but it got mentioned that the extension will not work in future >>>>>> >>> MediaWiki releases, so I am looking for alternatives. >>>>>> >>> >>>>>> >>> SMW Result format 'count' isn't what I am looking for since >>>>>> this only >>>>>> >>> returns the page count, not the property values count. >>>>>> >>> >>>>>> >>> What I wanted to do is: >>>>>> >>> {{#set:myprop=A}} >>>>>> >>> {{#set:myprop=B}} >>>>>> >>> {{#set:myprop=C}} >>>>>> >>> >>>>>> >>> This should be queried somehow and result in 3. >>>>>> >>> >>>>>> >>> Thanks! >>>>>> >>> >>>>>> >>> >>>>>> >>> _______________________________________________ >>>>>> >>> Semediawiki-user mailing list >>>>>> >>> Sem...@li... >>>>>> >>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user >>>> > >>>> > >>>> > _______________________________________________ >>>> > Semediawiki-user mailing list >>>> > Sem...@li... >>>> > https://lists.sourceforge.net/lists/listinfo/semediawiki-user >>> _______________________________________________ >>> Semediawiki-user mailing list >>> Sem...@li... >>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user >> |
From: Jeremi P. <ke...@gm...> - 2024-03-14 22:00:49
|
Try adding "link=none" Cheers, Jeremi On Mar 14, 2024 at 10:59 PM +0100, Dominik Maus <do...@we...>, wrote: > I tried feeding it to {{#expr}} but it failed. > > Basically I did the following: > > {{#expr:0 > {{#ask: > [[{{FULLPAGENAME}}]] > [[Loot::+]] > |?Loot > |format=valuerank > |template=Count Property Occurences Returner > }} > }} > > The template simply returns '+{{rank|0}}', that's why I added the 0 > after the expr call (dirty, I know, just for the test). The query ended > up with 'Expression error: Unrecognized punctuation character "[".'. > I've googled a bit and found there's some option I could add > '|import-annotation=true' to the #ask, but this ended up in another > error: 'Expression error: Unrecognized word "ul". '. > > This is far from my smw knowledge at all, I have no idea what's behind > those errors. > > Any suggestions? > > Thanks, > Dominik > > > Am 14.03.2024 um 22:19 schrieb Jeremi Plazas: > > Well not if there are different values assigned within one page. I suggested valuerank because you could use it to list the occurrences maybe separated by « + » and then feed into an {{#expr}} tag and get a sum? Maybe ?🤔 > > ¯\_(ツ)_/¯ > > > > Cheers, > > > > Jeremi > > Le 14 mars 2024 à 10:16 PM +0100, Bernhard Krabina, KM-A <ber...@km...>, a écrit : > > > > But if you only query one particular page {{#ask:[[MyPage]]...}}, does valuerank not give you that? > > > > > > > > Best, > > > > Bernhard > > > > > > > > -----Ursprüngliche Nachricht----- > > > > Von: Dominik Maus <do...@we...> > > > > Gesendet: Donnerstag, 14. März 2024 21:47 > > > > An: Jeremi Plazas <ke...@gm...>; sem...@li... > > > > Betreff: Re: [Semediawiki-user] Count contents of a property > > > > > > > > Thanks for your answer Jeremi, > > > > valuerank had my attention earlier but I cannot see a way to just count the set property values. Valuerank seems to count the occurences for each of the value which is not what I want. > > > > > > > > Thanks, > > > > Dominik > > > > > > > > Am 14.03.2024 um 17:39 schrieb Jeremi Plazas: > > > > >> Look into valuerank format: > > > > >> https://www.semantic-mediawiki.org/wiki/Help:Valuerank_format > > > > >> > > > > >> Cheers, > > > > >> > > > > >> Jeremi > > > > >> On Mar 14, 2024 at 5:38 PM +0100, Dominik Maus <do...@we...>, > > > > >> wrote: > > > > > >>> Greetings, > > > > > >>> I am having multiple values in a single property per page but can't > > > > > >>> seem to find a good way to count those. I know of Extension:Arrays > > > > > >>> but it got mentioned that the extension will not work in future > > > > > >>> MediaWiki releases, so I am looking for alternatives. > > > > > >>> > > > > > >>> SMW Result format 'count' isn't what I am looking for since this only > > > > > >>> returns the page count, not the property values count. > > > > > >>> > > > > > >>> What I wanted to do is: > > > > > >>> {{#set:myprop=A}} > > > > > >>> {{#set:myprop=B}} > > > > > >>> {{#set:myprop=C}} > > > > > >>> > > > > > >>> This should be queried somehow and result in 3. > > > > > >>> > > > > > >>> Thanks! > > > > > >>> > > > > > >>> > > > > > >>> _______________________________________________ > > > > > >>> Semediawiki-user mailing list > > > > > >>> Sem...@li... > > > > > >>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > > > > > > _______________________________________________ > > > > Semediawiki-user mailing list > > > > Sem...@li... > > > > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > _______________________________________________ > > Semediawiki-user mailing list > > Sem...@li... > > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > > Am 14.03.2024 um 22:19 schrieb Jeremi Plazas: > > Well not if there are different values assigned within one page. I suggested valuerank because you could use it to list the occurrences maybe separated by « + » and then feed into an {{#expr}} tag and get a sum? Maybe ?🤔 > > ¯\_(ツ)_/¯ > > > > Cheers, > > > > Jeremi > > Le 14 mars 2024 à 10:16 PM +0100, Bernhard Krabina, KM-A <ber...@km...>, a écrit : > > > > But if you only query one particular page {{#ask:[[MyPage]]...}}, does valuerank not give you that? > > > > > > > > Best, > > > > Bernhard > > > > > > > > -----Ursprüngliche Nachricht----- > > > > Von: Dominik Maus <do...@we...> > > > > Gesendet: Donnerstag, 14. März 2024 21:47 > > > > An: Jeremi Plazas <ke...@gm...>; sem...@li... > > > > Betreff: Re: [Semediawiki-user] Count contents of a property > > > > > > > > Thanks for your answer Jeremi, > > > > valuerank had my attention earlier but I cannot see a way to just count the set property values. Valuerank seems to count the occurences for each of the value which is not what I want. > > > > > > > > Thanks, > > > > Dominik > > > > > > > > Am 14.03.2024 um 17:39 schrieb Jeremi Plazas: > > > > >> Look into valuerank format: > > > > >> https://www.semantic-mediawiki.org/wiki/Help:Valuerank_format > > > > >> > > > > >> Cheers, > > > > >> > > > > >> Jeremi > > > > >> On Mar 14, 2024 at 5:38 PM +0100, Dominik Maus <do...@we...>, > > > > >> wrote: > > > > > >>> Greetings, > > > > > >>> I am having multiple values in a single property per page but can't > > > > > >>> seem to find a good way to count those. I know of Extension:Arrays > > > > > >>> but it got mentioned that the extension will not work in future > > > > > >>> MediaWiki releases, so I am looking for alternatives. > > > > > >>> > > > > > >>> SMW Result format 'count' isn't what I am looking for since this only > > > > > >>> returns the page count, not the property values count. > > > > > >>> > > > > > >>> What I wanted to do is: > > > > > >>> {{#set:myprop=A}} > > > > > >>> {{#set:myprop=B}} > > > > > >>> {{#set:myprop=C}} > > > > > >>> > > > > > >>> This should be queried somehow and result in 3. > > > > > >>> > > > > > >>> Thanks! > > > > > >>> > > > > > >>> > > > > > >>> _______________________________________________ > > > > > >>> Semediawiki-user mailing list > > > > > >>> Sem...@li... > > > > > >>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > > > > > > > > > > _______________________________________________ > > > > Semediawiki-user mailing list > > > > Sem...@li... > > > > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > _______________________________________________ > > Semediawiki-user mailing list > > Sem...@li... > > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > |
From: Dominik M. <do...@we...> - 2024-03-14 21:59:32
|
I tried feeding it to {{#expr}} but it failed. Basically I did the following: {{#expr:0 {{#ask: [[{{FULLPAGENAME}}]] [[Loot::+]] |?Loot |format=valuerank |template=Count Property Occurences Returner }} }} The template simply returns '+{{rank|0}}', that's why I added the 0 after the expr call (dirty, I know, just for the test). The query ended up with 'Expression error: Unrecognized punctuation character "[".'. I've googled a bit and found there's some option I could add '|import-annotation=true' to the #ask, but this ended up in another error: 'Expression error: Unrecognized word "ul". '. This is far from my smw knowledge at all, I have no idea what's behind those errors. Any suggestions? Thanks, Dominik Am 14.03.2024 um 22:19 schrieb Jeremi Plazas: > Well not if there are different values assigned within one page. I suggested valuerank because you could use it to list the occurrences maybe separated by « + » and then feed into an {{#expr}} tag and get a sum? Maybe ?🤔 > ¯\_(ツ)_/¯ > > Cheers, > > Jeremi > Le 14 mars 2024 à 10:16 PM +0100, Bernhard Krabina, KM-A <ber...@km...>, a écrit : >> But if you only query one particular page {{#ask:[[MyPage]]...}}, does valuerank not give you that? >> >> Best, >> Bernhard >> >> -----Ursprüngliche Nachricht----- >> Von: Dominik Maus <do...@we...> >> Gesendet: Donnerstag, 14. März 2024 21:47 >> An: Jeremi Plazas <ke...@gm...>; sem...@li... >> Betreff: Re: [Semediawiki-user] Count contents of a property >> >> Thanks for your answer Jeremi, >> valuerank had my attention earlier but I cannot see a way to just count the set property values. Valuerank seems to count the occurences for each of the value which is not what I want. >> >> Thanks, >> Dominik >> >> Am 14.03.2024 um 17:39 schrieb Jeremi Plazas: >>> Look into valuerank format: >>> https://www.semantic-mediawiki.org/wiki/Help:Valuerank_format >>> >>> Cheers, >>> >>> Jeremi >>> On Mar 14, 2024 at 5:38 PM +0100, Dominik Maus <do...@we...>, >>> wrote: >>>> Greetings, >>>> I am having multiple values in a single property per page but can't >>>> seem to find a good way to count those. I know of Extension:Arrays >>>> but it got mentioned that the extension will not work in future >>>> MediaWiki releases, so I am looking for alternatives. >>>> >>>> SMW Result format 'count' isn't what I am looking for since this only >>>> returns the page count, not the property values count. >>>> >>>> What I wanted to do is: >>>> {{#set:myprop=A}} >>>> {{#set:myprop=B}} >>>> {{#set:myprop=C}} >>>> >>>> This should be queried somehow and result in 3. >>>> >>>> Thanks! >>>> >>>> >>>> _______________________________________________ >>>> Semediawiki-user mailing list >>>> Sem...@li... >>>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user >> >> _______________________________________________ >> Semediawiki-user mailing list >> Sem...@li... >> https://lists.sourceforge.net/lists/listinfo/semediawiki-user > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user Am 14.03.2024 um 22:19 schrieb Jeremi Plazas: > Well not if there are different values assigned within one page. I suggested valuerank because you could use it to list the occurrences maybe separated by « + » and then feed into an {{#expr}} tag and get a sum? Maybe ?🤔 > ¯\_(ツ)_/¯ > > Cheers, > > Jeremi > Le 14 mars 2024 à 10:16 PM +0100, Bernhard Krabina, KM-A <ber...@km...>, a écrit : >> But if you only query one particular page {{#ask:[[MyPage]]...}}, does valuerank not give you that? >> >> Best, >> Bernhard >> >> -----Ursprüngliche Nachricht----- >> Von: Dominik Maus <do...@we...> >> Gesendet: Donnerstag, 14. März 2024 21:47 >> An: Jeremi Plazas <ke...@gm...>; sem...@li... >> Betreff: Re: [Semediawiki-user] Count contents of a property >> >> Thanks for your answer Jeremi, >> valuerank had my attention earlier but I cannot see a way to just count the set property values. Valuerank seems to count the occurences for each of the value which is not what I want. >> >> Thanks, >> Dominik >> >> Am 14.03.2024 um 17:39 schrieb Jeremi Plazas: >>> Look into valuerank format: >>> https://www.semantic-mediawiki.org/wiki/Help:Valuerank_format >>> >>> Cheers, >>> >>> Jeremi >>> On Mar 14, 2024 at 5:38 PM +0100, Dominik Maus <do...@we...>, >>> wrote: >>>> Greetings, >>>> I am having multiple values in a single property per page but can't >>>> seem to find a good way to count those. I know of Extension:Arrays >>>> but it got mentioned that the extension will not work in future >>>> MediaWiki releases, so I am looking for alternatives. >>>> >>>> SMW Result format 'count' isn't what I am looking for since this only >>>> returns the page count, not the property values count. >>>> >>>> What I wanted to do is: >>>> {{#set:myprop=A}} >>>> {{#set:myprop=B}} >>>> {{#set:myprop=C}} >>>> >>>> This should be queried somehow and result in 3. >>>> >>>> Thanks! >>>> >>>> >>>> _______________________________________________ >>>> Semediawiki-user mailing list >>>> Sem...@li... >>>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user >> >> >> _______________________________________________ >> Semediawiki-user mailing list >> Sem...@li... >> https://lists.sourceforge.net/lists/listinfo/semediawiki-user > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user |
From: Jeremi P. <ke...@gm...> - 2024-03-14 21:20:15
|
Well not if there are different values assigned within one page. I suggested valuerank because you could use it to list the occurrences maybe separated by « + » and then feed into an {{#expr}} tag and get a sum? Maybe ?🤔 ¯\_(ツ)_/¯ Cheers, Jeremi Le 14 mars 2024 à 10:16 PM +0100, Bernhard Krabina, KM-A <ber...@km...>, a écrit : > But if you only query one particular page {{#ask:[[MyPage]]...}}, does valuerank not give you that? > > Best, > Bernhard > > -----Ursprüngliche Nachricht----- > Von: Dominik Maus <do...@we...> > Gesendet: Donnerstag, 14. März 2024 21:47 > An: Jeremi Plazas <ke...@gm...>; sem...@li... > Betreff: Re: [Semediawiki-user] Count contents of a property > > Thanks for your answer Jeremi, > valuerank had my attention earlier but I cannot see a way to just count the set property values. Valuerank seems to count the occurences for each of the value which is not what I want. > > Thanks, > Dominik > > Am 14.03.2024 um 17:39 schrieb Jeremi Plazas: > > Look into valuerank format: > > https://www.semantic-mediawiki.org/wiki/Help:Valuerank_format > > > > Cheers, > > > > Jeremi > > On Mar 14, 2024 at 5:38 PM +0100, Dominik Maus <do...@we...>, > > wrote: > > > Greetings, > > > I am having multiple values in a single property per page but can't > > > seem to find a good way to count those. I know of Extension:Arrays > > > but it got mentioned that the extension will not work in future > > > MediaWiki releases, so I am looking for alternatives. > > > > > > SMW Result format 'count' isn't what I am looking for since this only > > > returns the page count, not the property values count. > > > > > > What I wanted to do is: > > > {{#set:myprop=A}} > > > {{#set:myprop=B}} > > > {{#set:myprop=C}} > > > > > > This should be queried somehow and result in 3. > > > > > > Thanks! > > > > > > > > > _______________________________________________ > > > Semediawiki-user mailing list > > > Sem...@li... > > > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user |
From: Dominik M. <do...@we...> - 2024-03-14 20:47:23
|
Thanks for your answer Jeremi, valuerank had my attention earlier but I cannot see a way to just count the set property values. Valuerank seems to count the occurences for each of the value which is not what I want. Thanks, Dominik Am 14.03.2024 um 17:39 schrieb Jeremi Plazas: > Look into valuerank format: > https://www.semantic-mediawiki.org/wiki/Help:Valuerank_format > > Cheers, > > Jeremi > On Mar 14, 2024 at 5:38 PM +0100, Dominik Maus <do...@we...>, > wrote: >> Greetings, >> I am having multiple values in a single property per page but can't seem >> to find a good way to count those. I know of Extension:Arrays but it got >> mentioned that the extension will not work in future MediaWiki releases, >> so I am looking for alternatives. >> >> SMW Result format 'count' isn't what I am looking for since this only >> returns the page count, not the property values count. >> >> What I wanted to do is: >> {{#set:myprop=A}} >> {{#set:myprop=B}} >> {{#set:myprop=C}} >> >> This should be queried somehow and result in 3. >> >> Thanks! >> >> >> _______________________________________________ >> Semediawiki-user mailing list >> Sem...@li... >> https://lists.sourceforge.net/lists/listinfo/semediawiki-user |
From: Jeremi P. <ke...@gm...> - 2024-03-14 16:40:21
|
Look into valuerank format: https://www.semantic-mediawiki.org/wiki/Help:Valuerank_format Cheers, Jeremi On Mar 14, 2024 at 5:38 PM +0100, Dominik Maus <do...@we...>, wrote: > Greetings, > I am having multiple values in a single property per page but can't seem > to find a good way to count those. I know of Extension:Arrays but it got > mentioned that the extension will not work in future MediaWiki releases, > so I am looking for alternatives. > > SMW Result format 'count' isn't what I am looking for since this only > returns the page count, not the property values count. > > What I wanted to do is: > {{#set:myprop=A}} > {{#set:myprop=B}} > {{#set:myprop=C}} > > This should be queried somehow and result in 3. > > Thanks! > > > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user |
From: Dominik M. <do...@we...> - 2024-03-14 16:36:38
|
Greetings, I am having multiple values in a single property per page but can't seem to find a good way to count those. I know of Extension:Arrays but it got mentioned that the extension will not work in future MediaWiki releases, so I am looking for alternatives. SMW Result format 'count' isn't what I am looking for since this only returns the page count, not the property values count. What I wanted to do is: {{#set:myprop=A}} {{#set:myprop=B}} {{#set:myprop=C}} This should be queried somehow and result in 3. Thanks! |
From: Freiberg, M. <Mic...@bi...> - 2024-03-14 11:35:24
|
Hi all, I am struggling with an issue of the DisplayTitle extension that was already discussed at SMWCon 2023 and therefore proposed for MediaWiki Hackathon 2024 (https://www.semantic-mediawiki.org/wiki/MediaWiki_Hackathon_2024). The problem is that titles set by {{DISPLAYTITLE:...}} are ignored by the autocompletion of the search field. Instead, the actual titles are considerated. I recently set up two SMWs with the same configuration. In case of the first one, autocompletion works fine (see http://stammbuch.ub.uni-giessen.de/). The second one shows the original titles among the autocompleted values (see http://bildarchiv.ub.uni-giessen.de). Also, the call of {{DISPLAYTITLE:...}} is the same in both SMWs: {{#if:{{{Sachtitel|}}}| {{#set:Sachtitel={{{Sachtitel|}}}}} {{DISPLAYTITLE:{{{Sachtitel|}}}}} }} I know that this is an open issue with no solution yet but though I would like to ask if anyone in this list knows a workaround or maybe a hint for solving this problem. Thanks in advance and kind regards, Michael --- Michael Freiberg University Library at the University of Gießen Otto-Behaghel-Str. 8 D-35394 Gießen Tel. +49 (0)641-9914101 Fax +49 (0)641-9914009 mic...@bi... http://www.uni-giessen.de/ub |
From: Cindy C. <ci...@gm...> - 2024-02-25 17:37:35
|
Greetings, MediaWiki users and developers! We are now accepting contributions for the 2024 MediaWiki Users and Developers Conference [0], which will be held April 17-19 in Portland, OR, USA. The deadline to submit a proposal is March 22. Sign up as soon as possible at [1]. This will primarily be an in-person conference, however we will consider remote presentations on a case-by-case basis.The first two days of the conference will be reserved for presentations. The third day of the conference will be a Create Camp, which will include tutorials, hands-on presentations, and small group hacking sessions. The MediaWiki Users and Developers Conference, formerly EMWCon, brings together the community that makes up MediaWiki – those who develop for MediaWiki, those who deploy MediaWiki, and those who use MediaWiki and are enthusiastic about the software. MediaWiki is used every day in a variety of contexts – educational projects, corporate knowledge bases, even online hobbyist communities – all valuing MediaWiki for its flexibility and its openness. By meeting together we can learn from our experiences and continue to build a true community of support for MediaWiki. Looking forward to seeing you in Portland! - The MediaWiki Users and Developers Conference Organizing Committee: James Hare - Conference Chair Cindy Cicalese - Program Chair Bryan Hilderbrand - Registration Chair Jeffrey Wang - Social Chair Ike Hecht - Sponsor Chair Ryan Schmidt - Technology Chair [0] https://www.mediawiki.org/wiki/MediaWiki_Users_and_Developers_Conference_2024 [1] https://www.mediawiki.org/wiki/MediaWiki_Users_and_Developers_Conference_2024#Sign_up_to_present |
From: Valerio <vm...@si...> - 2024-02-20 09:02:38
|
After upgrading MW from 1.35 to 1.40.1, SMW (from 3.0.0.+ to 4.1.2) and SRF (from 3.1.0+ to 4.0.2), this no longer works: {{#ask: [[Category:Volume 3]] |?Title={{#sub:title|5}} |?Has cover art=poster |?Has artists=artist |default=''No valid media found.'' |format=media |inspector=no }} and produces a blank, white rectangle does anyone have a suggestion? Thanks so much. Valerio  The Traditional Tune Archive The Semantic Index of North American, British and Irish traditional instrumental music with annotation. ------- Web: https://tunearch.org Mail: vm...@tu... |
From: GADET M. <mar...@ce...> - 2024-02-19 07:21:02
|
Thank tou for your help bu your idea doesn't work... I solve my problem by adding this lines in my LocalSetting.php file : // Block Deprecated Warning because it crash the wiki error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE); ini_set('display_errors', 1); -----Message d'origine----- De : Gary via Semediawiki-user <sem...@li...> Envoyé : samedi 17 février 2024 22:24 À : sem...@li... Cc : Gary <squ...@ya...> Objet : Re: [Semediawiki-user] [SMW] Error during installation I can't advise on those specific issues, I did install a fresh install a few weeks ago, that had a few issues, but managed to resolve. But, when I used to run MediaWiki with Semantic MediaWiki on a Windows machine when you run the php maintenance/update.php script, you need to make sure you have set the path to where the php is installed. See Install and Configure PHP on how to do that. On Friday, 16 February 2024 at 18:12:45 GMT+11, GADET Martin <mar...@ce...> wrote: Then I run php maintenance/update.php for the second time I got this : Deprecated: SMW\MediaWiki\Content\SchemaContent overrides prepareSave which was deprecated in MediaWiki 1.38. [Called from JsonContentHandler::validateSave in C:\wamp64\www\wikitest\includes\content\JsonContentHandler.php at line 75] in C:\wamp64\www\wikitest\includes\debug\MWDebug.php on line 381 Deprecated: Use of AbstractContent::getParserOutput was deprecated in MediaWiki 1.38. [Called from ContentHandler::callDeprecatedContentGPO in C:\wamp64\www\wikitest\includes\content\ContentHandler.php at line 1883] in C:\wamp64\www\wikitest\includes\debug\MWDebug.php on line 381 -----Message d'origine----- De : Gary via Semediawiki-user <sem...@li...> Envoyé : jeudi 15 février 2024 23:29 À : sem...@li... Cc : Gary <squ...@ya...> Objet : Re: [Semediawiki-user] [SMW] Error during installation what is the error(s) you are getting? On Wednesday, 14 February 2024 at 22:04:35 GMT+11, GADET Martin <mar...@ce...> wrote: _______________________________________________ Semediawiki-user mailing list Sem...@li... https://lists.sourceforge.net/lists/listinfo/semediawiki-user _______________________________________________ Semediawiki-user mailing list Sem...@li... https://lists.sourceforge.net/lists/listinfo/semediawiki-user _______________________________________________ Semediawiki-user mailing list Sem...@li... https://lists.sourceforge.net/lists/listinfo/semediawiki-user _______________________________________________ Semediawiki-user mailing list Sem...@li... https://lists.sourceforge.net/lists/listinfo/semediawiki-user |
From: Gary <squ...@ya...> - 2024-02-17 21:34:45
|
I can't advise on those specific issues, I did install a fresh install a few weeks ago, that had a few issues, but managed to resolve. But, when I used to run MediaWiki with Semantic MediaWiki on a Windows machine when you run the php maintenance/update.php script, you need to make sure you have set the path to where the php is installed. See Install and Configure PHP on how to do that. On Friday, 16 February 2024 at 18:12:45 GMT+11, GADET Martin <mar...@ce...> wrote: Then I run php maintenance/update.php for the second time I got this : Deprecated: SMW\MediaWiki\Content\SchemaContent overrides prepareSave which was deprecated in MediaWiki 1.38. [Called from JsonContentHandler::validateSave in C:\wamp64\www\wikitest\includes\content\JsonContentHandler.php at line 75] in C:\wamp64\www\wikitest\includes\debug\MWDebug.php on line 381 Deprecated: Use of AbstractContent::getParserOutput was deprecated in MediaWiki 1.38. [Called from ContentHandler::callDeprecatedContentGPO in C:\wamp64\www\wikitest\includes\content\ContentHandler.php at line 1883] in C:\wamp64\www\wikitest\includes\debug\MWDebug.php on line 381 -----Message d'origine----- De : Gary via Semediawiki-user <sem...@li...> Envoyé : jeudi 15 février 2024 23:29 À : sem...@li... Cc : Gary <squ...@ya...> Objet : Re: [Semediawiki-user] [SMW] Error during installation what is the error(s) you are getting? On Wednesday, 14 February 2024 at 22:04:35 GMT+11, GADET Martin <mar...@ce...> wrote: _______________________________________________ Semediawiki-user mailing list Sem...@li... https://lists.sourceforge.net/lists/listinfo/semediawiki-user _______________________________________________ Semediawiki-user mailing list Sem...@li... https://lists.sourceforge.net/lists/listinfo/semediawiki-user _______________________________________________ Semediawiki-user mailing list Sem...@li... https://lists.sourceforge.net/lists/listinfo/semediawiki-user |
From: GADET M. <mar...@ce...> - 2024-02-16 07:11:26
|
Then I run php maintenance/update.php for the second time I got this : Deprecated: SMW\MediaWiki\Content\SchemaContent overrides prepareSave which was deprecated in MediaWiki 1.38. [Called from JsonContentHandler::validateSave in C:\wamp64\www\wikitest\includes\content\JsonContentHandler.php at line 75] in C:\wamp64\www\wikitest\includes\debug\MWDebug.php on line 381 Deprecated: Use of AbstractContent::getParserOutput was deprecated in MediaWiki 1.38. [Called from ContentHandler::callDeprecatedContentGPO in C:\wamp64\www\wikitest\includes\content\ContentHandler.php at line 1883] in C:\wamp64\www\wikitest\includes\debug\MWDebug.php on line 381 -----Message d'origine----- De : Gary via Semediawiki-user <sem...@li...> Envoyé : jeudi 15 février 2024 23:29 À : sem...@li... Cc : Gary <squ...@ya...> Objet : Re: [Semediawiki-user] [SMW] Error during installation what is the error(s) you are getting? On Wednesday, 14 February 2024 at 22:04:35 GMT+11, GADET Martin <mar...@ce...> wrote: _______________________________________________ Semediawiki-user mailing list Sem...@li... https://lists.sourceforge.net/lists/listinfo/semediawiki-user _______________________________________________ Semediawiki-user mailing list Sem...@li... https://lists.sourceforge.net/lists/listinfo/semediawiki-user |
From: Gary <squ...@ya...> - 2024-02-15 22:28:49
|
what is the error(s) you are getting? On Wednesday, 14 February 2024 at 22:04:35 GMT+11, GADET Martin <mar...@ce...> wrote: _______________________________________________ Semediawiki-user mailing list Sem...@li... https://lists.sourceforge.net/lists/listinfo/semediawiki-user |
From: GADET M. <mar...@ce...> - 2024-02-14 08:12:47
|
From: Hoopingarner, D. <Dal...@de...> - 2024-02-12 17:13:53
|
No help for you there I’m afraid – not using the Semantic Cite extension. Regards, Dale Internal Use - Confidential From: ak...@ao... <ak...@ao...> Sent: Monday, February 12, 2024 10:16 AM To: sem...@li... Cc: Hoopingarner, Dale <Dal...@de...> Subject: Re: [Semediawiki-user] Version de Mediawiki [EXTERNAL EMAIL] Good Day Dale: I understand Semantic Cite 3.x had been made to work but I have not succeeded on MW 1.40 and SMW 4.1.2. Have you had experience with Semantic Cite on MW 1.40? If so; please tell share your versions. Thank you Clarence Pettis On Monday, February 12, 2024 at 10:00:04 AM EST, Hoopingarner, Dale via Semediawiki-user <sem...@li...<mailto:sem...@li...>> wrote: I've definitely had issues trying to upgrade to 1.41.0. While 1.40.0 isn't tagged as supported, I can report that I've been on 1.40.0 and SMW 4.1.2 since September 2023 without any issues. The wiki isn't heavily using SWM, only about 25 custom properties with a few hundred references, but no issues. Regards, Dale Internal Use - Confidential -----Original Message----- From: Jean-Claude Moissinac <jcm...@gm...<mailto:jcm...@gm...>> Sent: Saturday, February 10, 2024 3:19 PM To: sem...@li...<mailto:sem...@li...> Subject: [Semediawiki-user] Version de Mediawiki [EXTERNAL EMAIL] Hello I have a Mediawiki version 1.41.0 Semantic Mediawiki documentation says, for the latest available version: 4.1.x *Stable release* 2023-01-21 2023-03-09 *7.4.0* - 8.1.x 1.35.0 - 1.39.x What about a version of SMW for Mediawiki 1.41.0? Thank's _______________________________________________ Semediawiki-user mailing list Sem...@li...<mailto:Sem...@li...> https://urldefense.com/v3/__https://lists.sourceforge.net/lists/listinfo/semediawiki-user__;!!LpKI!nQcRSLWF9PVw44NEydF-WdR2JZzQM7Q-yK6tLz_CHyd-4lOlqNC9vPyEwtTwhU8MX8kfqJHZ2BoISJRw0v8DZkGg$<https://urldefense.com/v3/__https:/lists.sourceforge.net/lists/listinfo/semediawiki-user__;!!LpKI!nQcRSLWF9PVw44NEydF-WdR2JZzQM7Q-yK6tLz_CHyd-4lOlqNC9vPyEwtTwhU8MX8kfqJHZ2BoISJRw0v8DZkGg$> [lists[.]sourceforge[.]net] _______________________________________________ Semediawiki-user mailing list Sem...@li...<mailto:Sem...@li...> https://lists.sourceforge.net/lists/listinfo/semediawiki-user [lists.sourceforge.net]<https://urldefense.com/v3/__https:/lists.sourceforge.net/lists/listinfo/semediawiki-user__;!!LpKI!iEb3po7Ys8SVN-4c3ZLUBnNsNQ16U8Qc9XyT2_W_w8vIbunty6hTNS56wEbcMZpDJ32QaS4jnBc5VOk$> |
From: <ak...@ao...> - 2024-02-12 15:15:50
|
Good Day Dale: I understand Semantic Cite 3.x had been made to work but I have not succeeded on MW 1.40 and SMW 4.1.2. Have you had experience with Semantic Cite on MW 1.40? If so; please tell share your versions. Thank youClarence Pettis On Monday, February 12, 2024 at 10:00:04 AM EST, Hoopingarner, Dale via Semediawiki-user <sem...@li...> wrote: I've definitely had issues trying to upgrade to 1.41.0. While 1.40.0 isn't tagged as supported, I can report that I've been on 1.40.0 and SMW 4.1.2 since September 2023 without any issues. The wiki isn't heavily using SWM, only about 25 custom properties with a few hundred references, but no issues. Regards, Dale Internal Use - Confidential -----Original Message----- From: Jean-Claude Moissinac <jcm...@gm...> Sent: Saturday, February 10, 2024 3:19 PM To: sem...@li... Subject: [Semediawiki-user] Version de Mediawiki [EXTERNAL EMAIL] Hello I have a Mediawiki version 1.41.0 Semantic Mediawiki documentation says, for the latest available version: 4.1.x *Stable release* 2023-01-21 2023-03-09 *7.4.0* - 8.1.x 1.35.0 - 1.39.x What about a version of SMW for Mediawiki 1.41.0? Thank's _______________________________________________ Semediawiki-user mailing list Sem...@li... https://urldefense.com/v3/__https://lists.sourceforge.net/lists/listinfo/semediawiki-user__;!!LpKI!nQcRSLWF9PVw44NEydF-WdR2JZzQM7Q-yK6tLz_CHyd-4lOlqNC9vPyEwtTwhU8MX8kfqJHZ2BoISJRw0v8DZkGg$ [lists[.]sourceforge[.]net] _______________________________________________ Semediawiki-user mailing list Sem...@li... https://lists.sourceforge.net/lists/listinfo/semediawiki-user |
From: Hoopingarner, D. <Dal...@de...> - 2024-02-12 14:59:01
|
I've definitely had issues trying to upgrade to 1.41.0. While 1.40.0 isn't tagged as supported, I can report that I've been on 1.40.0 and SMW 4.1.2 since September 2023 without any issues. The wiki isn't heavily using SWM, only about 25 custom properties with a few hundred references, but no issues. Regards, Dale Internal Use - Confidential -----Original Message----- From: Jean-Claude Moissinac <jcm...@gm...> Sent: Saturday, February 10, 2024 3:19 PM To: sem...@li... Subject: [Semediawiki-user] Version de Mediawiki [EXTERNAL EMAIL] Hello I have a Mediawiki version 1.41.0 Semantic Mediawiki documentation says, for the latest available version: 4.1.x *Stable release* 2023-01-21 2023-03-09 *7.4.0* - 8.1.x 1.35.0 - 1.39.x What about a version of SMW for Mediawiki 1.41.0? Thank's _______________________________________________ Semediawiki-user mailing list Sem...@li... https://urldefense.com/v3/__https://lists.sourceforge.net/lists/listinfo/semediawiki-user__;!!LpKI!nQcRSLWF9PVw44NEydF-WdR2JZzQM7Q-yK6tLz_CHyd-4lOlqNC9vPyEwtTwhU8MX8kfqJHZ2BoISJRw0v8DZkGg$ [lists[.]sourceforge[.]net] |