Deprecated: Use of wfGetDB was deprecated in MediaWiki 1.39. [Called from EDConnectorHttp::setupCache in /home/colorado/www/www/extensions/ExternalData/includes/connectors/traits/EDConnectorCached.php at line 50] in /home/colorado/www/www/includes/debug/MWDebug.php on line 385
External: Difference between revisions - coloradoriverscience.org Jump to content

External: Difference between revisions

From coloradoriverscience.org
No edit summary
No edit summary
Line 15: Line 15:
-->
-->


{{#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 )
{{#get_web_data:url=https://imdb-api.com/en/API/Title/IMDB_KEY/tt0055630
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
|format=json
|use jsonpath
|data=title=title,year=year,directors=directors,stars=stars}}
|data=paintingURL=$.results.bindings[*].painting.value,
Info for ID '''tt0055630''':
paintingLabel=$.results.bindings[*].paintingLabel.value,
* Name: {{#external_value:title}}
creatorURL=$.results.bindings[*].creator.value,
* Year: {{#external_value:year}}
creatorLabel=$.results.bindings[*].creatorLabel.value,
* Director(s): {{#external_value:directors}}
year=$.results.bindings[*].year.value,
* Actors: {{#external_value:stars}}
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 20:23, 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


Error while fetching data from URL https://imdb-api.com/en/API/Title/IMDB_KEY/tt0055630: $2.
Error fetching URL: Could not resolve host: imdb-api.com
There was a problem during the HTTP request: 0 Error
Info for ID tt0055630:

  • Name: Error: no local variable "title" has been set.
  • Year: Error: no local variable "year" has been set.
  • Director(s): Error: no local variable "directors" has been set.
  • Actors: Error: no local variable "stars" has been set.