question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expected behavior

According to this page https://github.com/CLARIAH/grlc/wiki/Features : “INSERT DATA queries are now mapped automatically to POST requests. Support is limited to queries with no WHERE clause, and parameters are always expected to be values for g (named graph where to insert the data) and data (with the triples to insert, in ntriples format). The INSERT query pattern is so far static, as defined in static.py. Only tested with Virtuoso.”

Actual behavior

image

Steps to reproduce the behavior

In a github repo file named my_insert.rq, I wrote this query:

#+ summary: test insert
#+ endpoint: http://127.0.0.1:8890/sparql
#+ tags:
#+   - SPARQL
#+ method: POST

PREFIX ex: <http://example.org/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>

INSERT DATA {
    GRAPH ex:myGraph {
        ex:ali foaf:name "Alice" .
        ex:bob foaf:name "Bob" .
    }
}

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:11

github_iconTop GitHub Comments

1reaction
c-martinezcommented, Jul 20, 2022

Hi @MiharyR,

Sorry for the delay in getting back to you – could you get in touch with me via email (c.martinez@esciencecenter.nl) so I can propose dates and setup a meeting?

1reaction
c-martinezcommented, Jul 12, 2022

Hi @MiharyR,

I know what you mean – grlc has quite a bit of code which could be cleaned up. Perhaps you could join one of our developer meetings (with @albertmeronyo and me) and we could discuss how to integrate your code?

Read more comments on GitHub >

github_iconTop Results From Across the Web

SQL INSERT INTO Statement - W3Schools
It is possible to write the INSERT INTO statement in two ways: 1. Specify both the column names and the values to be...
Read more >
Insert Data into Tables in SQL Server - TutorialsTeacher
The INSERT INTO statement is used to insert single or multiple records into a table in the SQL Server database.
Read more >
SQL - INSERT Query - Tutorialspoint
The SQL INSERT INTO Statement is used to add new rows of data to a table in the database. Syntax. There are two...
Read more >
How To Insert Data in SQL | DigitalOcean
In this guide, we'll go over how to use SQL's INSERT INTO syntax to add data to tables with each of these methods....
Read more >
Learn SQL: INSERT INTO TABLE - SQLShack
SQL INSERT INTO statement is one of the “big 4” in databases, next to SELECT, UPDATE, and DELETE.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found