@@ -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
218229The set of sources over which a query will be executed is derived from two * optional* inputs in a query entry:
0 commit comments