* @throws IOException
*
*/
protected void loadRdfQueries() throws IOException{
InputStream is = NLQueryTemplates.class.getClassLoader().getResourceAsStream(SERVICE_NLQUERIES_RDFPROPERTIES);
SmartProperties prop = new SmartProperties();
prop.load(is);
is.close();
// ------ loading list of Strings
this.lstLangs.addAll(Arrays.asList(prop.getAsStringArray("nlq_locale")));
// --- load default user;
this.sDefaultUser = prop.getProperty("nlq_default_user");
// ------ loading rdf queries -------
Integer count = Integer.valueOf(prop.getProperty("nlq_template.count"));
for(int i = 0; i < count; i++){
String[] templates = prop.getAsStringArray("nlq_template."+i+".query");
List<TypedRdfQueryTemplate> rdfqueries = new ArrayList<TypedRdfQueryTemplate>();
for(String template : templates){
int p = template.indexOf(':');
String query = template.substring(p+1);