User:Alexander.Gesinn/WD 2021-03-22

From Openresearch
< User:Alexander.Gesinn
Revision as of 10:02, 9 April 2021 by Alexander.Gesinn (talk | contribs) (Task 4: UrlGetParameter: Added note about passing multi value parameter)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Initial Situation

A table defined by

{{#ask:[[IsA::Event]]
 |?Acronym
 |mainlabel=Event
 | ?End_date = end_date
 | ?Start_date = start_date
 | limit=20
 |format=table
}}

Task 1: Increase the limit

Increase the limit to the maximum value that is possible according to the current configuration of OpenResearch.

The above query is using the parameter limit to restrict the maximum number of results that are returned. By removing limit, the number of results is limited by configuration parameter $smwgQMaxInlineLimit (default: 500). The number of results returned before the "...further results" link is shown can be configured by $smwgQDefaultLimit (default: 50).

Solution
{{#ask:[[IsA::Event]]
  |?Acronym
  |?End_date=end_date
  |?Start_date=start_date
  |format=table
}}
 Acronymend_datestart_date
" DBKDA 2021"" DBKDA 2021"3 June 202130 May 2021
"ENERGY 2021""ENERGY 2021"3 June 202130 May 2021
"ICAS 2021""ICAS 2021"3 June 202130 May 2021
"ICNS 2021""ICNS 2021"3 June 202130 May 2021
(DMIP 2024)(DMIP 2024)15 September 202413 September 2024
(ICAEB 2024)ICAEB 202425 August 202423 August 2024
2021 ICIMP2021 ICIMP12 June 202110 June 2021
2022 DMIP 20222022 DMIP 202213 November 202210 November 2022
2022 ICRCA2022 ICRCA28 February 202226 February 2022
2022 SGSE 20222022 SGSE 202213 November 202211 November 2022
2023 CCIOT2023 CCIOT24 September 202322 September 2023
2023 DMIP 20232023 DMIP 202312 November 20239 November 2023
2023 ICBDM 20232023 ICBDM 202318 December 202316 December 2023
2023 ICCCI 20232023 ICCCI 202325 June 202323 June 2023
2023 ICCS 20232023 ICCS 202324 September 202322 September 2023
2023 ICENT2023 ICENT24 September 202322 September 2023
2023 ICICM2023 ICICM23 October 202320 October 2023
2024 13th International Conference on Clean and Green Energy (ICCGE 2024)2024 13th International Conference on Clean and Green Energy (ICCGE 2024)4 August 20242 August 2024
2024 15th International Conference on Environmental Science and Development (ICESD 2024)2024 15th International Conference on Environmental Science and Development (ICESD 2024)9 August 20247 August 2024
2024 15th International Conference on Environmental Science and Technology (ICEST 2024)2024 15th International Conference on Environmental Science and Technology (ICEST 2024)23 November 202421 November 2024
2024 3rd International Conference on Artificial Intelligence and Software Engineering (ICAISE 2024)2024 3rd International Conference on Artificial Intelligence and Software Engineering (ICAISE 2024)27 October 202425 October 2024
2024 5th Asia Service Sciences and Software Engineering Conference (ASSE 2024)2024 5th Asia Service Sciences and Software Engineering Conference (ASSE 2024)13 September 202411 September 2024
2024 5th International Artificial Intelligence and Blockchain Conference (AIBC 2024)2024 5th International Artificial Intelligence and Blockchain Conference (AIBC 2024)13 September 202411 September 2024
2024 5th International Conference on Control and Robot Technology (ICCRT 2024)2024 5th International Conference on Control and Robot Technology (ICCRT 2024)29 September 202427 September 2024
2024 6th Asia Digital Image Processing Conference (ADIP 2024)2024 6th Asia Digital Image Processing Conference (ADIP 2024)16 December 202414 December 2024
2024 6th International Conference on Big Data Engineering (BDE 2024)2024 6th International Conference on Big Data Engineering (BDE 2024)26 July 202424 July 2024
2024 6th International Conference on Mechatronics Systems and Control Engineering (ICMSCE 2024)2024 6th International Conference on Mechatronics Systems and Control Engineering (ICMSCE 2024)202427 September 2024
2024 6th International Conference on Smart Power & Internet Energy Systems (SPIES 2024)2024 6th International Conference on Smart Power & Internet Energy Systems (SPIES 2024)6 December 20244 December 2024
2024 7th Artificial Intelligence and Cloud Computing Conference (AICCC 2024)2024 7th Artificial Intelligence and Cloud Computing Conference (AICCC 2024)16 December 202414 December 2024
2024 7th International Conference on Environment and Ocean Engineering (ICEOE 2024)2024 7th International Conference on Environment and Ocean Engineering (ICEOE 2024)23 November 202421 November 2024
2024 ICBDM 20242024 ICBDM 202416 December 202414 December 2024
2024 ICCS 20242024 ICCS 202422 September 202420 September 2024
2024 ICET 20242024 ICET 202415 September 202413 September 2024
2024 ICICM 20242024 ICICM 20248 November 20246 November 2024
2024 ICIEA 20242024 ICIEA 202419 April 202417 April 2024
2024 The 6th International Conference on Control and Computer Vision (ICCCV 2024)2024 The 6th International Conference on Control and Computer Vision (ICCCV 2024)15 June 202413 June 2024
3DUI 20163DUI 201620 March 201619 March 2016
3DUI 20203DUI 202026 March 202022 March 2020
3IA 20093IA 200930 May 200929 May 2009
3PGIC 20103PGIC 201018 February 201015 February 2010
3dui 20103DUI 202021 March 201020 March 2010
3rd EPSEE 20243rd EPSEE 20249 June 20247 June 2024
4S4D 20174S4D 201718 May 201717 May 2017
5GU 20175GU 20179 June 20178 June 2017
5GWN 20175GWN 201723 April 201721 April 2017
AAAC 2023)AAAC 202317 September 202315 September 2023
AAAC 2024AAAC 202422 September 202420 September 2024
AAAI 1980AAAI 198021 August 198018 August 1980
AAAI 1982AAAI 198220 August 198218 August 1982
AAAI 1983AAAI 198326 August 198322 August 1983
... further results

