Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you take this to the sparql.org's <a href="http://sparql.org/update-validator.html" rel="nofollow">SPARQL update validator</a>, it will tell you immediately that this is wrong, and where the syntax error is:</p> <blockquote> <h3>Input:</h3> <pre class="lang-none prettyprint-override"><code> 1 PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; 2 PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; 3 PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt; 4 PREFIX owl: &lt;http://www.w3.org/2002/07/owl#&gt; 5 PREFIX fn: &lt;http://www.w3.org/2005/xpath-functions#&gt; 6 PREFIX apf: &lt;http://jena.hpl.hp.com/ARQ/property#&gt; 7 8 PREFIX dbpedia: &lt;http://dbpedia.org/resource/&gt; 9 Insert Data Into GRAPH &lt;test&gt; { 10 &lt;http://dbpedia.org/resource/life&gt; &lt;http://umbel.org/umbel/rc/Artist&gt; '2'^^xsd:integer . 11 } </code></pre> <h3>Syntax error:</h3> <pre class="lang-none prettyprint-override"><code>Encountered " "into" "Into "" at line 9, column 13. Was expecting: "{" ... </code></pre> </blockquote> <p>Of course, to find out how to do what you're trying to do, you'll need to look to the spec. The <a href="http://www.w3.org/TR/sparql11-update/#insert" rel="nofollow">SPARQL 1.1 Update</a> is the place to look, and while I'd advise you to skim through that to get a good idea of what's in there, one example will be enough to show what you need to write:</p> <blockquote> <h3>Example 2:</h3> <p>This SPARQL 1.1 Update request adds a triple to provide the price of a book. As opposed to the previous example, which affected the default graph, the requested change happens in the named graph identified by the IRI <code>http://example/bookStore</code>.</p> <pre class="lang-none prettyprint-override"><code>PREFIX dc: &lt;http://purl.org/dc/elements/1.1/&gt; PREFIX ns: &lt;http://example.org/ns#&gt; INSERT DATA { GRAPH &lt;http://example/bookStore&gt; { &lt;http://example/book1&gt; ns:price 42 } } </code></pre> </blockquote> <p>Your query needs to be </p> <pre class="lang-none prettyprint-override"><code>PREFIX dbpedia: &lt;http://dbpedia.org/resource/&gt; Insert Data { GRAPH &lt;test&gt; { &lt;http://dbpedia.org/resource/life&gt; &lt;http://umbel.org/umbel/rc/Artist&gt; '2'^^xsd:integer . } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload