Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix new README links. #240

Merged
merged 1 commit into from
Apr 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions trustfall/examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ Each project comes with example queries in an `example_queries` directory.

## Querying CSV files: aviation weather reports (METAR)

The [weather](trustfall/examples/weather) demo project queries meteorogical data from the US Aviation Weather Center ([https://www.aviationweather.gov/metar](https://www.aviationweather.gov/metar))
The [weather](weather/) demo project queries meteorogical data from the US Aviation Weather Center: [https://www.aviationweather.gov/metar](https://www.aviationweather.gov/metar)

This data is available as a CSV file. The demo project downloads and parses this file, then runs Trustfall queries on it.

## Querying APIs: HackerNews

The [hackernews](trustfall/examples/hackernews) demo project queries the HackerNews REST API endpoints.
The [hackernews](hackernews/) demo project queries the HackerNews REST API endpoints.

Each Trustfall query is turned into a sequence of API calls that execute against the live HackerNews API endpoints.

There is no local data ingestion step in this demo — we don't ETL the data into a local database or save it as local files. That functionality *could* be added as an optimization, but is not *required* to use Trustfall on an API.

## Querying RSS and Atom feeds

The [feeds](trustfall/examples/feeds/) demo project runs Trustfall queries over the feeds of PCGamer and Wired magazines.
The [feeds](feeds/) demo project runs Trustfall queries over the feeds of PCGamer and Wired magazines.

It downloads the feed contents (as XML data files), then parses those files and runs Trustfall queries on them.
6 changes: 3 additions & 3 deletions trustfall/examples/weather/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Querying CSV files: aviation weather reports (METAR)

This demo project queries meteorogical data from the US Aviation Weather Center ([https://www.aviationweather.gov/metar](https://www.aviationweather.gov/metar)).
This demo project queries meteorogical data from the US Aviation Weather Center: [https://www.aviationweather.gov/metar](https://www.aviationweather.gov/metar))

The data is delivered as a CSV file from the following link: [https://aviationweather.gov/adds/dataserver_current/current/metars.cache.csv](https://aviationweather.gov/adds/dataserver_current/current/metars.cache.csv)

## Example: Find the temperature, dewpoint, wind, and clouds in Boston

Query: ([link](trustfall/examples/weather/example_queries/boston_weather.ron))
Query: ([link](example_queries/boston_weather.ron))
```graphql
{
LatestMetarReportForAirport(airport_code: "KBOS") {
Expand Down Expand Up @@ -46,7 +46,7 @@ $ cargo run --example weather query ./examples/weather/example_queries/boston_we

## Example: Which weather stations are reporting 25+ knot winds and gusty conditions?

Query: ([link](trustfall/examples/weather/example_queries/high_winds.ron))
Query: ([link](example_queries/high_winds.ron))
```graphql
{
MetarReport {
Expand Down