Skip to content

Instantly share code, notes, and snippets.

@zdne
Created December 19, 2016 11:31
Show Gist options
  • Save zdne/153219f50d36b0ae67a2047ccaf22a10 to your computer and use it in GitHub Desktop.
Save zdne/153219f50d36b0ae67a2047ccaf22a10 to your computer and use it in GitHub Desktop.
# Using a terms from schema.org dictionary,
# find services that offers WeatherForecast.
services = apiRegistry.find(WeatherForecast, { vocabulary: "http://schema.org"})
# Query a service for WeatherForecast at GeoCoordinates.
forecast = service.retrieve(WeatherForecast, { GeoCoordinates: … })
# Display Temperature
print forecast(Temperature)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment