Does anyone know if there is a way to get do something like this in TDB:

Property p = ResourceFactory.createProperty("http://example/Foo";);
dataset.begin( ReadWrite.WRITE )

QueryExecution qe = QueryExecutionFactory.create(
QueryFactory.create( "select ?x { .... query here .... }"), dataset );

ResultSet rs = qe.execSelect();

while (rs.hasNext())
{
    rs.next().getResource("x").addLiteral( p, "Does not work" );
}

dataset.commit();

Basically, I want to get an iterator on a set of nodes and then add some
properties to them.

In my code I get:
Exception in thread "main" java.util.ConcurrentModificationException:
Iterator: started at 5, now 10

Claude

-- 
I like: Like Like - The likeliest place on the web
<http://like-like.xenei.com>
LinkedIn: http://www.linkedin.com/in/claudewarren

Reply via email to