Skip to content

Commit 258ead6

Browse files
authored
Merge pull request #245 from SolidLabResearch/development
Merge for v2.2.0
2 parents b17fbc5 + 566a170 commit 258ead6

File tree

14 files changed

+238
-52
lines changed

14 files changed

+238
-52
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [2.2.0] - 2025-10-30
11+
12+
### Changed
13+
14+
- Export cleaned so that it doesn't contain irrelevant columns (#242).
15+
- Documented and tested SPARQL query restrictions (#243).
16+
1017
## [2.1.1] - 2025-10-14
1118

1219
### Changed
@@ -291,4 +298,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
291298
[2.0.0]: https://github.com/SolidLabResearch/miravi-a-linked-data-viewer/releases/tag/v2.0.0
292299
[2.1.0]: https://github.com/SolidLabResearch/miravi-a-linked-data-viewer/releases/tag/v2.1.0
293300
[2.1.1]: https://github.com/SolidLabResearch/miravi-a-linked-data-viewer/releases/tag/v2.1.1
294-
[Unreleased]: https://github.com/SolidLabResearch/miravi-a-linked-data-viewer/compare/v2.1.1...HEAD
301+
[2.2.0]: https://github.com/SolidLabResearch/miravi-a-linked-data-viewer/releases/tag/v2.2.0
302+
[Unreleased]: https://github.com/SolidLabResearch/miravi-a-linked-data-viewer/compare/v2.2.0...HEAD

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Table of contents:
2424
* [Static, production build](#static-production-build)
2525
* [Logging in](#logging-in)
2626
* [Configuration file](#configuration-file)
27+
* [Writing SPARQL queries](#writing-sparql-queries)
2728
* [Specifying sources](#specifying-sources)
2829
* [About httpProxies](#about-httpproxies)
2930
* [Adding variable type](#adding-variable-type)
@@ -154,7 +155,7 @@ The configuration file must follow the structure shown below.
154155
"logoLocation": "Image location of the logo shown at the top of the app (relative to public folder.).",
155156
"logoRedirectURL": "The URL the Web application redirects to when a user clicks on the logo.",
156157
"defaultIDP": "The default value used for IDP when logging in, this IDP can be manually changed in the Web app as well. ",
157-
"queryFolder": "The base location of the queries, all query locations will start from this folder (relative to public folder).",
158+
"queryFolder": "The base location of the SPARQL queries, all query locations will start from this folder (relative to public folder).",
158159
"introductionText": "The text that the app shows on the dashboard, which the app also shows when you first open it.",
159160
"queryGroups" : [
160161
{
@@ -167,7 +168,7 @@ The configuration file must follow the structure shown below.
167168
{
168169
"id": "A unique ID for the query. This ID appears in the URL of the displayed result. Queries are ordered in the menu according to ascending ID.",
169170
"queryGroupId": "ID of the query group too which this query belongs. If not given, the query is displayed outside existing groups.",
170-
"queryLocation": "Path to the query location, relative to 'queryFolder'",
171+
"queryLocation": "Path to the SPARQL query location, relative to 'queryFolder'",
171172
"name": "A name for the query",
172173
"description": "Description of the query",
173174
"icon": "The key to the icon for the query. This is optional and a default menu icon will be used when left empty.",
@@ -213,6 +214,16 @@ The configuration file must follow the structure shown below.
213214
}
214215
```
215216

217+
### Writing SPARQL queries
218+
219+
Write each [SPARQL query](https://www.w3.org/TR/sparql11-query/) in a separate file (see `queryLocation` in the configuration file).
220+
221+
The following restrictions apply to SPARQL queries in Miravi:
222+
223+
* Mark your query variables with `?`, not with `$`. The `$` sign is reserved for use in [templated queries](#templated-queries).
224+
* Do not use `_` in variable names, unless for [adding variable type](#adding-variable-type).
225+
* Do not use `id` as a variable name. It is reserved for internal use.
226+
216227
### Specifying sources
217228

218229
The set of sources over which a query will be executed is derived from two *optional* inputs in a query entry:

main/configs/test/config.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,18 @@
607607
],
608608
"lenient": true
609609
}
610+
},
611+
{
612+
"id": "9300",
613+
"queryGroupId": "gr-test",
614+
"queryLocation": "idols_id.rq",
615+
"name": "Reserved variable name test",
616+
"description": "Tests a query with a reserved variable name.",
617+
"comunicaContext": {
618+
"sources": [
619+
"http://localhost:8000/example/idols"
620+
]
621+
}
610622
}
611623
]
612624
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
PREFIX schema: <http://schema.org/>
2+
3+
SELECT ?id ?birthDate_int WHERE {
4+
?list schema:name ?listTitle;
5+
schema:itemListElement [
6+
schema:name ?id;
7+
schema:birthDate ?birthDate_int;
8+
].
9+
}

0 commit comments

Comments
 (0)