piccole migliorie grafiche

This commit is contained in:
nicola 2022-10-06 11:48:03 +02:00
parent f4d278c08d
commit ab27b68ad7
2 changed files with 11 additions and 13 deletions

View File

@ -130,23 +130,23 @@
<div class="flex flex-column" id='query'>
<div class="flex flex-wrap" id='condizioni'>
<div class="outline w-30 pv3 mr2">
<div class="outline w-30 pv1 mr0 col-md-6">
<div class="flex items-center">
<div class="fl w-100 w-40-ns">
<fieldset id="lemma_forma" class="bn">
<div class="flex items-center mb2">
<div class="flex items-center mb0">
<input class="mr2 f6" type="radio" id="lemma" value="lemma"
name="oggetto"> <label for="lemma" class="lh-copy">Lemma</label>
</div>
<div class="flex items-center mb2">
<div class="flex items-center mb0">
<input class="mr2 f6" type="radio" id="forma" value="forma"
name="oggetto"> <label for="forma" class="lh-copy">Forma</label>
</div>
</fieldset>
</div>
<div class="fl w-100 w-70-ns ph1">
<div class="fl w-100 w-70-ns ph0">
<input id="searchValue"
class="input-reset ba b--black-20 pa2 mb2 db w-100"
type="text" aria-describedby="name-desc" name="query"
@ -288,9 +288,9 @@
<!-- CATEGORIA GRAMMATICALE -->
<div style="display: none;" id='categoriagrammaticale'>
<div class="outline w-25">
<div class="outline ">
<div class="flex flex-column">
<div class="flex flex-column pa2">
<nav class="pa1 pa1-ns">

View File

@ -15,6 +15,7 @@ $(document).ready(function() {
var queryFields = []; // Contiene le intestazioni di colonna della tabella dei risultati
const sparqlEndpoint = "https://hdnlab1.isti.cnr.it/fuseki/commediaontosintgra/query";
const sparqlGenerator = sparqljs.Generator;
var aggettivoJson = {
"filtriaggettivo": {
@ -551,7 +552,6 @@ $(document).ready(function() {
condizioniFiltro['filtro-1'] = "query="+clausola;
}
const sparqlGenerator = sparqljs.Generator;
spquery=buildSQ(condizioniFiltro)
queryFields = [];
for (var i in spquery.variables) {
@ -559,13 +559,11 @@ $(document).ready(function() {
}
execMySparqlQuery (new sparqlGenerator().stringify(spquery));
return true
}
)
async function execMySparqlQuery (spQuery){
const sparqlGenerator = sparqljs.Generator;
$("#loader").show();
alert (new sparqlGenerator().stringify(spQuery));
bindingsStream = await myEngine.queryBindings(spQuery, { sources: [ { type: 'sparql', value: sparqlEndpoint }, ], });