From a7f1e0c91c38ad11dd4a36e4d6c82dbbfb7a1d12 Mon Sep 17 00:00:00 2001 From: cesare Date: Fri, 7 Mar 2025 13:25:25 +0100 Subject: [PATCH] aggiunti namespaces --- js/sparqltemplates.js | 10 ++++++++-- js/utilsMgr_5.1.js | 2 ++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/js/sparqltemplates.js b/js/sparqltemplates.js index d04b490..810d51b 100644 --- a/js/sparqltemplates.js +++ b/js/sparqltemplates.js @@ -14,6 +14,7 @@ PREFIX ontolex: PREFIX olires: PREFIX comm: PREFIX syntit: +prefix tresont: SELECT (?t_canto as ?Canto) (?t_cantica as ?Cantica) ?clatype ?clafunction ?clfr ?clto ?cl ?sentence ?cltext ?pos ?clocc ?nv WHERE { @@ -66,7 +67,6 @@ WHERE { //Query generica per advanced search con piu condizioni var ontoSparqlQueryMultCond = `PREFIX rdfs: -PREFIX ecrm: PREFIX hdn: PREFIX lemon: PREFIX orl: @@ -76,6 +76,8 @@ PREFIX olires: PREFIX comm: PREFIX syntit: PREFIX rdf: +prefix tresont: +PREFIX ecrm: SELECT (?t_canto as ?Canto) (?t_cantica as ?Cantica) ?clatype ?clafunction ?clfr ?clto ?cl ?sentence ?pos ?clocc WHERE { @@ -121,7 +123,8 @@ const clausetargetquery = ` PREFIX lemon: PREFIX orl: PREFIX ontolex: - + prefix tresont: + SELECT distinct (?t_canto AS ?Canto) (?t_cantica AS ?Cantica) ?sentence ?clfr ?clto ?clafunction ?clt ?pos WHERE { { ?sentence rdf:type syntit:Sentence; @@ -284,6 +287,7 @@ PREFIX rdf: PREFIX lemon: PREFIX orl: PREFIX ontolex: +prefix tresont: SELECT (?t_canto as ?Canto) (?t_cantica as ?Cantica) ?sentence ?clfr ?clto ?clafunction ?clocc WHERE { { @@ -555,6 +559,8 @@ const defaultEditorQuery = `# ESEMPIO: i periodi della Commedia con una frase co PREFIX ecrm: PREFIX syntit: PREFIX olires: +prefix tresont: + SELECT ?Cantica ?Canto ?Periodo ?FraseSubordinata WHERE { ?cl syntit:hasClauseType syntit:Causale ; diff --git a/js/utilsMgr_5.1.js b/js/utilsMgr_5.1.js index 6a10e3f..58da34c 100644 --- a/js/utilsMgr_5.1.js +++ b/js/utilsMgr_5.1.js @@ -62,6 +62,8 @@ PREFIX orl: PREFIX ontolex: PREFIX olires: PREFIX syntit: +prefix tresont: + SELECT DISTINCT ?sentence ?clocc ?clfr ?clto ?clafunction ?clatype (?t_canto as ?Canto) (?t_cantica as ?Cantica) ?pos WHERE { FILTER regex(?Rappresentazione,"^persona$","i") . #remove if query_text==''