added control for senatore id from api and from sparql, added error mngmt for these procedures