This is a public chat log generated from the #semsol IRC channel.
14:26:02
when inserting a statement with a bnode subject, is this the only way to do it?
14:26:04
$q = $prefixes."INSERT INTO <$rdf_graph_uri>
14:26:06
{ ?person foaf:name '$new_name' . }
14:26:07
WHERE {
14:26:08
?person a foaf:Person .
14:26:10
FILTER(?person = <$id>)
14:26:12
}"
14:27:06
I tried $q = $prefixes."INSERT INTO <$rdf_graph_uri> { <$id> foaf:name '$new_name' . }", with keep_bnodes_id, but that created a new bnode instead of using <$id>
14:28:31
you want to get to say what id the bnode has?
14:28:56
oh sure :)
14:28:58
_:b1714080734_663447_bn1
14:29:04
i get it from a previous query
14:57:47
I think bnode inserts only work with explicit values, not bindings, i.e. you can do INSERT ... <_:bn1> but not INSERT ... ?bn_binding
14:57:52
sorry, gotta run
15:14:21
ah ok. i'm interetsed in the answer then :)
15:47:07
for me, using the explicit value didn't work, even if i set keep_bnodes_id true. I had to use the binding with a filter, for it to keep the same bnode
