Package org.corrib.s3b.nlq.util

Examples of org.corrib.s3b.nlq.util.SmartProperties.load()


   */
  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")));
   
View Full Code Here


   */
  protected void loadNLQuery(String lang) throws IOException{
    InputStream is = NLQueryTemplates.class.getClassLoader().getResourceAsStream(String.format(SERVICE_TEMPLATE, lang));
    SmartProperties prop = new SmartProperties();
   
    prop.load(is);
    is.close();
   
    // ------ loading rdf queries -------
    Integer count = Integer.valueOf(prop.getProperty("nlq_template.count"));
    String  explaintmpl = prop.getProperty("nlq_template.explain");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.