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

Update 05-intro_to_querying.md #53

Merged
merged 1 commit into from
Feb 19, 2024
Merged
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
15 changes: 5 additions & 10 deletions episodes/05-intro_to_querying.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,13 @@ Namespaces in Wikidata are:

Start by opening the results window. In the results pane, click the "Table" button and choose the type of visualization you want. This way, you can try different ways of visualizing your data without having to change the query code.

![](fig/episode_5_table.jpg)
{alt='Wikidata Query Service results window'}
![](fig/episode_5_table.jpg){alt='Wikidata Query Service results window'}


#### Automated visualization with #defaultView:
For an easy start, add the #defaultView: snippet at the beginning of your query. This method ensures that your results will be automatically visualized in a predefined style. This will save you time without having to manually adjust the result window after each query. This method is useful for queries where you already know which visualization types you want to use.

![](fig/episode_5_defaultview.png)
{alt='Extract from the SPARQL editor'}
![](fig/episode_5_defaultview.png){alt='Extract from the SPARQL editor'}
### Exercises

## 5\.3 Try examples
Expand Down Expand Up @@ -226,8 +224,7 @@ WHERE {

}
```
![](fig/episode_5_Map_WorldWide.png)
{alt='Extract from the SPARQL editor'}
![](fig/episode_5_Map_WorldWide.png){alt='Extract from the SPARQL editor'}

**Map of libraries in the USA**

Expand All @@ -252,8 +249,7 @@ WHERE {
#Helps to get the label in English. If not, yours will be selected automatically
}
```
![](fig/episode_5_Map_USA.png)
{alt='Extract from the SPARQL editor'}
![](fig/episode_5_Map_USA.png){alt='Extract from the SPARQL editor'}

**Count of libraries per Country**

Expand Down Expand Up @@ -284,8 +280,7 @@ LIMIT 10

```

![](fig/episode_5_Bar_Countries.png)
{alt='Extract from the SPARQL editor'}
![](fig/episode_5_Bar_Countries.png){alt='Extract from the SPARQL editor'}

**Books weight by genre**
Number of available books weighted by genre.
Expand Down
Loading