specific SPARQL query with jena -


i use apache-jena 2.10.2 command-line tools , try insert data in graph:

tdbupdate --loc /users/graph  "insert data { <http://de.dbpedia.org/resource/mais>   <http://ch.ingredientmatching.graph/eaternitysynonym> 15 }" 

unfortunately doesn't add anything. if change in predicate, e.g. delete or change character, works. following works:

tdbupdate --loc /users/graph  "insert data { <http://de.dbpedia.org/resource/mais>   <http://ch.ingredientmatching.graph/eaternitysynonyn> 15 }" 

where changed last character: eaternitysynonym in eaternitysynonyn. see if worked, do:

tdbquery --loc /users/graph  "select * { <http://de.dbpedia.org/resource/mais> ?p ?o }" 

and if it's in output.

please tell me i'm doing wrong.

i tried reproduce problem describe, cannot. following console transcript shows creation of empty data file, creation of tdb store it, execution of update said didn't work, , execution of query asking triples, returns triple inserted.

$ tdbloader2 --loc graph data.n3   11:05:38 -- tdb bulk loader start  11:05:38 data phase info  load: data.n3 -- 2013/08/28 11:05:43 edt info  total: 0 tuples : 0.12 seconds : 0.00 tuples/sec [2013/08/28 11:05:43 edt]  11:05:43 index phase  11:05:43 index phase end  11:05:43 -- tdb bulk loader finish  11:05:43 -- 5 seconds $ tdbupdate --loc graph "insert data { <http://de.dbpedia.org/resource/mais>   <http://ch.ingredientmatching.graph/eaternitysynonym> 15 }" $ tdbquery --loc graph  "select * { <http://de.dbpedia.org/resource/mais> ?p ?o }" -------------------------------------------------------------- | p                                                     | o  | ============================================================== | <http://ch.ingredientmatching.graph/eaternitysynonym> | 15 | -------------------------------------------------------------- 

unless there's else in setup you're not describing, seems should work. above executed following versions of jena, arq, , tdb:

$ tdbquery --version jena:       version: 2.10.1 jena:       build_date: 2013-05-11t22:05:51+0100 arq:        version: 2.10.1 arq:        build_date: 2013-05-11t22:05:51+0100 riot:       version: 2.10.1 riot:       build_date: 2013-05-11t22:05:51+0100 tdb:        version: 0.10.1 tdb:        build_date: 2013-05-11t22:05:51+0100 

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -