@igea/oac_backend 1.0.112 → 1.0.113

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igea/oac_backend",
3
- "version": "1.0.112",
3
+ "version": "1.0.113",
4
4
  "description": "Backend service for the OAC project",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -191,6 +191,16 @@ this:E55TypeCampione # TIPO CAMPIONE
191
191
  datasources:treeChildrenDatasource this:tree_children_broader_term ;
192
192
  ] .
193
193
 
194
+ # DATASOURCE DEI TERMINI DI VOCABOLARIO "TIPO CAMPIONE" (21)
195
+ #this:tree_root_tipo_campione a datasources:SparqlTreeRootDatasource;
196
+ # datasources:queryString """
197
+ #PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
198
+ #PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
199
+ #SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
200
+ #WHERE {
201
+ # BIND(<http://diagnostica/vocabularies/tipo-campione> AS ?concept)
202
+ # OPTIONAL { ?concept rdfs:label ?label . }
203
+ #}""" .
194
204
 
195
205
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "TIPO CAMPIONE" (21)
196
206
  this:tree_root_tipo_campione a datasources:SparqlTreeRootDatasource;
@@ -199,9 +209,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
199
209
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
200
210
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
201
211
  WHERE {
202
- BIND(<http://diagnostica/vocabularies/tipo-campione> AS ?concept)
212
+ BIND(<http://diagnostica/vocabularies/tipo-campione> AS ?root)
213
+ ?concept crm:P127_has_broader_term ?root .
203
214
  OPTIONAL { ?concept rdfs:label ?label . }
204
- }""" .
215
+ }
216
+ ORDER BY ?id""" .
205
217
 
206
218
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "TIPO QUESITO DIAGNOSTICO" (8)
207
219
  this:tree_root_tipo_quesito_diagnostico a datasources:SparqlTreeRootDatasource;
@@ -210,9 +222,12 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
210
222
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
211
223
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
212
224
  WHERE {
213
- BIND(<http://diagnostica/vocabularies/quesito-diagnostico> AS ?concept)
225
+ BIND(<http://diagnostica/vocabularies/quesito-diagnostico> AS ?root)
226
+ ?concept crm:P127_has_broader_term ?root .
214
227
  OPTIONAL { ?concept rdfs:label ?label . }
215
- }""" .
228
+ }
229
+ ORDER BY ?id""" .
230
+
216
231
 
217
232
  # DATASOURCE DEI TERMINI DI VOCABOLARIO SUCCESSIVI 1° LIVELLO (vale per tutti i vocabolari)
218
233
  this:tree_children_broader_term a datasources:SparqlTreeChildrenDatasource;
@@ -224,5 +239,4 @@ WHERE {
224
239
  ?uri crm:P127_has_broader_term $node .
225
240
  OPTIONAL { ?uri rdfs:label ?label . }
226
241
  }
227
- ORDER BY ?label
228
- """ .
242
+ ORDER BY ?id""" .
@@ -142,9 +142,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
142
142
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
143
143
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
144
144
  WHERE {
145
- BIND(<http://diagnostica/vocabularies/tipo-campione> AS ?concept)
145
+ BIND(<http://diagnostica/vocabularies/tipo-campione> AS ?root)
146
+ ?concept crm:P127_has_broader_term ?root .
146
147
  OPTIONAL { ?concept rdfs:label ?label . }
147
- }""" .
148
+ }
149
+ ORDER BY ?id""" .
148
150
 
149
151
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "TIPO MATERIALE" (11)
150
152
  this:tree_root_tipo_materiale a datasources:SparqlTreeRootDatasource;
@@ -153,9 +155,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
153
155
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
154
156
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
155
157
  WHERE {
156
- BIND(<http://diagnostica/vocabularies/materiale> AS ?concept)
158
+ BIND(<http://diagnostica/vocabularies/materiale> AS ?root)
159
+ ?concept crm:P127_has_broader_term ?root .
157
160
  OPTIONAL { ?concept rdfs:label ?label . }
158
- }""" .
161
+ }
162
+ ORDER BY ?id""" .
159
163
 
160
164
  # DATASOURCE DEI TERMINI DI VOCABOLARIO SUCCESSIVI 1° LIVELLO (vale per tutti i vocabolari)
161
165
  this:tree_children_broader_term a datasources:SparqlTreeChildrenDatasource;
@@ -167,5 +171,4 @@ WHERE {
167
171
  ?uri crm:P127_has_broader_term $node .
168
172
  OPTIONAL { ?uri rdfs:label ?label . }
169
173
  }
170
- ORDER BY ?label
171
- """ .
174
+ ORDER BY ?id""" .
@@ -58,11 +58,27 @@ this:E7ActivityDiagnostica # ATTIVITA' DIAGNOSTICA
58
58
  sh:name "ha usato un oggetto specifico" ;
59
59
  ] ;
60
60
  sh:property [
61
- sh:path crm:P12_occurred_in_the_presence_of ;
62
- sh:node this:S13SampleCampione ;
63
- sh:name "avvenuto in presenza di" ;
61
+ sh:path [ sh:inversePath crm:P134_continued ] ; # proprietà inversa: crm:P123i_resulted_from
62
+ sh:node this:E7ActivityIndagine ;
63
+ sh:name "è risultato da" ;
64
64
  ] ;
65
+ #sh:property [
66
+ # sh:path crm:P12_occurred_in_the_presence_of ;
67
+ # sh:node this:S13SampleCampione ;
68
+ # sh:name "avvenuto in presenza di" ;
69
+ #] ;
65
70
  sh:property this:E7ActivityDiagnosticaLabel .
71
+
72
+ this:E7ActivityIndagine # INDAGINE
73
+ a sh:NodeShape ;
74
+ sh:targetClass crm:E7_Activity ;
75
+ rdfs:label "Indagine" ;
76
+ sh:deactivated "true"^^xsd:boolean ;
77
+ sh:property [
78
+ sh:path crm:P16_used_specific_object ;
79
+ sh:node this:S13SampleCampione ;
80
+ sh:name "ha usato un oggetto specifico" ;
81
+ ] .
66
82
 
67
83
  this:E70ThingStrumento # STRUMENTO
68
84
  a sh:NodeShape ;
@@ -277,9 +293,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
277
293
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
278
294
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
279
295
  WHERE {
280
- BIND(<http://diagnostica/vocabularies/strumentazione> AS ?concept)
296
+ BIND(<http://diagnostica/vocabularies/strumentazione> AS ?root)
297
+ ?concept crm:P127_has_broader_term ?root .
281
298
  OPTIONAL { ?concept rdfs:label ?label . }
282
- }""" .
299
+ }
300
+ ORDER BY ?id""" .
283
301
 
284
302
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "MODALITA' INDAGINE" (13)
285
303
  this:tree_root_modalita_indagine a datasources:SparqlTreeRootDatasource;
@@ -288,9 +306,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
288
306
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
289
307
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
290
308
  WHERE {
291
- BIND(<http://diagnostica/vocabularies/modalita-di-indagine> AS ?concept)
309
+ BIND(<http://diagnostica/vocabularies/modalita-di-indagine> AS ?root)
310
+ ?concept crm:P127_has_broader_term ?root .
292
311
  OPTIONAL { ?concept rdfs:label ?label . }
293
- }""" .
312
+ }
313
+ ORDER BY ?id""" .
294
314
 
295
315
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "TECNICA DIAGNOSTICA" (20)
296
316
  this:tree_root_tecnica_diagnostica a datasources:SparqlTreeRootDatasource;
@@ -299,9 +319,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
299
319
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
300
320
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
301
321
  WHERE {
302
- BIND(<http://diagnostica/vocabularies/tecnica-diagnostica> AS ?concept)
322
+ BIND(<http://diagnostica/vocabularies/tecnica-diagnostica> AS ?root)
323
+ ?concept crm:P127_has_broader_term ?root .
303
324
  OPTIONAL { ?concept rdfs:label ?label . }
304
- }""" .
325
+ }
326
+ ORDER BY ?id""" .
305
327
 
306
328
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "TIPO CAMPIONE" (21)
307
329
  this:tree_root_tipo_campione a datasources:SparqlTreeRootDatasource;
@@ -310,9 +332,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
310
332
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
311
333
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
312
334
  WHERE {
313
- BIND(<http://diagnostica/vocabularies/tipo-campione> AS ?concept)
335
+ BIND(<http://diagnostica/vocabularies/tipo-campione> AS ?root)
336
+ ?concept crm:P127_has_broader_term ?root .
314
337
  OPTIONAL { ?concept rdfs:label ?label . }
315
- }""" .
338
+ }
339
+ ORDER BY ?id""" .
316
340
 
317
341
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "TIPO MATERIALE" (11)
318
342
  this:tree_root_tipo_materiale a datasources:SparqlTreeRootDatasource;
@@ -321,9 +345,12 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
321
345
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
322
346
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
323
347
  WHERE {
324
- BIND(<http://diagnostica/vocabularies/materiale> AS ?concept)
348
+ BIND(<http://diagnostica/vocabularies/materiale> AS ?root)
349
+ ?concept crm:P127_has_broader_term ?root .
325
350
  OPTIONAL { ?concept rdfs:label ?label . }
326
- }""" .
351
+ }
352
+ ORDER BY ?id""" .
353
+
327
354
 
328
355
  # DATASOURCE DEI TERMINI DI VOCABOLARIO SUCCESSIVI 1° LIVELLO (vale per tutti i vocabolari)
329
356
  this:tree_children_broader_term a datasources:SparqlTreeChildrenDatasource;
@@ -335,5 +362,4 @@ WHERE {
335
362
  ?uri crm:P127_has_broader_term $node .
336
363
  OPTIONAL { ?uri rdfs:label ?label . }
337
364
  }
338
- ORDER BY ?label
339
- """ .
365
+ ORDER BY ?id""" .
@@ -204,9 +204,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
204
204
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
205
205
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
206
206
  WHERE {
207
- BIND(<http://diagnostica/vocabularies/inquadramento-cronologico> AS ?concept)
207
+ BIND(<http://diagnostica/vocabularies/inquadramento-cronologico> AS ?root)
208
+ ?concept crm:P127_has_broader_term ?root .
208
209
  OPTIONAL { ?concept rdfs:label ?label . }
209
- }""" .
210
+ }
211
+ ORDER BY ?id""" .
210
212
 
211
213
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "TIPO CAMPIONE" (21)
212
214
  this:tree_root_tipo_campione a datasources:SparqlTreeRootDatasource;
@@ -215,9 +217,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
215
217
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
216
218
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
217
219
  WHERE {
218
- BIND(<http://diagnostica/vocabularies/tipo-campione> AS ?concept)
220
+ BIND(<http://diagnostica/vocabularies/tipo-campione> AS ?root)
221
+ ?concept crm:P127_has_broader_term ?root .
219
222
  OPTIONAL { ?concept rdfs:label ?label . }
220
- }""" .
223
+ }
224
+ ORDER BY ?id""" .
221
225
 
222
226
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "TIPO MATERIALE" (11)
223
227
  this:tree_root_tipo_materiale a datasources:SparqlTreeRootDatasource;
@@ -226,9 +230,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
226
230
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
227
231
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
228
232
  WHERE {
229
- BIND(<http://diagnostica/vocabularies/materiale> AS ?concept)
233
+ BIND(<http://diagnostica/vocabularies/materiale> AS ?root)
234
+ ?concept crm:P127_has_broader_term ?root .
230
235
  OPTIONAL { ?concept rdfs:label ?label . }
231
- }""" .
236
+ }
237
+ ORDER BY ?id""" .
232
238
 
233
239
 
234
240
  # DATASOURCE DEI TERMINI DI VOCABOLARIO SUCCESSIVI 1° LIVELLO (vale per tutti i vocabolari)
@@ -241,5 +247,4 @@ WHERE {
241
247
  ?uri crm:P127_has_broader_term $node .
242
248
  OPTIONAL { ?uri rdfs:label ?label . }
243
249
  }
244
- ORDER BY ?label
245
- """ .
250
+ ORDER BY ?id""" .
@@ -1874,9 +1874,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
1874
1874
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
1875
1875
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
1876
1876
  WHERE {
1877
- BIND(<http://diagnostica/vocabularies/tipo-indagine> AS ?concept)
1877
+ BIND(<http://diagnostica/vocabularies/tipo-indagine> AS ?root)
1878
+ ?concept crm:P127_has_broader_term ?root .
1878
1879
  OPTIONAL { ?concept rdfs:label ?label . }
1879
- }""" .
1880
+ }
1881
+ ORDER BY ?id""" .
1880
1882
 
1881
1883
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "TIPO QUESITO DIAGNOSTICO" (8)
1882
1884
  this:tree_root_tipo_quesito_diagnostico a datasources:SparqlTreeRootDatasource;
@@ -1885,9 +1887,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
1885
1887
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
1886
1888
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
1887
1889
  WHERE {
1888
- BIND(<http://diagnostica/vocabularies/quesito-diagnostico> AS ?concept)
1890
+ BIND(<http://diagnostica/vocabularies/quesito-diagnostico> AS ?root)
1891
+ ?concept crm:P127_has_broader_term ?root .
1889
1892
  OPTIONAL { ?concept rdfs:label ?label . }
1890
- }""" .
1893
+ }
1894
+ ORDER BY ?id""" .
1891
1895
 
1892
1896
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "PROCESSO CAMPIONAMENTO" (17)
1893
1897
  this:tree_root_processo_campionamento a datasources:SparqlTreeRootDatasource;
@@ -1896,9 +1900,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
1896
1900
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
1897
1901
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
1898
1902
  WHERE {
1899
- BIND(<http://diagnostica/vocabularies/processo-di-campionamento> AS ?concept)
1903
+ BIND(<http://diagnostica/vocabularies/processo-di-campionamento> AS ?root)
1904
+ ?concept crm:P127_has_broader_term ?root .
1900
1905
  OPTIONAL { ?concept rdfs:label ?label . }
1901
- }""" .
1906
+ }
1907
+ ORDER BY ?id""" .
1902
1908
 
1903
1909
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "DISSESTI STRUTTURALI" (25)
1904
1910
  this:tree_root_dissesti_strutturali a datasources:SparqlTreeRootDatasource;
@@ -1907,9 +1913,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
1907
1913
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
1908
1914
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
1909
1915
  WHERE {
1910
- BIND(<http://diagnostica/vocabularies/dissesti-strutturali> AS ?concept)
1916
+ BIND(<http://diagnostica/vocabularies/dissesti-strutturali> AS ?root)
1917
+ ?concept crm:P127_has_broader_term ?root .
1911
1918
  OPTIONAL { ?concept rdfs:label ?label . }
1912
- }""" .
1919
+ }
1920
+ ORDER BY ?id""" .
1913
1921
 
1914
1922
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "COMPETENZA" (5)
1915
1923
  this:tree_root_competenza_attore a datasources:SparqlTreeRootDatasource;
@@ -1918,9 +1926,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
1918
1926
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
1919
1927
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
1920
1928
  WHERE {
1921
- BIND(<http://diagnostica/vocabularies/competenza> AS ?concept)
1929
+ BIND(<http://diagnostica/vocabularies/competenza> AS ?root)
1930
+ ?concept crm:P127_has_broader_term ?root .
1922
1931
  OPTIONAL { ?concept rdfs:label ?label . }
1923
- }""" .
1932
+ }
1933
+ ORDER BY ?id""" .
1924
1934
 
1925
1935
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "UNITA' MISURA" (14)
1926
1936
  this:tree_root_unita_misura a datasources:SparqlTreeRootDatasource;
@@ -1929,9 +1939,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
1929
1939
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
1930
1940
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
1931
1941
  WHERE {
1932
- BIND(<http://diagnostica/vocabularies/unita-di-misura> AS ?concept)
1942
+ BIND(<http://diagnostica/vocabularies/unita-di-misura> AS ?root)
1943
+ ?concept crm:P127_has_broader_term ?root .
1933
1944
  OPTIONAL { ?concept rdfs:label ?label . }
1934
- }""" .
1945
+ }
1946
+ ORDER BY ?id""" .
1935
1947
 
1936
1948
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "INQUADRAMENTO CRONOLOGICO" (9)
1937
1949
  this:tree_root_inquadramento_cronologico a datasources:SparqlTreeRootDatasource;
@@ -1940,9 +1952,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
1940
1952
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
1941
1953
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
1942
1954
  WHERE {
1943
- BIND(<http://diagnostica/vocabularies/inquadramento-cronologico> AS ?concept)
1955
+ BIND(<http://diagnostica/vocabularies/inquadramento-cronologico> AS ?root)
1956
+ ?concept crm:P127_has_broader_term ?root .
1944
1957
  OPTIONAL { ?concept rdfs:label ?label . }
1945
- }""" .
1958
+ }
1959
+ ORDER BY ?id""" .
1946
1960
 
1947
1961
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "DESCRIZIONE CAMPIONE" (4)
1948
1962
  this:tree_root_descrizione_campione a datasources:SparqlTreeRootDatasource;
@@ -1951,9 +1965,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
1951
1965
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
1952
1966
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
1953
1967
  WHERE {
1954
- BIND(<http://diagnostica/vocabularies/descrizione-del-campione> AS ?concept)
1968
+ BIND(<http://diagnostica/vocabularies/descrizione-del-campione> AS ?root)
1969
+ ?concept crm:P127_has_broader_term ?root .
1955
1970
  OPTIONAL { ?concept rdfs:label ?label . }
1956
- }""" .
1971
+ }
1972
+ ORDER BY ?id""" .
1957
1973
 
1958
1974
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "NATURA OGGETTO" (26)
1959
1975
  this:tree_root_natura_oggetto a datasources:SparqlTreeRootDatasource;
@@ -1962,9 +1978,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
1962
1978
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
1963
1979
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
1964
1980
  WHERE {
1965
- BIND(<http://diagnostica/vocabularies/natura-oggetto> AS ?concept)
1981
+ BIND(<http://diagnostica/vocabularies/natura-oggetto> AS ?root)
1982
+ ?concept crm:P127_has_broader_term ?root .
1966
1983
  OPTIONAL { ?concept rdfs:label ?label . }
1967
- }""" .
1984
+ }
1985
+ ORDER BY ?id""" .
1968
1986
 
1969
1987
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "TIPO INQUADRAMENTO CRONOLOGICO" (23)
1970
1988
  this:tree_root_tipo_inquadram_cronologico a datasources:SparqlTreeRootDatasource;
@@ -1973,9 +1991,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
1973
1991
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
1974
1992
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
1975
1993
  WHERE {
1976
- BIND(<http://diagnostica/vocabularies/tipologia-inquadramento-cronologico> AS ?concept)
1994
+ BIND(<http://diagnostica/vocabularies/tipologia-inquadramento-cronologico> AS ?root)
1995
+ ?concept crm:P127_has_broader_term ?root .
1977
1996
  OPTIONAL { ?concept rdfs:label ?label . }
1978
- }""" .
1997
+ }
1998
+ ORDER BY ?id""" .
1979
1999
 
1980
2000
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "TIPO CONDIZIONE AMBIENTALE" (1)
1981
2001
  this:tree_root_tipo_condizione_ambientale a datasources:SparqlTreeRootDatasource;
@@ -1984,9 +2004,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
1984
2004
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
1985
2005
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
1986
2006
  WHERE {
1987
- BIND(<http://diagnostica/vocabularies/condizioni-ambientali> AS ?concept)
2007
+ BIND(<http://diagnostica/vocabularies/condizioni-ambientali> AS ?root)
2008
+ ?concept crm:P127_has_broader_term ?root .
1988
2009
  OPTIONAL { ?concept rdfs:label ?label . }
1989
- }""" .
2010
+ }
2011
+ ORDER BY ?id""" .
1990
2012
 
1991
2013
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "TIPO TAFONOMIA E STATO CONSERVAZIONE" (19)
1992
2014
  this:tree_root_tipo_tafonomia_stato_conservaz a datasources:SparqlTreeRootDatasource;
@@ -1995,9 +2017,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
1995
2017
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
1996
2018
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
1997
2019
  WHERE {
1998
- BIND(<http://diagnostica/vocabularies/tafonomia-e-stato-di-conservazione> AS ?concept)
2020
+ BIND(<http://diagnostica/vocabularies/tafonomia-e-stato-di-conservazione> AS ?root)
2021
+ ?concept crm:P127_has_broader_term ?root .
1999
2022
  OPTIONAL { ?concept rdfs:label ?label . }
2000
- }""" .
2023
+ }
2024
+ ORDER BY ?id""" .
2001
2025
 
2002
2026
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "TIPO CONTESTO" (2)
2003
2027
  this:tree_root_tipo_contesto a datasources:SparqlTreeRootDatasource;
@@ -2006,9 +2030,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
2006
2030
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
2007
2031
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
2008
2032
  WHERE {
2009
- BIND(<http://diagnostica/vocabularies/contesto> AS ?concept)
2033
+ BIND(<http://diagnostica/vocabularies/contesto> AS ?root)
2034
+ ?concept crm:P127_has_broader_term ?root .
2010
2035
  OPTIONAL { ?concept rdfs:label ?label . }
2011
- }""" .
2036
+ }
2037
+ ORDER BY ?id""" .
2012
2038
 
2013
2039
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "TIPO ELEMENTO COSTRUTTIVO" (6)
2014
2040
  this:tree_root_tipo_elemento_costruttivo a datasources:SparqlTreeRootDatasource;
@@ -2017,9 +2043,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
2017
2043
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
2018
2044
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
2019
2045
  WHERE {
2020
- BIND(<http://diagnostica/vocabularies/elemento-costruttivo> AS ?concept)
2046
+ BIND(<http://diagnostica/vocabularies/elemento-costruttivo> AS ?root)
2047
+ ?concept crm:P127_has_broader_term ?root .
2021
2048
  OPTIONAL { ?concept rdfs:label ?label . }
2022
- }""" .
2049
+ }
2050
+ ORDER BY ?id""" .
2023
2051
 
2024
2052
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "TIPO LUOGO ANALISI" (10)
2025
2053
  this:tree_root_tipo_luogo_analisi a datasources:SparqlTreeRootDatasource;
@@ -2028,9 +2056,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
2028
2056
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
2029
2057
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
2030
2058
  WHERE {
2031
- BIND(<http://diagnostica/vocabularies/luogo-di-analisi> AS ?concept)
2059
+ BIND(<http://diagnostica/vocabularies/luogo-di-analisi> AS ?root)
2060
+ ?concept crm:P127_has_broader_term ?root .
2032
2061
  OPTIONAL { ?concept rdfs:label ?label . }
2033
- }""" .
2062
+ }
2063
+ ORDER BY ?id""" .
2034
2064
 
2035
2065
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "FASE ANALISI" (7)
2036
2066
  this:tree_root_fase_analisi a datasources:SparqlTreeRootDatasource;
@@ -2039,9 +2069,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
2039
2069
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
2040
2070
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
2041
2071
  WHERE {
2042
- BIND(<http://diagnostica/vocabularies/fase-di-analisi> AS ?concept)
2072
+ BIND(<http://diagnostica/vocabularies/fase-di-analisi> AS ?root)
2073
+ ?concept crm:P127_has_broader_term ?root .
2043
2074
  OPTIONAL { ?concept rdfs:label ?label . }
2044
- }""" .
2075
+ }
2076
+ ORDER BY ?id""" .
2045
2077
 
2046
2078
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "PREPARAZIONE CAMPIONE" (16)
2047
2079
  this:tree_root_preparazione_campione a datasources:SparqlTreeRootDatasource;
@@ -2050,9 +2082,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
2050
2082
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
2051
2083
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
2052
2084
  WHERE {
2053
- BIND(<http://diagnostica/vocabularies/preparazione-campione> AS ?concept)
2085
+ BIND(<http://diagnostica/vocabularies/preparazione-campione> AS ?root)
2086
+ ?concept crm:P127_has_broader_term ?root .
2054
2087
  OPTIONAL { ?concept rdfs:label ?label . }
2055
- }""" .
2088
+ }
2089
+ ORDER BY ?id""" .
2056
2090
 
2057
2091
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "MEDIUM" (12)
2058
2092
  this:tree_root_tipo_medium a datasources:SparqlTreeRootDatasource;
@@ -2061,9 +2095,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
2061
2095
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
2062
2096
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
2063
2097
  WHERE {
2064
- BIND(<http://diagnostica/vocabularies/medium> AS ?concept)
2098
+ BIND(<http://diagnostica/vocabularies/medium> AS ?root)
2099
+ ?concept crm:P127_has_broader_term ?root .
2065
2100
  OPTIONAL { ?concept rdfs:label ?label . }
2066
- }""" .
2101
+ }
2102
+ ORDER BY ?id""" .
2067
2103
 
2068
2104
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "INPUT" (24)
2069
2105
  this:tree_root_tipo_input a datasources:SparqlTreeRootDatasource;
@@ -2072,9 +2108,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
2072
2108
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
2073
2109
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
2074
2110
  WHERE {
2075
- BIND(<http://diagnostica/vocabularies/input> AS ?concept)
2111
+ BIND(<http://diagnostica/vocabularies/input> AS ?root)
2112
+ ?concept crm:P127_has_broader_term ?root .
2076
2113
  OPTIONAL { ?concept rdfs:label ?label . }
2077
- }""" .
2114
+ }
2115
+ ORDER BY ?id""" .
2078
2116
 
2079
2117
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "OUTPUT" (15)
2080
2118
  this:tree_root_tipo_output a datasources:SparqlTreeRootDatasource;
@@ -2083,9 +2121,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
2083
2121
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
2084
2122
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
2085
2123
  WHERE {
2086
- BIND(<http://diagnostica/vocabularies/output> AS ?concept)
2124
+ BIND(<http://diagnostica/vocabularies/output> AS ?root)
2125
+ ?concept crm:P127_has_broader_term ?root .
2087
2126
  OPTIONAL { ?concept rdfs:label ?label . }
2088
- }""" .
2127
+ }
2128
+ ORDER BY ?id""" .
2089
2129
 
2090
2130
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "TIPO DEGRADO" (3)
2091
2131
  this:tree_root_tipo_degrado a datasources:SparqlTreeRootDatasource;
@@ -2094,9 +2134,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
2094
2134
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
2095
2135
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
2096
2136
  WHERE {
2097
- BIND(<http://diagnostica/vocabularies/degrado> AS ?concept)
2137
+ BIND(<http://diagnostica/vocabularies/degrado> AS ?root)
2138
+ ?concept crm:P127_has_broader_term ?root .
2098
2139
  OPTIONAL { ?concept rdfs:label ?label . }
2099
- }""" .
2140
+ }
2141
+ ORDER BY ?id""" .
2100
2142
 
2101
2143
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "STRUMENTAZIONE" (18)
2102
2144
  this:tree_root_strumentazione a datasources:SparqlTreeRootDatasource;
@@ -2105,9 +2147,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
2105
2147
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
2106
2148
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
2107
2149
  WHERE {
2108
- BIND(<http://diagnostica/vocabularies/strumentazione> AS ?concept)
2150
+ BIND(<http://diagnostica/vocabularies/strumentazione> AS ?root)
2151
+ ?concept crm:P127_has_broader_term ?root .
2109
2152
  OPTIONAL { ?concept rdfs:label ?label . }
2110
- }""" .
2153
+ }
2154
+ ORDER BY ?id""" .
2111
2155
 
2112
2156
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "MODALITA' INDAGINE" (13)
2113
2157
  this:tree_root_modalita_indagine a datasources:SparqlTreeRootDatasource;
@@ -2116,9 +2160,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
2116
2160
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
2117
2161
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
2118
2162
  WHERE {
2119
- BIND(<http://diagnostica/vocabularies/modalita-di-indagine> AS ?concept)
2163
+ BIND(<http://diagnostica/vocabularies/modalita-di-indagine> AS ?root)
2164
+ ?concept crm:P127_has_broader_term ?root .
2120
2165
  OPTIONAL { ?concept rdfs:label ?label . }
2121
- }""" .
2166
+ }
2167
+ ORDER BY ?id""" .
2122
2168
 
2123
2169
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "TECNICA DIAGNOSTICA" (20)
2124
2170
  this:tree_root_tecnica_diagnostica a datasources:SparqlTreeRootDatasource;
@@ -2127,9 +2173,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
2127
2173
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
2128
2174
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
2129
2175
  WHERE {
2130
- BIND(<http://diagnostica/vocabularies/tecnica-diagnostica> AS ?concept)
2176
+ BIND(<http://diagnostica/vocabularies/tecnica-diagnostica> AS ?root)
2177
+ ?concept crm:P127_has_broader_term ?root .
2131
2178
  OPTIONAL { ?concept rdfs:label ?label . }
2132
- }""" .
2179
+ }
2180
+ ORDER BY ?id""" .
2133
2181
 
2134
2182
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "TIPO CAMPIONE" (21)
2135
2183
  this:tree_root_tipo_campione a datasources:SparqlTreeRootDatasource;
@@ -2138,9 +2186,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
2138
2186
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
2139
2187
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
2140
2188
  WHERE {
2141
- BIND(<http://diagnostica/vocabularies/tipo-campione> AS ?concept)
2189
+ BIND(<http://diagnostica/vocabularies/tipo-campione> AS ?root)
2190
+ ?concept crm:P127_has_broader_term ?root .
2142
2191
  OPTIONAL { ?concept rdfs:label ?label . }
2143
- }""" .
2192
+ }
2193
+ ORDER BY ?id""" .
2144
2194
 
2145
2195
  # DATASOURCE DEI TERMINI DI VOCABOLARIO "TIPO MATERIALE" (11)
2146
2196
  this:tree_root_tipo_materiale a datasources:SparqlTreeRootDatasource;
@@ -2149,9 +2199,11 @@ PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
2149
2199
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
2150
2200
  SELECT (?concept AS ?uri) ?label (EXISTS { ?child crm:P127_has_broader_term ?concept } AS ?hasChildren)
2151
2201
  WHERE {
2152
- BIND(<http://diagnostica/vocabularies/materiale> AS ?concept)
2202
+ BIND(<http://diagnostica/vocabularies/materiale> AS ?root)
2203
+ ?concept crm:P127_has_broader_term ?root .
2153
2204
  OPTIONAL { ?concept rdfs:label ?label . }
2154
- }""" .
2205
+ }
2206
+ ORDER BY ?id""" .
2155
2207
 
2156
2208
 
2157
2209
  # DATASOURCE DEI TERMINI DI VOCABOLARIO SUCCESSIVI 1° LIVELLO (vale per tutti i vocabolari)
@@ -2164,5 +2216,4 @@ WHERE {
2164
2216
  ?uri crm:P127_has_broader_term $node .
2165
2217
  OPTIONAL { ?uri rdfs:label ?label . }
2166
2218
  }
2167
- ORDER BY ?label
2168
- """ .
2219
+ ORDER BY ?id""" .