modifica nella result list della query

This commit is contained in:
cesare 2022-09-29 15:59:35 +02:00
parent 78897d88b6
commit 7e02244cbc
1 changed files with 10 additions and 3 deletions

View File

@ -8,7 +8,10 @@ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#> PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX olires:<https://dantenetwork.it/ontology/OLIRes/> PREFIX olires:<https://dantenetwork.it/ontology/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 { WHERE {
?fa orl:occurrenceOf ?form; ?fa orl:occurrenceOf ?form;
ecrm:P148i_is_component_of ?ver . ecrm:P148i_is_component_of ?ver .
@ -19,8 +22,12 @@ WHERE {
ecrm:P148i_is_component_of ?cantica . ecrm:P148i_is_component_of ?cantica .
?cantica ecrm:P102_has_title ?t_cantica . ?cantica ecrm:P102_has_title ?t_cantica .
?form ontolex:writtenRep ?Rappresentazione . ?form ontolex:writtenRep ?Rappresentazione .
FILTER regex(?Rappresentazione,"^farò$","i") . ?lent ontolex:lexicalForm ?form;
FILTER langMatches(lang(?Rappresentazione),"it") 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) { function writesparqlquery(query) {