31.05.2013 Views

Cruscotto per la navigazione degli indicatori di sostenibilità e - Cnr

Cruscotto per la navigazione degli indicatori di sostenibilità e - Cnr

Cruscotto per la navigazione degli indicatori di sostenibilità e - Cnr

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Questo servizio è <strong>di</strong>sponibile al<strong>la</strong> url: mat<strong>la</strong>spisa.isti.cnr.it/maps/index.php<br />

Figura 5: 2 Servizio <strong>di</strong> visualizzazione <strong>per</strong> dati geo-referenziati<br />

3 Popo<strong>la</strong>mento del Data Warehouse<br />

Lo scopo del DWH è quello <strong>di</strong> mantenere <strong>la</strong> consistenza <strong>di</strong> dati storici e <strong>per</strong>mettere l’aggiornamento<br />

dei dati nel tempo. Questo aggiornamento è possibile attraverso <strong>la</strong> definizione <strong>di</strong> procedure <strong>per</strong><br />

l’alimentazione automatica del sistema.<br />

Per garantire <strong>la</strong> consistenza del DWH è dunque necessaria <strong>la</strong> col<strong>la</strong>borazione dei fornitori dei dati<br />

nel<strong>la</strong> fase <strong>di</strong> raccolta <strong>di</strong> nuovi dati e alimentazione <strong>per</strong>io<strong>di</strong>ca nel sistema.<br />

A tale scopo sono state implementate una serie <strong>di</strong> interfacce RESTFul (6) <strong>per</strong> poter gestire le<br />

procedure <strong>di</strong> comunicazione e aggiornamento dei dati me<strong>di</strong>ante un servizio web.<br />

Le interfacce definiscono due tipo <strong>di</strong> meto<strong>di</strong>: uno <strong>per</strong> <strong>la</strong> selezione dei dati (get) e uno <strong>per</strong><br />

l’aggiornamento <strong>per</strong>io<strong>di</strong>co (post).<br />

Un metodo get <strong>per</strong> <strong>la</strong> richiesta <strong>di</strong> un in<strong>di</strong>catore è il seguente:<br />

getMeasure(request)<br />

GET<br />

http://mat<strong>la</strong>spisa.isti.cnr.it:8080/turismo-rest/getMeasure<br />

Request format:<br />

@QueryParam("startime") long:inizio dell’intervallo <strong>di</strong> osservazione(ms);<br />

@QueryParam("endtime") long:fine dell’intervallo <strong>di</strong> osservazione(ms);<br />

5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!