Created
December 19, 2016 11:31
-
-
Save zdne/153219f50d36b0ae67a2047ccaf22a10 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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