Skip to content

Commit 0dee277

Browse files
committed
Updaote README
1 parent 7047db8 commit 0dee277

File tree

11 files changed

+704
-672
lines changed

11 files changed

+704
-672
lines changed

README.md

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,60 @@ For integration with Sparnatural, there is a [dedicated documentation page](http
99

1010
This is an adaptation of the original YaSR Table plugin. Its main enhancement is that it can hide URI columns "behind" a correspondig label column, thus hiding technical URIs for end-users. The link URLs can also be customzed to navigate to another URL than the original URI.
1111

12-
For ever column `?xxx_label`, the plugin will look for a column `?xxx` having a literal property (for example `?Person_1` and `?Person_1_label`), and merge these columns. The merge is done on the SPARQL result set itself, by creating a new kind of result `x-labelled-uri` containing both the URI and its label.
12+
For every column `?xxx_label`, the plugin will look for a column `?xxx` having a literal property (for example `?Person_1` and `?Person_1_label`), and merge these columns. The merge is done on the SPARQL result set itself, by creating a new kind of result `x-labelled-uri` containing both the URI and its label. Only the `?xxx` column will be shown.
1313

1414
Instead of this:
1515

16+
![](docs/images/tablex-without-plugin.png)
1617

1718
You would get this:
1819

20+
21+
![](docs/images/tablex-with-plugin.png)
22+
23+
1924
### Grid plugin
2025

2126
The Grid plugin works only in conjunction with Sparnatural, not for any SPARQL query. It needs to be notified of the Sparnatural original query, and the Sparnatural original configuration.
27+
2228
The Grid plugin:
23-
- look for a main title column for each entity
29+
- looks for a main title column for each entity
2430
- merges the lines in the result set with the same title
2531
- displays the other columns in each card by replicating the original query structure from Sparnatural
2632
- can look for an image column (containing URIs ending in `.png` or `.jpg`)
2733

34+
Here is how it looks like with an image column selected:
35+
36+
![](docs/images/grid-1.png)
37+
38+
The original result set was the following:
39+
40+
![](docs/images/grid-4.png)
41+
42+
And the original query was the following: (_All chairmans of EU political groups, with dates of chair and image_, based on the [European Parliament Open Data Portal](https://data.europarl.europa.eu/) datasets)
43+
44+
![](docs/images/grid-3.png)
45+
46+
Here is a focus on one card, note how the lines corresponding to the same entity have been merged, and how the original query structure is replicated inside the card:
47+
48+
![](docs/images/grid-2.png)
49+
50+
2851
### Stats plugin
2952

3053
The Stats plugin can:
31-
- display a simple COUNT query, with only an integer result
54+
- display a simple COUNT query, with only an integer result :
55+
56+
![](docs/images/stats-1.png)
57+
3258
- generate simple pie or bar charts from a `COUNT` + `GROUP BY` query
3359

60+
![](docs/images/stats-2.png)
61+
62+
63+
![](docs/images/stats-3.png)
64+
65+
3466
### Timeline plugin
3567

3668
TODO

dev-page/sparnatural.css

Lines changed: 668 additions & 668 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev-page/sparnatural.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/images/grid-1.png

272 KB
Loading

docs/images/grid-2.png

113 KB
Loading

docs/images/grid-3.png

89.7 KB
Loading

docs/images/stats-1.png

12.8 KB
Loading

docs/images/stats-2.png

129 KB
Loading

docs/images/stats-3.png

44.7 KB
Loading

docs/images/tablex-with-plugin.png

11.3 KB
Loading

0 commit comments

Comments
 (0)