Пример #1
0
  public Statement(World world, Node subject, Node predicate, Node object) {
    long s = (subject != null) ? core.librdf_new_node_from_node(subject.__get_object()) : 0;
    long p = (predicate != null) ? core.librdf_new_node_from_node(predicate.__get_object()) : 0;
    long o = (object != null) ? core.librdf_new_node_from_node(object.__get_object()) : 0;

    this.world = world;
    this.object = core.librdf_new_statement_from_nodes(world.__get_object(), s, p, o);
  }
Пример #2
0
 public Statement(World world) {
   this.world = world;
   this.object = core.librdf_new_statement(world.__get_object());
 }