Package org.openrdf.model.impl

Examples of org.openrdf.model.impl.StatementImpl


   * @param predicate String predicate
   * @param object String object - always a plain literal
   *
   */
  public void add(String subject, String predicate, String object) {
    add(Graphs.newGraph(new StatementImpl(
        new URIImpl(subject.toString()),
        new URIImpl(predicate.toString()),
        new LiteralImpl(object.toString()))));
  }
View Full Code Here


   * @param subject URI subject
   * @param predicate URI predicate
   * @param object URI object
   */
  public void add(java.net.URI subject, java.net.URI predicate, java.net.URI object) {
    add(Graphs.newGraph(new StatementImpl(
        new URIImpl(subject.toString()),
        new URIImpl(predicate.toString()),
        new URIImpl(object.toString()))));
  }
View Full Code Here

        oval = castValue(v_rs.getObject(col_o));
       
      if (col_g != -1)
        gval = (Resource) castValue(v_rs.getObject(col_g));

      v_row = new StatementImpl(sval,pval,oval,gval);
    }
View Full Code Here

        }

      if (_object == null && col_o != -1)
        _object = castValue(v_rs.getObject(col_o));

      v_row = new StatementImpl(_subject,_predicate,_object,_graph);
    }
View Full Code Here

      java.sql.Statement stmt = this.connection.createStatement();
      stmt.executeUpdate(exec_text);
  }
  catch(Exception e)
  {
      listener.error("Problem removing data", 0, 0, new StatementImpl(subject, predicate, object));
      e.printStackTrace();
      System.exit(-1);
  };
    }
View Full Code Here

TOP

Related Classes of org.openrdf.model.impl.StatementImpl

Copyright © 2018 www.massapicom. 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.