From 9da5a7e7acca90ca8a7f8f5dd2b6019f36b07d71 Mon Sep 17 00:00:00 2001 From: cesare Date: Tue, 28 May 2024 16:06:27 +0200 Subject: [PATCH] customizzazione SPARQL editor... --- js/sparqltemplates.js | 22 +++++++++++++++++++++ yasgui/index.html | 46 +++++++++++-------------------------------- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/js/sparqltemplates.js b/js/sparqltemplates.js index d31bb7d..e219669 100644 --- a/js/sparqltemplates.js +++ b/js/sparqltemplates.js @@ -326,5 +326,27 @@ const clauseocc_hascomponent_formocc=`{"subject": {"termType": "Variable","value const occurrenceof_clause=`{"subject": {"termType": "Variable","value": "cloccu"}, "predicate": {"termType": "NamedNode","value": "https://dantenetwork.it/ontology/olires/current/occurrenceOf"}, "object": {"termType": "Variable","value": "cl"}}` + +//DEFAULT QUERY PER SPARQL EDITOR + +const defaultEditorQuery=`# ESEMPIO: i periodi della Commedia con una frase con tipo sintattico 'Subordinata Causale' + +PREFIX ecrm: +PREFIX syntit: +PREFIX olires: +SELECT ?Cantica ?Canto ?Periodo ?FraseSubordinata +WHERE { + ?cl syntit:hasClauseType syntit:Causale ; + ecrm:P190_has_symbolic_content ?FraseSubordinata . + ?sentence a syntit:Sentence ; + syntit:hasSyntacticalComponent ?cl; + ecrm:P190_has_symbolic_content ?Periodo ; + ecrm:P148i_is_component_of ?q_canto. + ?q_canto ecrm:P102_has_title ?Canto . + ?cantica ecrm:P102_has_title ?Cantica; + olires:hasStructuralComponent ?q_canto. +} order by ?Cantica ?Canto + ` + \ No newline at end of file diff --git a/yasgui/index.html b/yasgui/index.html index 88d2c51..5873f22 100644 --- a/yasgui/index.html +++ b/yasgui/index.html @@ -3,24 +3,20 @@ - - - - - - - + + + + + - - - -