Need to insert mulitple triples using javascript

2 views
Skip to first unread message

Yash Rawat

unread,
Feb 11, 2017, 12:44:06 PM2/11/17
to Stardog
Hi,

I have a result of multiple triples stored in a javascript variable need to know, how I can insert them in one go to my Stardog database. Please provide your help as it is a bit difficult.

Thanks in advance,
Yashpal

Yash Rawat

unread,
Feb 11, 2017, 2:07:53 PM2/11/17
to Stardog
Hi,

I am trying to add following triple for which following is the code in my javascript file:-

const  triple = "<http://example/book1>  ns:price  42";

conn.query({
database: "fibo",
query: `insert data {'${triple}'}`,
limit: 10,
offset: 0
},

and I am getting this error :

Data block for update operation could not be parsed: Illegal subject value: ""^^<http://www.w3.org/2001/XMLSchema#string>


Please provide your valuable suggestion.

Kind Regards,
Yashpal Singh

Stephen Nowell

unread,
Feb 13, 2017, 8:22:48 AM2/13/17
to sta...@clarkparsia.com
Hi Yashpal,

We are in the process of migrating our mailing list support over to community.stardog.com. I have created topics for each of your issues over there:

https://community.stardog.com/t/need-to-insert-mulitple-triples-using-javascript/103
https://community.stardog.com/t/error-on-triple-insert-in-js/104

Any future replies will be on those threads.

Cheers,
Stephen


On 2/11/17 14:07, Yash Rawat wrote:
Hi,

I am trying to add following triple for which following is the code in my javascript file:-

const  triple = "<http://example/book1>  ns:price  42";

          
conn.query({
               database: "fibo",
                  query: `insert data {'${triple}'}`,
               limit: 10,
               offset: 0
            },
and I am getting this error :
Data block for update operation could not be parsed: Illegal subject value: ""^^<http://www.w3.org/2001/XMLSchema#string>


Please provide your valuable suggestion.

Kind Regards,
Yashpal Singh

On Saturday, February 11, 2017 at 5:44:06 PM UTC, Yash Rawat wrote:
Hi,

I have a result of multiple triples stored in a javascript variable need to know, how I can insert them in one go to my Stardog database. Please provide your help as it is a bit difficult.

Thanks in advance,
Yashpal
--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en

Reply all
Reply to author
Forward
0 new messages