http://floranorthamerica.org/w/index.php?title=Sample_Queries&feed=atom&action=history
Sample Queries - Revision history
2024-03-29T12:13:32Z
Revision history for this page on the wiki
MediaWiki 1.34.3
http://floranorthamerica.org/w/index.php?title=Sample_Queries&diff=404713&oldid=prev
Admin: add illustrator summary table query
2021-01-19T19:40:10Z
<p>add illustrator summary table query</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 19:40, 19 January 2021</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l259" >Line 259:</td>
<td colspan="2" class="diff-lineno">Line 259:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|[https://github.com/jocelynpender/fna-query/blob/master/R/demo_queries/illustrations/illustrations_by_person.R R script]</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|[https://github.com/jocelynpender/fna-query/blob/master/R/demo_queries/illustrations/illustrations_by_person.R R script]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[https://github.com/jocelynpender/fna-query/blob/master/python/demo_queries/illustrations/illustrations_by_person.py Python script]</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[https://github.com/jocelynpender/fna-query/blob/master/python/demo_queries/illustrations/illustrations_by_person.py Python script]</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|-</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|A list of illustrations, taxon name, taxon family, volume and illustrator</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|[[Property:Plate of taxon|Plate of taxon]]</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">Note that this query employs [https://www.semantic-mediawiki.org/wiki/Help:Subqueries_and_property_chains property chains]</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|<code><nowiki>[[Plate of taxon::+]]|?Plate of taxon|?Plate of taxon.Taxon family=Taxon family|?Plate of taxon.Volume=Volume|?Plate of taxon.Illustrator=Illustrator</nowiki></code></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|{{#ask:</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Plate of taxon::+]]|?Plate of taxon|?Plate of taxon.Taxon family=Taxon family|?Plate of taxon.Volume=Volume|?Plate of taxon.Illustrator=Illustrator</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|searchlabel=Try it!</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|limit=0</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">}}</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Volumes ===</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Volumes ===</div></td></tr>
</table>
Admin
http://floranorthamerica.org/w/index.php?title=Sample_Queries&diff=360540&oldid=prev
Admin: add info about query size limitations
2020-11-02T21:20:42Z
<p>add info about query size limitations</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 21:20, 2 November 2020</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l2" >Line 2:</td>
<td colspan="2" class="diff-lineno">Line 2:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Special:Ask|Click here to access the '''Semantic search query interface''' directly.]]</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Special:Ask|Click here to access the '''Semantic search query interface''' directly.]]</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">== Query Size Limitations ==</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">Semantic MediaWiki software limits queries to 5,000 results. If you expect your query to return more than 5,000 results, you should run your query in batches. (N.B.: There are ~20,000 treatments in the FNA Online.)</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">To run your query in batches, we recommend splitting results by 'published volume'. You can do this by adding a volume condition to your query (e.g., "<code><nowiki>[[Volume::Volume 17]]</nowiki></code>"). Please see [http://beta.semanticfna.org/w/index.php?title=Special%3ASearchByProperty&property=Volume&value= this page] for a list of volumes that can be queried.</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Queries by Subject ==</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Queries by Subject ==</div></td></tr>
</table>
Admin
http://floranorthamerica.org/w/index.php?title=Sample_Queries&diff=357819&oldid=prev
Admin: remove special status disclaimer
2020-07-26T16:17:02Z
<p>remove special status disclaimer</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 16:17, 26 July 2020</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l187" >Line 187:</td>
<td colspan="2" class="diff-lineno">Line 187:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Special Status ===</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Special Status ===</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">Due to limitations in data capture, special status data are only available in V3, V6, V9, V12, V17, V28.</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{| class="wikitable"</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{| class="wikitable"</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>!</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>!</div></td></tr>
</table>
Admin
http://floranorthamerica.org/w/index.php?title=Sample_Queries&diff=357506&oldid=prev
Admin: add taxonomic filtering section
2020-07-16T15:43:22Z
<p>add taxonomic filtering section</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 15:43, 16 July 2020</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l309" >Line 309:</td>
<td colspan="2" class="diff-lineno">Line 309:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">=</del>== Advanced Queries <del class="diffchange diffchange-inline">=</del>==</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>== Advanced Queries ==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Composite Queries ===</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Composite Queries ===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>You can combine any query elements from the above subjects to create a custom search.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>You can combine any query elements from the above subjects to create a custom search.</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l328" >Line 328:</td>
<td colspan="2" class="diff-lineno">Line 328:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Comparators ===</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Comparators ===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>You can use [https://www.semantic-mediawiki.org/wiki/Help:Search_operators comparators] with the [[Property:Publication year|Publication year property]]. (e.g., '''<code>></code>''', '''<code><</code>''', '''<code>≥</code>''').</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>You can use [https://www.semantic-mediawiki.org/wiki/Help:Search_operators comparators] with the [[Property:Publication year|Publication year property]]. (e.g., '''<code>></code>''', '''<code><</code>''', '''<code>≥</code>''').</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">=== Taxonomic Filtering ===</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">To return a dataset restricted to a taxonomic group, simply add a category filter:</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">{| class="wikitable"</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|+</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">!</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">!Properties Used</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">!Category Used</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">!Query Syntax</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">!Query Interface</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">!Query Results</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|-</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|Elevation data for ''Carex''</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|Elevation</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|Carex</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|<code><nowiki>[[Category:Carex]]|?Elevation</nowiki></code></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|{{#ask:</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category:Carex]]|?Elevation</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|searchlabel=Try it!</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|limit=0</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">}}</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|{{#ask:</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category:Carex]]|?Elevation</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|limit=2</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|format=ul</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">}} </ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|}</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">When working with categories, precede your category request with only '''one colon.'''</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Return More Information ===</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Return More Information ===</div></td></tr>
</table>
Admin
http://floranorthamerica.org/w/index.php?title=Sample_Queries&diff=315708&oldid=prev
Admin: Remove morphological sample queries from beta
2020-04-21T18:57:09Z
<p>Remove morphological sample queries from beta</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 18:57, 21 April 2020</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l309" >Line 309:</td>
<td colspan="2" class="diff-lineno">Line 309:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>=<del class="diffchange diffchange-inline">== Morphology ===</del></div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>=== Advanced Queries ==<ins class="diffchange diffchange-inline">=</ins></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">A property browser is in development to facilitate the exploration of the morphological properties. Here are a few sample queries to illustrate the power of parsed morphological data derived from FNA treatments.</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">{| class="wikitable"</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">!</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">!Properties Used</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">!Query Syntax</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">!Query Interface</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">!Query Results</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">!Query the API</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|-</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|Taxa by corolla coloration</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|[[Property:Corolla coloration|Corolla coloration]] (explore [[Special:SearchByProperty/:Corolla coloration/|available values]])</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|<code><nowiki>[[Corolla coloration::yellow]]</nowiki></code></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|{{#ask:</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">[[Corolla coloration::yellow]]</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|searchlabel=Try it!</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|limit=0</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">}}</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|Taxa with yellow corolla coloration,{{#ask:</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">[[Corolla coloration::yellow]]</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|limit=2</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|format=ul</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">}} </del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|[https://github.com/jocelynpender/fna-query/blob/master/R/demo_queries/morphology/taxa_by_corolla_coloration.R R script]</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">[https://github.com/jocelynpender/fna-query/blob/master/python/demo_queries/morphology/taxa_by_corolla_coloration.py Python script]</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|-</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|Taxa by leaf arrangement</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|[[Property:Leaf arrangement|Leaf arrangement]] (explore [[Special:SearchByProperty/:Leaf arrangement/|available values]])</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|<code><nowiki>[[Leaf arrangement::alternate]]</nowiki></code></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|{{#ask:</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">[[Leaf arrangement::alternate]]</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|searchlabel=Try it!</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|limit=0</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">}}</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|Taxa with alternate leaf arrangement,{{#ask:</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">[[Leaf arrangement::alternate]]</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|limit=2</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|format=ul</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">}} </del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|[https://github.com/jocelynpender/fna-query/blob/master/R/demo_queries/morphology/taxa_by_leaf_arrangement.R R script]</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">[https://github.com/jocelynpender/fna-query/blob/master/python/demo_queries/morphology/taxa_by_leaf_arrangement.py Python script]</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|-</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|Taxa by blade shape</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|[[Property:Blade shape|Blade shape]] (explore [[Special:SearchByProperty/:Blade shape/|available values]])</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|<code><nowiki>[[Blade shape::elliptic]]</nowiki></code></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|{{#ask:</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">[[Blade shape::elliptic]]</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|searchlabel=Try it!</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|limit=0</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">}}</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|Taxa with elliptic blade shape,{{#ask:</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">[[Blade shape::elliptic]]</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|limit=2</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|format=ul</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">}} </del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|[https://github.com/jocelynpender/fna-query/blob/master/R/demo_queries/morphology/taxa_by_blade_shape.R R script]</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">[https://github.com/jocelynpender/fna-query/blob/master/python/demo_queries/morphology/taxa_by_blade_shape.py Python script]</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">|}</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>== Advanced Queries ==</div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Composite Queries ===</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Composite Queries ===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>You can combine any query elements from the above subjects to create a custom search.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>You can combine any query elements from the above subjects to create a custom search.</div></td></tr>
</table>
Admin
http://floranorthamerica.org/w/index.php?title=Sample_Queries&diff=315697&oldid=prev
Admin: 1 revision imported
2020-02-18T19:47:21Z
<p>1 revision imported</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #222; text-align: center;">Revision as of 19:47, 18 February 2020</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>
Admin
http://floranorthamerica.org/w/index.php?title=Sample_Queries&diff=315696&oldid=prev
Admin at 15:52, 13 February 2020
2020-02-13T15:52:07Z
<p></p>
<p><b>New page</b></p><div>These queries illustrate the power of the [https://www.semantic-mediawiki.org/wiki/Help:Semantic_search Semantic MediaWiki query language] ("semantic search") and the Semantic MediaWiki query interfaces to extract data stored by the Flora of North America Semantic MediaWiki.<br />
<br />
[[Special:Ask|Click here to access the '''Semantic search query interface''' directly.]]<br />
<br />
== Queries by Subject ==<br />
=== Taxonomy ===<br />
{| class="wikitable"<br />
!<br />
!Properties Used<br />
!Query Syntax<br />
!Query Interface<br />
!Query Results<br />
!Query the API<br />
|-<br />
|All Taxa in the Online FNA<br />
|[[Property:Taxon rank|Taxon rank]] (see [[Special:SearchByProperty/:Taxon-20rank/ |allowed values]])<br />
|<code><nowiki>[[Taxon rank::+]]</nowiki></code><br />
|{{#ask:<br />
[[Taxon rank::+]]<br />
|searchlabel=Try it!<br />
|limit=0<br />
}}<br />
|<br />
|[https://github.com/jocelynpender/fna-query/blob/master/R/demo_queries/taxonomy/taxon_rank.R R script]<br />
[https://github.com/jocelynpender/fna-query/blob/master/python/demo_queries/taxonomy/taxon_rank.py Python script]<br />
|-<br />
|All Species in the Online FNA<br />
|[[Property:Taxon rank|Taxon rank]] (see [[Special:SearchByProperty/:Taxon-20rank/ |allowed values]])<br />
|<code><nowiki>[[Taxon rank::species]]</nowiki></code><br />
|{{#ask:<br />
[[Taxon rank::+]]<br />
|searchlabel=Try it!<br />
|limit=0<br />
}}<br />
|<br />
|[https://github.com/jocelynpender/fna-query/blob/master/R/demo_queries/taxonomy/taxon_rank_species.R R script]<br />
[https://github.com/jocelynpender/fna-query/blob/master/python/demo_queries/taxonomy/taxon_rank_species.py Python script]<br />
|-<br />
|List of Lower Taxa<br />
|[[Property:Taxon parent|Taxon parent]]<br />
|<code><nowiki>[[Taxon parent::Carex]]</nowiki></code><br />
|{{#ask:<br />
[[Taxon parent::Carex]]<br />
|searchlabel=Try it!<br />
|limit=0<br />
}}<br />
|In the genus ''Carex'',{{#ask:<br />
[[Taxon parent::Carex]]<br />
|limit=2<br />
|format=ul<br />
}}<br />
|[https://github.com/jocelynpender/fna-query/blob/master/R/demo_queries/taxonomy/list_lower_taxa.R R script]<br />
[https://github.com/jocelynpender/fna-query/blob/master/python/demo_queries/taxonomy/list_lower_taxa.py Python script]<br />
|-<br />
|List of Sections<br />
|[[Property:Taxon family|Taxon family]] (see [[Special:SearchByProperty/:Taxon-20family/|allowed values]])<br />
[[Property:Taxon rank|Taxon rank]] (see [[Special:SearchByProperty/:Taxon-20rank/ |allowed values]])<br />
|<code><nowiki>[[Taxon family::Asteraceae]]</nowiki></code><code><nowiki>[[Taxon rank::section]]</nowiki></code><br />
|{{#ask:<br />
[[Taxon family::Asteraceae]]<br />
[[Taxon rank::section]]<br />
|searchlabel=Try it!<br />
|limit=0<br />
}}<br />
|Sections in the family Asteraceae,{{#ask:<br />
[[Taxon family::Asteraceae]]<br />
[[Taxon rank::section]]<br />
|limit=2<br />
|format=ul<br />
}} <br />
|[https://github.com/jocelynpender/fna-query/blob/master/R/demo_queries/taxonomy/list_sections.R R script]<br />
[https://github.com/jocelynpender/fna-query/blob/master/python/demo_queries/taxonomy/list_sections.py Python script]<br />
|}<br />
<br />
=== Distribution ===<br />
{| class="wikitable"<br />
!<br />
!Properties Used<br />
!Query Syntax<br />
!Query Interface<br />
!Query Results<br />
!Query the API<br />
|-<br />
|Taxa occurring in Non-Abbreviated State or Province (i.e., Alaska, Idaho, Iowa, Maine, Nunavut, Ohio, Yukon)<br />
|[[Property:Distribution|Distribution]] (see [[Special:SearchByProperty/:Distribution/|allowed values]] and [[Distribution Abbreviations]])<br />
|<code><nowiki>[[Distribution::Nunavut]]</nowiki></code><br />
|{{#ask:<br />
[[Distribution::Nunavut]]<br />
|searchlabel=Try it!<br />
|limit=0<br />
}}<br />
|Taxa occurring in Nunavut,{{#ask:<br />
[[Distribution::Nunavut]]<br />
|limit=2<br />
|format=ul<br />
}} <br />
|[https://github.com/jocelynpender/fna-query/blob/master/R/demo_queries/distribution/non-abbreviated_state.R R script]<br />
[https://github.com/jocelynpender/fna-query/blob/master/python/demo_queries/distribution/non-abbreviated_state.py Python script]<br />
|-<br />
|Taxa occurring in Abbreviated State or Province<br />
|[[Property:Distribution|Distribution]] (see [[Special:SearchByProperty/:Distribution/|allowed values]] and [[Distribution Abbreviations]])<br />
|<code><nowiki>[[Distribution::Ont.]]</nowiki></code><br />
|{{#ask:<br />
[[Distribution::Ont.]]<br />
|searchlabel=Try it!<br />
|limit=0<br />
}}<br />
|Taxa occurring in Ontario,{{#ask:<br />
[[Distribution::Ont.]]<br />
|limit=2<br />
|format=ul<br />
}} <br />
|[https://github.com/jocelynpender/fna-query/blob/master/R/demo_queries/distribution/abbreviated_state.R R script]<br />
[https://github.com/jocelynpender/fna-query/blob/master/python/demo_queries/distribution/abbreviated_state.py Python script]<br />
|}<br />
<br />
=== Publication Details ===<br />
<br />
{| class="wikitable"<br />
!<br />
!Properties Used<br />
!Query Syntax<br />
!Query Interface<br />
!Query Results<br />
!Query the API<br />
|-<br />
|Taxa by Authority<br />
|[[Property:Authority|Authority]]<br />
|<code><nowiki>[[Authority::Linnaeus]]</nowiki></code><br />
|{{#ask:<br />
[[Authority::Linnaeus]]<br />
|searchlabel=Try it!<br />
|limit=0<br />
}}<br />
|Taxa described by Linnaeus,{{#ask:<br />
[[Authority::Linnaeus]]<br />
|limit=2<br />
|format=ul<br />
}} <br />
|[https://github.com/jocelynpender/fna-query/blob/master/R/demo_queries/publication_details/taxa_by_authority.R R script]<br />
[https://github.com/jocelynpender/fna-query/blob/master/python/demo_queries/publication_details/taxa_by_authority.py Python script]<br />
|-<br />
|Taxa by Publication Title<br />
|[[Property:Publication title|Publication title]]<br />
|<code><nowiki>[[Publication title::Proc. Amer. Acad. Arts]]</nowiki></code><br />
|{{#ask:<br />
[[Publication title::Proc. Amer. Acad. Arts]]<br />
|searchlabel=Try it!<br />
|limit=0<br />
}}<br />
|<br />
|[https://github.com/jocelynpender/fna-query/blob/master/R/demo_queries/publication_details/taxa_by_publication_title.R R script]<br />
[https://github.com/jocelynpender/fna-query/blob/master/python/demo_queries/publication_details/taxa_by_publication_title.py Python script]<br />
|-<br />
|Taxa by Publication Year<br />
|[[Property:Publication year|Publication year]]<br />
|<code><nowiki>[[Publication year::1990]]</nowiki></code><br />
|{{#ask:<br />
[[Publication year::1990]]<br />
|searchlabel=Try it!<br />
|limit=0<br />
}}<br />
|<br />
|[https://github.com/jocelynpender/fna-query/blob/master/R/demo_queries/publication_details/taxa_by_publication_year.R R script]<br />
[https://github.com/jocelynpender/fna-query/blob/master/python/demo_queries/publication_details/taxa_by_publication_year.py Python script]<br />
|}<br />
You can use [https://www.semantic-mediawiki.org/wiki/Help:Search_operators comparators] with the [[Property:Publication year|Publication year property]]. For example,<br />
{| class="wikitable"<br />
|-<br />
|Taxa by Publication Year with Comparator<br />
|[[Property:Publication year|Publication year]]<br />
|<code><nowiki>[[Publication year::>>1990]]</nowiki></code><br />
|{{#ask:<br />
[[Publication year::>>1990]]<br />
|searchlabel=Try it!<br />
|limit=0<br />
}}<br />
|Taxa published after 1990,{{#ask:<br />
[[Publication year::>>1990]]<br />
|limit=2<br />
|format=ul<br />
}} <br />
|<br />
|[https://github.com/jocelynpender/fna-query/blob/master/R/demo_queries/publication_details/taxa_by_publication_year_comparator.R R script]<br />
[https://github.com/jocelynpender/fna-query/blob/master/python/demo_queries/publication_details/taxa_by_publication_year_comparator.py Python script]<br />
|}<br />
<br />
=== Special Status ===<br />
Due to limitations in data capture, special status data are only available in V3, V6, V9, V12, V17, V28.<br />
<br />
{| class="wikitable"<br />
!<br />
!Properties Used<br />
!Query Syntax<br />
!Query Interface<br />
!Query Results<br />
!Query the API<br />
|-<br />
|Taxa by Special Status<br />
|[[Property:Special status|Special status]] (see [[Special:SearchByProperty/:Special status/|allowed values]])<br />
|<code><nowiki>[[Special status::Introduced]]</nowiki></code><br />
|{{#ask:<br />
[[Special status::Introduced]]<br />
|searchlabel=Try it!<br />
|limit=0<br />
}}<br />
|Introduced species,{{#ask:<br />
[[Volume::Volume 17]]<br />
|limit=2<br />
|format=ul<br />
}} <br />
|[https://github.com/jocelynpender/fna-query/blob/master/R/demo_queries/special_status/taxa_by_special_status.R R script]<br />
[https://github.com/jocelynpender/fna-query/blob/master/python/demo_queries/special_status/taxa_by_special_status.py Python script]<br />
|}<br />
<br />
=== Illustrations ===<br />
{| class="wikitable"<br />
!<br />
!Properties Used<br />
!Query Syntax<br />
!Query Interface<br />
!Query Results<br />
!Query the API<br />
|-<br />
|All Illustrated Taxa in the Online FNA<br />
|[[Property:Illustrator|Illustrator]] (see [[Special:SearchByProperty/:Illustrator/|allowed values]])<br />
[[Property:Illustration|Illustration]]<br />
|<code><nowiki>[[Illustrator::+]][[Illustration::Present]]</nowiki></code><br />
|{{#ask:<br />
[[Illustrator::+]]<br />
[[Illustration::Present]]<br />
|searchlabel=Try it!<br />
|limit=0<br />
}}<br />
|<br />
|[https://github.com/jocelynpender/fna-query/blob/master/R/demo_queries/illustrations/all_illustrated_taxa.R R script]<br />
[https://github.com/jocelynpender/fna-query/blob/master/python/demo_queries/illustrations/all_illustrated_taxa.py Python script]<br />
|-<br />
|List of Illustrations by Person<br />
|[[Property:Illustrator|Illustrator]] (see [[Special:SearchByProperty/:Illustrator/|allowed values]])<br />
[[Property:Illustrator|Illustration]]<br />
|<code><nowiki>[[Illustrator::Annaliese Miller]][[Illustration::Present]]</nowiki></code><br />
|{{#ask:<br />
[[Illustrator::Annaliese Miller]]<br />
[[Illustration::Present]]<br />
|searchlabel=Try it!<br />
|limit=0<br />
}}<br />
|Illustrations by Annaliese Miller,{{#ask:<br />
[[Illustrator::Annaliese Miller]]<br />
[[Illustration::Present]]<br />
|limit=2<br />
|format=ul<br />
}} <br />
|[https://github.com/jocelynpender/fna-query/blob/master/R/demo_queries/illustrations/illustrations_by_person.R R script]<br />
[https://github.com/jocelynpender/fna-query/blob/master/python/demo_queries/illustrations/illustrations_by_person.py Python script]<br />
|}<br />
=== Volumes ===<br />
<br />
{| class="wikitable"<br />
!<br />
!Properties Used<br />
!Query Syntax<br />
!Query Interface<br />
!Query Results<br />
!Query the API<br />
|-<br />
|Treatments By Volume<br />
|[[Property:Volume|Volume]] (see [[Special:SearchByProperty/:Volume/|allowed values]])<br />
|<code><nowiki>[[Volume::Volume 17]]</nowiki></code><br />
|{{#ask:<br />
[[Volume::Volume 17]]<br />
|searchlabel=Try it!<br />
|limit=0<br />
}}<br />
|Treatments published in volume 17,{{#ask:<br />
[[Volume::Volume 17]]<br />
|limit=2<br />
|format=ul<br />
}} <br />
|[https://github.com/jocelynpender/fna-query/blob/master/R/demo_queries/volumes/treatments_by_volume.R R script]<br />
[https://github.com/jocelynpender/fna-query/blob/master/python/demo_queries/volumes/treatments_by_volume.py Python script]<br />
|}<br />
<br />
=== Contributors ===<br />
{| class="wikitable"<br />
!<br />
!Properties Used<br />
!Query Syntax<br />
!Query Interface<br />
!Query Results<br />
!Query the API<br />
|-<br />
|Treatments by Author<br />
|[[Property:Author|Author]]<br />
|<code><nowiki>[[Author::Bruce A. Ford]]</nowiki></code><br />
|{{#ask:<br />
[[Author::Bruce A. Ford]]<br />
|searchlabel=Try it!<br />
|limit=0<br />
}}<br />
|Treatments authored by Bruce A. Ford,{{#ask:<br />
[[Author::Bruce A. Ford]]<br />
|limit=2<br />
|format=ul<br />
}} <br />
|[https://github.com/jocelynpender/fna-query/blob/master/R/demo_queries/contributors/treatments_by_author.R R script]<br />
[https://github.com/jocelynpender/fna-query/blob/master/python/demo_queries/contributors/treatments_by_author.py Python script]<br />
|}<br />
<br />
=== Morphology ===<br />
A property browser is in development to facilitate the exploration of the morphological properties. Here are a few sample queries to illustrate the power of parsed morphological data derived from FNA treatments.<br />
<br />
{| class="wikitable"<br />
!<br />
!Properties Used<br />
!Query Syntax<br />
!Query Interface<br />
!Query Results<br />
!Query the API<br />
|-<br />
|Taxa by corolla coloration<br />
|[[Property:Corolla coloration|Corolla coloration]] (explore [[Special:SearchByProperty/:Corolla coloration/|available values]])<br />
|<code><nowiki>[[Corolla coloration::yellow]]</nowiki></code><br />
|{{#ask:<br />
[[Corolla coloration::yellow]]<br />
|searchlabel=Try it!<br />
|limit=0<br />
}}<br />
|Taxa with yellow corolla coloration,{{#ask:<br />
[[Corolla coloration::yellow]]<br />
|limit=2<br />
|format=ul<br />
}} <br />
|[https://github.com/jocelynpender/fna-query/blob/master/R/demo_queries/morphology/taxa_by_corolla_coloration.R R script]<br />
[https://github.com/jocelynpender/fna-query/blob/master/python/demo_queries/morphology/taxa_by_corolla_coloration.py Python script]<br />
|-<br />
|Taxa by leaf arrangement<br />
|[[Property:Leaf arrangement|Leaf arrangement]] (explore [[Special:SearchByProperty/:Leaf arrangement/|available values]])<br />
|<code><nowiki>[[Leaf arrangement::alternate]]</nowiki></code><br />
|{{#ask:<br />
[[Leaf arrangement::alternate]]<br />
|searchlabel=Try it!<br />
|limit=0<br />
}}<br />
|Taxa with alternate leaf arrangement,{{#ask:<br />
[[Leaf arrangement::alternate]]<br />
|limit=2<br />
|format=ul<br />
}} <br />
|[https://github.com/jocelynpender/fna-query/blob/master/R/demo_queries/morphology/taxa_by_leaf_arrangement.R R script]<br />
[https://github.com/jocelynpender/fna-query/blob/master/python/demo_queries/morphology/taxa_by_leaf_arrangement.py Python script]<br />
|-<br />
|Taxa by blade shape<br />
|[[Property:Blade shape|Blade shape]] (explore [[Special:SearchByProperty/:Blade shape/|available values]])<br />
|<code><nowiki>[[Blade shape::elliptic]]</nowiki></code><br />
|{{#ask:<br />
[[Blade shape::elliptic]]<br />
|searchlabel=Try it!<br />
|limit=0<br />
}}<br />
|Taxa with elliptic blade shape,{{#ask:<br />
[[Blade shape::elliptic]]<br />
|limit=2<br />
|format=ul<br />
}} <br />
|[https://github.com/jocelynpender/fna-query/blob/master/R/demo_queries/morphology/taxa_by_blade_shape.R R script]<br />
[https://github.com/jocelynpender/fna-query/blob/master/python/demo_queries/morphology/taxa_by_blade_shape.py Python script]<br />
|}<br />
<br />
== Advanced Queries ==<br />
<br />
=== Composite Queries ===<br />
You can combine any query elements from the above subjects to create a custom search.<br />
<br />
For example,<br />
<br />
{|<br />
|Taxa with authority Linnaeus that occur in Nunavut<br />
|<code><nowiki>[[Authority::Linnaeus]][[Distribution::Nunavut]]</nowiki></code><br />
|-<br />
|Introduced species published in volume 3 <br />
|<code><nowiki>[[Special status::Introduced]][[Volume::Volume 3]]</nowiki></code><br />
|-<br />
|Taxa published before 1754 in the family Cyperaceae<br />
|<code><nowiki>[[Publication year::<<1754]]</nowiki><nowiki>[[Taxon family::Cyperaceae]]</nowiki></code><br />
|}<br />
<br />
=== Comparators ===<br />
You can use [https://www.semantic-mediawiki.org/wiki/Help:Search_operators comparators] with the [[Property:Publication year|Publication year property]]. (e.g., '''<code>></code>''', '''<code><</code>''', '''<code>≥</code>''').<br />
<br />
=== Return More Information ===<br />
You can return as many additional properties as you wish:<br />
{| class="wikitable"<br />
![[Special:Ask|Query interface]]<br />
![https://github.com/jocelynpender/fna-query Query the API]<br />
|-<br />
|Add property names to the '''Additional data to display box'''<br />
| <nowiki>Add property names using the '''|?''' syntax:<br />
<code><nowiki>[[Authority::Linnaeus]]</nowiki><nowiki>[[Distribution::Nunavut]]</nowiki> |Add properties using '''<nowiki>the |? syntax:</nowiki>'''<br />
<code><nowiki>[[Authority::Linnaeus]]</nowiki><nowiki>[[Distribution::Nunavut]]</nowiki>|?Taxon family|?Taxon rank|?Author</code><br />
|}<br />
<br />
== Write Your Own Queries ==<br />
[[Special:Ask|Click here to access the '''Semantic search query interface''' directly.]]<br />
<br />
Note that:<br />
* The '''limit''' on the number of results returned '''can be changed'''<br />
* You can only export '''what is displayed on the page''' (JSON, CSV, RSS, RDF)<br />
** Page through the results to download each batch<br />
<br />
=== Why use the API convenience scripts? ===<br />
# For big queries, it may be cumbersome to download each batch of 500 results separately and then merge the results.<br />
# If you are performing your analyses in R or Python, you may wish to embed the data extraction here, so that it can be easily re-run.<br />
<br />
Access the convenience scripts here: https://github.com/jocelynpender/fna-query<br />
<br />
== Query Resources ==<br />
<br />
=== Semantic MediaWiki Query Syntax ===<br />
<br />
https://www.semantic-mediawiki.org/wiki/Help:Semantic_search<br />
<br />
https://www.semantic-mediawiki.org/wiki/Help:Search_operators<br />
<br />
=== Merging Multiple CSV Files ===<br />
[https://github.com/jocelynpender/fna-query/blob/master/merge.R R script for merging multiple CSV files].<br />
<br />
=== Working with APIs ===<br />
<br />
==== Convenience scripts ====<br />
https://github.com/jocelynpender/fna-query<br />
<br />
==== Python ====<br />
https://mwclient.readthedocs.io/en/latest/index.html<br />
<br />
==== R ====<br />
https://cran.r-project.org/web/packages/WikipediR/WikipediR.pdf</div>
Admin