Examples of querySelect()


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

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

    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

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

    if(_model!=null) innerModel = _model;
    else innerModel = DbFace.getModel();
   
    try
    {
      QueryResultTable results = innerModel.querySelect(RdfQuery.RDF_GET_USER_SIOC_DIR.toString(
        S3B_SSCF.Directory , dirLabel, ownerMbox),"SPARQL");
      ClosableIterator<QueryRow> it = results.iterator();
      if (it.hasNext()) {
        QueryRow qr = it.next();
        if(qr.getValue(results.getVariables().get(0))!=null)
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.