Package org.ontoware.rdf2go.model

Examples of org.ontoware.rdf2go.model.Model.querySelect()


    Object[] aslabels = new String[this.queries.length];
   
    for(int i = 0; i < aslabels.length; i++) {
      StringBuilder sb = new StringBuilder();
     
      QueryResultTable table = m.querySelect(String.format(this.queries[i], param), "SPARQL");
      ClosableIterator<QueryRow> it = table.iterator();
     
      while(it.hasNext()) {
        QueryRow row = it.next();
        sb.append(row.getLiteralValue("value")).append(", ");
View Full Code Here


    if(person != null){
      URI prefsNode = S3BRepository.getInstance().getModel().createURI(person.getUri().toString()+"/recommendationPrefs");
      Model m = person.getGraph(Concepts.HAS_RECOMMENDATION_PREF.get(), prefsNode);
      if(m != null) {
        String q = Queries.LIST_RECOMMENDATION_PREFERENCES.getQuery(prefsNode.toString());
        QueryResultTable table = m.querySelect(q, "SPARQL");
       
        if(table != null){
          ClosableIterator<QueryRow> it = table.iterator();
          Set<UserRecommendationPrefs> sprefs = new HashSet<UserRecommendationPrefs>();
         
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.