[Mulgara-general] about insert blank nodes

Paul Gearon gearon at ieee.org
Mon Jul 16 16:32:01 UTC 2007


No, this is incorrect.  Blank node IDs have to be allocated
internally.  What you see printed (_node:123) is just a way of
serializing for human consumption.

See below for how this should be done:

On 7/16/07, Roberto Sidoti <rsidoti at fourthcodex.com> wrote:
> Hi all,
> is this the right tql command to insert a collection with just one item?
> I've some doubt about the "_blank_node".
> Thanks all
> roby
>
>
> insert ( < http://example.org/courses/6.001>
> <http://example.org/students/vocab#students>
> <http://www.w3.org/1999/02/22-rdf-syntax-ns#_blank_node >
> <http://www.w3.org/1999/02/22-rdf-syntax-ns#_blank_node>
> <http://www.w3.org/1999/02/22-rdf-syntax-ns#first >
> 'pippo'
>  <http://www.w3.org/1999/02/22-rdf-syntax-ns#_blank_node> <
> http://www.w3.org/1999/02/22-rdf-syntax-ns#rest>
> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil>
> ) into <rmi://localhost/server1#JCRModel-Test>;

To create a blank node, you can just use a variable.  So the above
insertion changes to the following (I'll use the rdf: namespace to
abbreviate_:

insert
  <http://example.org/courses/6.001>
<http://example.org/students/vocab#students> $blank
  $blank <rdf:first > 'pippo'
  $blank <rdf:rest> <rdf:nil>
 into <rmi://localhost/server1#JCRModel-Test>;


Regards,
Paul Gearon



More information about the Mulgara-general mailing list