From fabd67bd0d52b7843ae27327ced220473b64eac7 Mon Sep 17 00:00:00 2001 From: cesare Date: Fri, 21 Apr 2023 10:45:17 +0200 Subject: [PATCH] fix per query con clausole sint --- js/cesareBrowse.js | 4 ++-- js/utils.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/cesareBrowse.js b/js/cesareBrowse.js index 5531085..b53314e 100644 --- a/js/cesareBrowse.js +++ b/js/cesareBrowse.js @@ -1106,8 +1106,8 @@ function resetFrasi(){ var clfrom=binding.get('clfr').value; var clto=binding.get('clto').value; var cltype=binding.get('clatype').value.replace('https://dantenetwork.it/ontology/syntit/current/','') - //var clfunction=binding.get('clafunction').value.replace('https://dantenetwork.it/ontology/syntit/current/','') - var clfunction=binding.get('clf').value.replace('https://dantenetwork.it/ontology/syntit/current/','') + var clfunction=binding.get('clafunction').value.replace('https://dantenetwork.it/ontology/syntit/current/','') + //var clfunction=binding.get('clf').value.replace('https://dantenetwork.it/ontology/syntit/current/','') //id del periodo var sentenceid=binding.get('sentence').value.replace('http://dantenetwork.it/data/commedia/','') diff --git a/js/utils.js b/js/utils.js index 71cbd4d..4643662 100644 --- a/js/utils.js +++ b/js/utils.js @@ -213,7 +213,7 @@ PREFIX orl: PREFIX ontolex: PREFIX olires: PREFIX syntit: -SELECT ?sentence ?clfr ?clto ?clf ?clatype (?t_canto as ?Canto) (?t_cantica as ?Cantica) +SELECT ?sentence ?clfr ?clto ?clafunction ?clatype (?t_canto as ?Canto) (?t_cantica as ?Cantica) WHERE { FILTER regex(?Rappresentazione,"^persona$","i") . #remove if query_text=='' FILTER langMatches(lang(?Rappresentazione),"it") #remove if query_text=='' @@ -222,7 +222,7 @@ WHERE { ?clocc ecrm:P148_has_component ?fa . #remove if query_text=='' ?cl syntit:hasClauseType ?clatype; ecrm:P190_has_symbolic_content ?cltext; - syntit:hasClauseFunction ?clf. + syntit:hasClauseFunction ?clafunction. ?clocc orl:occurrenceOf ?cl; olires:occursInRegion ?frag. ?frag olires:fragmentRegionFrom ?clfr;