Difference between revisions of "User:Alexander.Gesinn/WD 2021-03-22"
m |
(→Task 4: UrlGetParameter: Added note about passing multi value parameter) |
||
Line 86: | Line 86: | ||
* 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 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 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 <code>#arraymap</code> parser function or functionality provided by https://www.mediawiki.org/wiki/Extension:Arrays or https://www.mediawiki.org/wiki/Extension:Variables. | ||
{{#if:{{#urlget:ordinal}}|Showing results for <code>Ordinal={{#urldecode:{{#urlget:ordinal}}}}</code>:|No <code>Ordinal</code> given, showing all results:}} | {{#if:{{#urlget:ordinal}}|Showing results for <code>Ordinal={{#urldecode:{{#urlget:ordinal}}}}</code>:|No <code>Ordinal</code> given, showing all results:}} |
Latest revision as of 10:02, 9 April 2021
Contents
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
}}
Acronym | end_date | start_date | |
---|---|---|---|
" DBKDA 2021" | " DBKDA 2021" | 3 June 2021 | 30 May 2021 |
"ENERGY 2021" | "ENERGY 2021" | 3 June 2021 | 30 May 2021 |
"ICAS 2021" | "ICAS 2021" | 3 June 2021 | 30 May 2021 |
"ICNS 2021" | "ICNS 2021" | 3 June 2021 | 30 May 2021 |
(APIT 2025)2025 7th Asia Pacific Information Technology Conference | (APIT 2025)2025 7th Asia Pacific Information Technology Conference | 2025 | 12 January 2025 |
(CVCI 2025) 2025 6th International Conference on Computer Vision and Computational Intelligence | (CVCI 2025) 2025 6th International Conference on Computer Vision and Computational Intelligence | 2025 | 2025 |
(DMIP 2024) | (DMIP 2024) | 15 September 2024 | 13 September 2024 |
(ICAEB 2024) | ICAEB 2024 | 25 August 2024 | 23 August 2024 |
(ICEER 2025) (Europe) | (ICEER 2025) (Europe) | 31 July 2025 | 28 July 2025 |
2021 ICIMP | 2021 ICIMP | 12 June 2021 | 10 June 2021 |
2022 DMIP 2022 | 2022 DMIP 2022 | 13 November 2022 | 10 November 2022 |
2022 ICRCA | 2022 ICRCA | 28 February 2022 | 26 February 2022 |
2022 SGSE 2022 | 2022 SGSE 2022 | 13 November 2022 | 11 November 2022 |
2023 CCIOT | 2023 CCIOT | 24 September 2023 | 22 September 2023 |
2023 DMIP 2023 | 2023 DMIP 2023 | 12 November 2023 | 9 November 2023 |
2023 ICBDM 2023 | 2023 ICBDM 2023 | 18 December 2023 | 16 December 2023 |
2023 ICCCI 2023 | 2023 ICCCI 2023 | 25 June 2023 | 23 June 2023 |
2023 ICCS 2023 | 2023 ICCS 2023 | 24 September 2023 | 22 September 2023 |
2023 ICENT | 2023 ICENT | 24 September 2023 | 22 September 2023 |
2023 ICICM | 2023 ICICM | 23 October 2023 | 20 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 2024 | 2 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 2024 | 7 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 2024 | 21 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 2024 | 25 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 2024 | 11 September 2024 |
2024 5th International Artificial Intelligence and Blockchain Conference (AIBC 2024) | 2024 5th International Artificial Intelligence and Blockchain Conference (AIBC 2024) | 13 September 2024 | 11 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 2024 | 27 September 2024 |
2024 6th Asia Digital Image Processing Conference (ADIP 2024) | 2024 6th Asia Digital Image Processing Conference (ADIP 2024) | 16 December 2024 | 14 December 2024 |
2024 6th International Conference on Big Data Engineering (BDE 2024) | 2024 6th International Conference on Big Data Engineering (BDE 2024) | 26 July 2024 | 24 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) | 2024 | 27 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 2024 | 4 December 2024 |
2024 7th Artificial Intelligence and Cloud Computing Conference (AICCC 2024) | 2024 7th Artificial Intelligence and Cloud Computing Conference (AICCC 2024) | 16 December 2024 | 14 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 2024 | 21 November 2024 |
2024 ICBDM 2024 | 2024 ICBDM 2024 | 16 December 2024 | 14 December 2024 |
2024 ICCS 2024 | 2024 ICCS 2024 | 22 September 2024 | 20 September 2024 |
2024 ICET 2024 | 2024 ICET 2024 | 15 September 2024 | 13 September 2024 |
2024 ICICM 2024 | 2024 ICICM 2024 | 8 November 2024 | 6 November 2024 |
2024 ICIEA 2024 | 2024 ICIEA 2024 | 19 April 2024 | 17 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 2024 | 13 June 2024 |
2025 13th International Conference on Information Management and Engineering (ICIME 2025) | 2025 13th International Conference on Information Management and Engineering (ICIME 2025) | 2025 | 2025 |
2025 3rd International Conference on Control and Robot Technology (ICCRT 2025) | 2025 3rd International Conference on Control and Robot Technology (ICCRT 2025) | 18 April 2025 | 16 April 2025 |
2025 6th International Conference on Industrial Engineering and Artificial Intelligence (IEAI 2025) | 2025 6th International Conference on Industrial Engineering and Artificial Intelligence (IEAI 2025) | 2025 | 2025 |
2025 6th International Conference on Machine Learning and Human-Computer Interaction (MLHMI 2025) | 2025 6th International Conference on Machine Learning and Human-Computer Interaction (MLHMI 2025) | 6 March 2025 | 4 March 2025 |
2025 7th Blockchain and Internet of Things Conference (BIOTC 2025) | 2025 7th Blockchain and Internet of Things Conference (BIOTC 2025) | 27 June 2025 | 25 June 2025 |
2025 7th International Conference on Big Data Engineering (BDE 2025) | 2025 7th International Conference on Big Data Engineering (BDE 2025) | 26 September 2025 | 24 September 2025 |
2025 7th International Conference on Big-data Service and Intelligent Computation (BDSIC 2025) | 2025 7th International Conference on Big-data Service and Intelligent Computation (BDSIC 2025) | 22 May 2025 | 20 May 2025 |
2025 7th International Conference on Image, Video and Signal Processing (IVSP 2025) | 2025 7th International Conference on Image, Video and Signal Processing (IVSP 2025) | 2025 | 2025 |
2025 7th International Conference on Management Science and Industrial Engineering (MSIE 2025) | 2025 7th International Conference on Management Science and Industrial Engineering (MSIE 2025) | 24 April 2025 | |
2025 7th International Conference on Mechatronics Systems and Control Engineering (ICMSCE 2025) | 2025 7th International Conference on Mechatronics Systems and Control Engineering (ICMSCE 2025) | 18 April 2025 | 16 April 2025 |
2025 7th International Conference on Software Engineering and Development (ICSED 2025) | 2025 7th International Conference on Software Engineering and Development (ICSED 2025) | 2025 | 2025 |
... 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
- The UrlGetParameter extension is used so that a query parameter can be attached to the page URL, e.g., the ordinal value "1" is specified as an URL query parameter, such that the wiki pages shows a table only with entries for conferences that were the first in their series.
- Issue #16 is avoided.
- 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 astest=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...