From 7e02244cbcee5260eda646f98ac63cf681057c9e Mon Sep 17 00:00:00 2001 From: cesare Date: Thu, 29 Sep 2022 15:59:35 +0200 Subject: [PATCH] modifica nella result list della query --- js/utils.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/js/utils.js b/js/utils.js index 8878b89..ada18db 100644 --- a/js/utils.js +++ b/js/utils.js @@ -8,7 +8,10 @@ PREFIX xsd: PREFIX ontolex: PREFIX olires: -SELECT (?form as ?IRIForma) ?Rappresentazione (?textver as ?Verso) ?NumVerso (?t_canto as ?Canto) (?t_cantica as ?Cantica) + +SELECT (?form as ?IRIForma) (?Rappresentazione as ?Forma) (?textver as ?Verso) ?NumVerso (?t_canto as ?Canto) (?t_cantica as ?Cantica) +(?lm as ?Lemma) + WHERE { ?fa orl:occurrenceOf ?form; ecrm:P148i_is_component_of ?ver . @@ -19,8 +22,12 @@ WHERE { ecrm:P148i_is_component_of ?cantica . ?cantica ecrm:P102_has_title ?t_cantica . ?form ontolex:writtenRep ?Rappresentazione . - FILTER regex(?Rappresentazione,"^farò$","i") . - FILTER langMatches(lang(?Rappresentazione),"it") + ?lent ontolex:lexicalForm ?form; + ontolex:canonicalForm ?cf . + ?cf ontolex:writtenRep ?lm . + FILTER regex(?Rappresentazione,"^farò$","i") . + #FILTER regex(?lm,"^fare$","i") . + FILTER langMatches(lang(?Rappresentazione),"it") }` function writesparqlquery(query) {