TestTemp: Difference between revisions

From WineWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(47 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#get_web_data:url=https://query.wikidata.org/sparql?query={{urlencode: SELECT ?item ?itemLabel ?symbol ?atomicNumber ( YEAR( ?discoveryDate ) AS ?discoveryYear ) ?discoverer ?discovererLabel
{| class="wikitable"
WHERE {
! SV Name
  VALUES ?item { wd:Q654 } .
! Brand Name
  ?item wdt:P246 ?symbol .
! Item
  ?item wdt:P1086 ?atomicNumber .
! WeSellFor
   ?item wdt:P575 ?discoveryDate .
! Comparable Wine Name
  ?item wdt:P61 ?discoverer
! Comparable Wine Price
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
! Comparable Wine Store
} }}&format=json
! Comparable Wine URL
|format=json
! Comparable Wine Reason
|use jsonpath
{{#display_external_table:
|data=itemLabel=$.results.bindings[0].itemLabel.value,
  source=http://winewiki.mywinesense.com/winelist.txt
symbol=$.results.bindings[0].symbol.value,
   |format=CSV with header
atomicNumber=$.results.bindings[0].atomicNumber.value,
  |data=Description=Description,Brand=BRAND,WeSellFor=Selling Price,Item=ITEM,Name=Comparable Wine Name,Price=Comparable Wine Price,Store=Comparable Wine Store,URL=Comparable Wine URL,Reason=Comparable Wine Reason
discoveryYear=$.results.bindings[0].discoveryYear.value,
  |template=ComparableWine}}
discovererURL=$.results.bindings[*].discoverer.value,
|}
discovererLabel=$.results.bindings[*].discovererLabel.value,
}}
Info for '''Q654''':
* Name: {{#external_value:itemLabel}}
* Symbol: {{#external_value:symbol}}
* Atomic number: {{#external_value:atomicNumber}}
* Year discovered: {{#external_value:discoveryYear}}
* Discoverers: {{#for_external_table:[{{{discovererURL}}} {{{discovererLabel}}}], <nowiki />}}

Latest revision as of 22:18, 1 March 2025

SV Name Brand Name Item WeSellFor Comparable Wine Name Comparable Wine Price Comparable Wine Store Comparable Wine URL Comparable Wine Reason