Task 2: Modify query to use datatables

The datatables format is used to enable the data in the table to be searched.

{{#ask:[[IsA::Event]]
  |?Acronym
  |?End_date=end_date
  |?Start_date=start_date
  |mainlabel=Event
  |format=datatables
}}

Loading...

Task 3: Add additional field/column

Add an additional frequently used field/column to be selected from the properties listed on the PropertyUsageSorted page, e.g., Ordinal.

{{#ask:[[IsA::Event]]
  |?Acronym
  |?End_date=end_date
  |?Start_date=start_date
  |?Ordinal
  |mainlabel=Event
  |format=datatable
}}

Loading...

Task 4: UrlGetParameter

Solution
  • Note 1: Parameters passed via URL should be encoded using only the limited US-ASCII characters legal within a URI. This is done automatically by Extension:UrlGetParameters, e.g. test=A:B will be returned as test=A%3AB by #urlget. Thus decoding might be required before using parameters.
  • Note 2: If a parameter is optional, code that relies on that parameter, needs to deal with absence of the parameter without causing issues.
  • Note 3: If a parameter is expected to be a specific data type / format, code that relies on that data type / format, needs to implement checks ("never trust a stranger unless he gives you candy"). https://www.mediawiki.org/wiki/Extension:RegexFunctions can help with that.
  • Note 4: If a parameter is expected to allow multiple values, further processing needs to be done to transform the values to an ask query compliant format (e.g. using Page Forms #arraymap parser function or functionality provided by https://www.mediawiki.org/wiki/Extension:Arrays or https://www.mediawiki.org/wiki/Extension:Variables.

No Ordinal given, showing all results:

Loading...