External: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 10: | Line 10: | ||
<!-- This is a comment | <!-- This is a comment | ||
// {{get_web_data:url=https://api.zotero.org/users/475425/collections/9KH9TNSJ/items/top?v=3}} | |||
// {{#get_web_data:url=https://api.zotero.org/users/475425/collections/9KH9TNSJ/items/top?v=3}} | |||
--> | --> | ||
{{#get_web_data:url=https://query.wikidata.org/sparql?query={{urlencode: SELECT DISTINCT ?painting ?paintingLabel ?creator ?creatorLabel ( YEAR( ?inception ) as ?year ) ?genre ?genreLabel ( SUBSTR( ?str_image, 52 ) AS ?fileName ) | |||
WHERE | |||
{ | |||
?painting wdt:P180 wd:Q9482 . | |||
?painting wdt:P170 ?creator . | |||
?painting wdt:P571 ?inception . | |||
?painting wdt:P136 ?genre . | |||
?painting wdt:P18 ?image . | |||
BIND (STR(?image) AS ?str_image) | |||
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } | |||
} | |||
ORDER BY ?paintingLabel | |||
}}&format=json | |||
|format=json | |||
|use jsonpath | |||
|data=paintingURL=$.results.bindings[*].painting.value, | |||
paintingLabel=$.results.bindings[*].paintingLabel.value, | |||
creatorURL=$.results.bindings[*].creator.value, | |||
creatorLabel=$.results.bindings[*].creatorLabel.value, | |||
year=$.results.bindings[*].year.value, | |||
genre=$.results.bindings[*].genreLabel.value, | |||
fileName=$.results.bindings[*].fileName.value | |||
}} | |||
{| class="wikitable" | |||
! Name | |||
! Artist | |||
! Year | |||
! Genre | |||
! Image {{#for_external_table:<nowiki/> | |||
{{!}}- | |||
{{!}} [{{{paintingURL}}} {{{paintingLabel}}}] | |||
{{!}} [{{{creatorURL}}} {{{creatorLabel}}}] | |||
{{!}} {{{year}}} | |||
{{!}} {{{genre}}} | |||
{{!}} [[File:{{{fileName}}}|80px]] | |||
}} | |||
|} | |||
Revision as of 19:11, 29 November 2022
Information for PMID 19782018:
- Title: How to choose a good scientific problem.
- Name: Alon, Uri
- Journal: Molecular cell
- Year: 2009
- Volume: 35