filtri sulla posizione nella frase, in progress

This commit is contained in:
cesare 2025-03-07 16:27:05 +01:00
parent a7f1e0c91c
commit 819f2145e5
3 changed files with 4617 additions and 0 deletions

2303
index_5.1_a.html Normal file

File diff suppressed because it is too large Load Diff

View File

@ -236,6 +236,63 @@ const clausepos_gr_filter=`
} }
} }
` `
//TEST per posizione in frase
/*
"language": "",
"datatype": {
"termType": "NamedNode",
"value": "http://www.w3.org/2001/XMLSchema#integer"
}
*/
const formapos_frase_filter=`
{
"type": "filter",
"expression": {
"type": "operation",
"operator": "&&",
"args": [
{
"type": "operation",
"operator": ">=",
"args": [
{
"termType": "Literal",
"value": "_999_",
"language": "",
"datatype": {
"termType": "NamedNode",
"value": "http://www.w3.org/2001/XMLSchema#int"
}
},
{
"termType": "Variable",
"value": "seqpos_"
}
]
},
{
"type": "operation",
"operator": "<=",
"args": [
{
"termType": "Literal",
"value": "_0_",
"language": "",
"datatype": {
"termType": "NamedNode",
"value": "http://www.w3.org/2001/XMLSchema#int"
}
},
{
"termType": "Variable",
"value": "seqpos_"
}
]
}
]
}
}`
const clausepos_sy_filter=` const clausepos_sy_filter=`
{ {
@ -507,6 +564,12 @@ const sentencetarget_morphgroup_short = `{"type": "group",
{"subject": {"termType": "Variable","value": "fa"}, {"subject": {"termType": "Variable","value": "fa"},
"predicate": {"termType": "NamedNode","value": "https://dantenetwork.it/ontology/olires/current/OccursInRegion"}, "predicate": {"termType": "NamedNode","value": "https://dantenetwork.it/ontology/olires/current/OccursInRegion"},
"object": {"termType": "Variable", "value": "reg"}}, "object": {"termType": "Variable", "value": "reg"}},
{"subject": {"termType": "Variable","value": "fa"},
"predicate": {"termType": "NamedNode","value": "https://itserr.it/tresont/current/inSequence"},
"object": {"termType": "Variable","value": "cloccte"}},
{"subject": {"termType": "Variable","value": "fa"},
"predicate": {"termType": "NamedNode","value": "https://itserr.it/tresont/current/hasPosition"},
"object": {"termType": "Variable","value": "seqpos"}},
{"subject": {"termType": "Variable","value": "cloccte"}, {"subject": {"termType": "Variable","value": "cloccte"},
"predicate": {"termType": "NamedNode","value": "https://erlangen-crm.org/current/P148_has_component"}, "predicate": {"termType": "NamedNode","value": "https://erlangen-crm.org/current/P148_has_component"},
"object": {"termType": "Variable","value": "fa"}}, "object": {"termType": "Variable","value": "fa"}},
@ -525,6 +588,7 @@ const sentencetarget_morphgroup_short = `{"type": "group",
{"subject": {"termType": "Variable","value": "sentence"}, {"subject": {"termType": "Variable","value": "sentence"},
"predicate": {"termType": "NamedNode","value": "https://dantenetwork.it/ontology/syntit/current/hasSyntacticalComponent"}, "predicate": {"termType": "NamedNode","value": "https://dantenetwork.it/ontology/syntit/current/hasSyntacticalComponent"},
"object": {"termType": "Variable","value": "clg"}} "object": {"termType": "Variable","value": "clg"}}
] ]
} }
] ]

2250
js/utilsMgr_5.1_a.js Normal file

File diff suppressed because it is too large Load Diff