diff --git a/js/sparqltemplates.js b/js/sparqltemplates.js index 9d8c20e..8e80de3 100644 --- a/js/sparqltemplates.js +++ b/js/sparqltemplates.js @@ -109,6 +109,88 @@ WHERE { }` + //Query per advanced search con obiettivo = 'Frase' + const clausetargetquery = ` + PREFIX ecrm: + PREFIX xsd: + PREFIX olires: + PREFIX syntit: + PREFIX rdf: + PREFIX lemon: + PREFIX orl: + PREFIX ontolex: + + SELECT distinct (?t_canto AS ?Canto) (?t_cantica AS ?Cantica) ?sentence ?clfr ?clto ?clafunction ?clt ?pos WHERE { + { + ?sentence rdf:type syntit:Sentence; + syntit:hasSyntacticalComponent ?cl; + ecrm:P148i_is_component_of ?canto. + ?cl syntit:hasClauseType ?clatype; + syntit:hasClauseFunction ?clafun. + ?seocc olires:occurrenceOf ?sentence; + olires:occursInRegion ?frag. + ?claocc olires:occurrenceOf ?cl; + olires:occursInRegion ?fragcl. + ?fragcl olires:fragmentRegionFrom ?clfr; + olires:fragmentRegionTo ?clto. + } + ?canto ecrm:P102_has_title ?t_canto; + olires:hasNumber ?num. + ?cantica ecrm:P102_has_title ?t_cantica; + olires:hasStructuralComponent ?canto. + BIND(CONCAT(STR(?clafun), ';') AS ?clafunction) + BIND(STR(?clatype) AS ?clt) + FILTER (?clto > ?pos && ?clfr