|
|
| (6 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) |
| Zeile 1: |
Zeile 1: |
| == Abfragen mithilfe Extension:Arrays ==
| |
|
| |
|
| * https://checklisten.rotelistezentrum.de/api/public/1/taxa_by_name?include_synonyms%3F=true&kingdoms=plants&taxname=<!---->{{URLENCODE:{{{Suchabfrage ausführen mit|Acer pseudoplatanus L.}}}}}
| |
|
| |
|
| |
| Suche https://checklisten.rotelistezentrum.de/api/public/1/taxa_by_name?kingdoms=plants&taxname=<!---->{{URLENCODE:{{{Suchabfrage ausführen mit|Galium valdepilosum Heinr. Braun}}}}} ergäbe:
| |
| {{#get_web_data: url=https://checklisten.rotelistezentrum.de/api/public/1/taxa_by_name?kingdoms=plants&taxname=<!---->{{URLENCODE:{{{Suchabfrage ausführen mit|Galium valdepilosum Heinr. Braun}}}}}
| |
| |format=json
| |
| |use jsonpath
| |
| |data=all_this_name=$.taxnames[*].name,
| |
| all_this_accepted_name=$.taxnames[*].accepted_name,
| |
| all_this_kind=$.taxnames[*].kind,
| |
| all_this_long_citation=$.taxnames[*].checklist_citations[0].long_citation,
| |
| all_this_checklist_uri=$.taxnames[*].checklist_uri,
| |
| all_this_taxon_uri=$.taxnames[*].taxon_uri,
| |
| all_this_checklist_region=$.taxnames[*].checklist_region,
| |
| all_this_checklist_id=$.taxnames[*].checklist_id,
| |
| query_time=__time
| |
| }}<!--
| |
| -->{{#arraydefine: array_taxa_uri_data|<!--
| |
| -->{{#if: {{#external_value: all_this_accepted_name|}}<!--
| |
| Dann-->|{{#for_external_table:|{{{all_this_taxon_uri}}}?output_synonyms%3F=true<VALUESEP>{{{all_this_kind}}}<ENTRYSEP>}}<!--
| |
| Oder-->|<!--
| |
| -->}}<!--
| |
| -->|<ENTRYSEP>|unique<!--
| |
| -->}}<!-- arraydefine
| |
| -->{{#ifexpr: {{#arraysize: array_taxa_uri_data}} > 0<!--
| |
| DANN
| |
| * {{#arrayprint: array_taxa_uri_data|<br/>}}
| |
| * all_this_kind=accepted
| |
| -->|
| |
| * anerkannte Namen (=kind:accepted): {{#for_external_table:|<!--
| |
| -->{{#switch:{{{all_this_kind|?}}}
| |
| |accepted=<!--
| |
| -->{{#ifeq: {{{all_this_name|?}}}|{{{all_this_accepted_name|?}}}<!--
| |
| then-->|{{{all_this_accepted_name|?}}}<!--
| |
| else-->|{{{all_this_name|?}}} <!--
| |
| -->{{#switch:{{{all_this_kind|?}}}
| |
| |accepted=anerkannt als (=kind:accepted)
| |
| |consyn=ist Konzept-Synonym von (=kind:consyn)
| |
| |synonym=ist Synonym von (=kind:synonym)
| |
| |#default=bewertet als “{{{all_this_kind|?}}}” für den anerkannten Namen
| |
| }}
| |
| {{{all_this_accepted_name|?}}}<!--
| |
| -->}}<!-- ifeq end
| |
|
| |
| -->{{#tag: ref
| |
| |{{{all_this_long_citation|?}}} (<!--
| |
| -->Datenquellen: [{{{all_this_checklist_uri}}} {{#replace: {{{all_this_checklist_uri|Prüfliste ?fehlende Datenquelle?}}}|https://|}}]<!--
| |
| -->, [{{{all_this_taxon_uri}}}?output_synonyms%3F=true {{#replace: {{{all_this_taxon_uri|Taxon ?fehlende Datenquelle?}}}|https://|}}]<!--
| |
| --> – für das Gebiet {{{all_this_checklist_region|?Gebiet fehlt?}}}<!--
| |
| -->)
| |
| |name=checklist_{{{all_this_checklist_id}}}<!-- <ref name="…"></ref>
| |
| -->}};  <!-- ref
| |
| -->}}<!-- switch:kind=accepted
| |
| -->}}<!-- #for_external_table
| |
|
| |
| einheitliche ref-Quellenangaben für alle Prüflisten speichern, Wiederverwendung nur als <ref name="checklist_123"></ref>
| |
|
| |
| -->{{#arraydefine: array_checklist_uri_wikicode_reference<!--
| |
| -->|<!--
| |
| -->{{#for_external_table:|<!--
| |
| -->{{#switch:{{{all_this_kind|?}}}<!--
| |
| -->|accepted=<!--
| |
|
| |
| -->checklist_{{{all_this_checklist_id}}}<VALUESEP>{{#tag: ref<!-- -->|<!-- -->|name=checklist_{{{all_this_checklist_id}}}<!-- -->}}; <ENTRYSEP><!-- ref
| |
| -->}}<!-- switch:kind=accepted
| |
| -->}}<!-- #for_external_table
| |
| -->|<ENTRYSEP>|unique<!--
| |
| -->}}<!-- #arraydefine
| |
|
| |
| loop through kind:consyn AND kind:synonym (disregard kind:accepted)
| |
|
| |
| -->{{#arraysearcharray: array_a_kind_of_synonym_taxon_uri |array_taxa_uri_data|/(.+)(<VALUESEP>c?o?n?syno?n?y?m?)\b/|0|-1|$1}}<!--
| |
| -->{{#ifexpr: {{#arraysize: array_a_kind_of_synonym_taxon_uri}} > 0<!--
| |
| Dann-->|<!--
| |
| Abfrage der Synonyme kann durchgeführt werden
| |
| * synonym(s): {{#arrayprint: array_a_kind_of_synonym_taxon_uri |;}}
| |
| -->{{#clear_external_data: }}<!--
| |
| -->{{#arraydefine: array_all_kind_of_synonyms_wikicode|<!--
| |
| array:Einzelwerte
| |
| -->{{#arrayprint: array_a_kind_of_synonym_taxon_uri<!--
| |
| -->|<!--
| |
| -->|@TAXONURI_OUTPUT_SYNONYMS@<!--
| |
| -->|<!--
| |
| -->{{#get_web_data: url=@TAXONURI_OUTPUT_SYNONYMS@
| |
| |format=json
| |
| |use jsonpath
| |
| |data=all_this_synonyms_name=$.synonyms[*].name,
| |
| all_this_synonyms_kind=$.synonyms[*].kind,
| |
| all_this_synonyms_status=$.synonyms[*].status,
| |
| all_this_long_citation=$.checklist_citations[0].long_citation,
| |
| this_checklist_uri=$.checklist_uri,
| |
| this_checklist_id=$.checklist_id,
| |
| this_checklist_region=$.checklist_region,
| |
| query_time=__time
| |
| }}<!--
| |
| -->{{#for_external_table:|<!--
| |
| -->{{#switch:{{{all_this_synonyms_kind|?}}}
| |
| |consyn|synonym=<!--
| |
| -->kind:{{{all_this_synonyms_kind|?}}}<VALUESEP>{{{all_this_synonyms_name|?synonyms_name?}}}<!--
| |
|
| |
| möglichst schon verwendete <ref> als <ref name="checklist_123"></ref>
| |
|
| |
| -->{{#if: {{#arraysearch: array_checklist_uri_wikicode_reference|/checklist_{{#external_value: this_checklist_id}}<VALUESEP>/}}<!--
| |
| Dann
| |
| -->|{{#arraysearcharray: this_checklist_uri_wikicode_reference<!--
| |
| -->|array_checklist_uri_wikicode_reference<!--
| |
| -->|/(checklist_{{#external_value: this_checklist_id}}<VALUESEP>)(.+)$/<!--
| |
| -->|0|-1|$2<!--
| |
| -->}}<!--
| |
| -->{{#arrayprint: this_checklist_uri_wikicode_reference|}}<!--
| |
| Oder: muß ref neu zusammenbasteln
| |
| -->|<!--
| |
| -->{{#tag: ref<!--
| |
| -->|{{#external_value: all_this_long_citation}} (<!--
| |
| -->Datenquellen: [{{#external_value: this_checklist_uri|?checklist_uri?}} {{#replace: {{#external_value: this_checklist_uri|Prüfliste fehlende Datenquelle <code>checklist_uri</code>?}}|https://|}}]<!--
| |
| -->, [@TAXONURI_OUTPUT_SYNONYMS@ {{#replace: {{#replace: @TAXONURI_OUTPUT_SYNONYMS@|?output_synonyms%3F=true|}}|https://|}}]<!--
| |
| --> – für das Gebiet {{#external_value: this_checklist_region|?Gebiet fehlt?}}<!--
| |
| -->)
| |
| |name=syn_checklist_{{#external_value: this_checklist_id}}<!-- <ref name="…"></ref>
| |
| -->}}; <!--
| |
| -->}}<!-- Ende if arraysearch ref von checklist_id_…
| |
|
| |
| --><ENTRYSEP><!-- für umschließendes arraydefine
| |
| -->}}<!-- switch:consyn, synonym
| |
| -->}}<!-- #for_external_table
| |
| -->}}<!-- #arrayprint
| |
| -->|<!--
| |
| --><ENTRYSEP>}}<!-- arraydefine:Auftrennung
| |
|
| |
| --><!--
| |
| Test: {{#arrayprint: array_all_kind_of_synonyms_wikicode|<br/>Test: }}
| |
|
| |
| -->{{#arraysearcharray: array_synonym_wikicode|array_all_kind_of_synonyms_wikicode|/(kind:synonym<VALUESEP>)(.+)/|0|-1|$2}}<!--
| |
| -->{{#arraysearcharray: array_consyn_wikicode|array_all_kind_of_synonyms_wikicode|/(kind:consyn<VALUESEP>)(.+)/|0|-1|$2}}<!--
| |
|
| |
| -->{{#ifexpr: {{#arraysize: array_synonym_wikicode}} + {{#arraysize: array_consyn_wikicode}} > 0<!--
| |
| Dann
| |
| -->|
| |
| * Synonyme: <!--
| |
| -->{{#ifexpr: {{#arraysize: array_synonym_wikicode}} > 0<!--
| |
| dann-->|{{#arrayprint: array_synonym_wikicode|}}<!-- {{#arrayprint: array_synonym_wikicode||@ENTRY@|{{#replace: @ENTRY@|kind:synonym<VALUESEP>|}}}} -->|<!--
| |
| oder-->|(derzeit ohne)<!--
| |
| -->}}
| |
| * Konzept-Synonyme: <!--
| |
| -->{{#ifexpr: {{#arraysize: array_consyn_wikicode}} > 0<!--
| |
| dann-->|{{#arrayprint: array_consyn_wikicode|}}<!--{{#arrayprint: array_consyn_wikicode||@ENTRY@|{{#replace: @ENTRY@|kind:consyn<VALUESEP>|}}}}-->|<!--
| |
| oder-->|(derzeit ohne)<!--
| |
| -->}}<!--
| |
| Oder
| |
| -->|
| |
| * Synonyme: derzeit sind keinlerlei (Konzept-) Synonyme zu finden<!--
| |
| -->}}<!-- ifexpr
| |
| -->}}<!-- if #arraysize array_a_kind_of_synonym_taxon_uri
| |
|
| |
| ODER
| |
| -->|Die Prüflisten-Abfrage liefert zur Zeit keine Ergebnisse für {{{Suchabfrage ausführen mit|Galium valdepilosum Heinr. Braun}}}, oder es läuft technisch etwas schief (s. technische Dokumentationen [https://checklisten.rotelistezentrum.de/api/public/swagger-ui#/ checklisten.rotelistezentrum.de/api/public/swagger-ui#/]).<!--
| |
| -->}}<!-- if #arraysize array_taxa_uri_data -->
| |
|
| |
|
| |
| '''Quellenangaben'''
| |
|
| |
| <references/>
| |