Zachary,
There is an error in your command. When you wrap all bindings between
a single pair of quotations it is interpreted as a single binding. See
the explain output:
$ sstaridg query explain -b name="\"Eeee\"
-- test query.sparql
Explaining Query:
prefix ex:<
http://ex.com/> INSERT { ?idd a ?type, owl:NamedIndividual .
?idd ex:name ?newname .
?idd rdfs:label ?newname .
}
WHERE { BIND(?id AS ?idd)
BIND(?classiri AS ?type)
BIND(?name AS ?newname)
}
# Overrides by the API:
# PARAMETERS ( ?name ) {
# "Eeee"
# }
Since parameters are not bound nothing is inserted but this is still a
successful operation because there were no errors. Use quotations to
escape characters that would otherwise be executed by the shell. The
following version works fine and updates the database:
$ stardog query explain -b name=\"Eeee\"
id="<
http://ex.com/d#document_970>"
classiri="<
http://ex.com/d#Document>" -- test query.sparql
prefix ex:<
http://ex.com/> INSERT { ?idd a ?type, owl:NamedIndividual .
?idd ex:name ?newname .
?idd rdfs:label ?newname .
}
WHERE { BIND(?id AS ?idd)
BIND(?classiri AS ?type)
BIND(?name AS ?newname)
}
# Overrides by the API:
# PARAMETERS ( ?name ?id ?classiri ) {
# "Eeee"
# <
http://ex.com/d#document_970>
# <
http://ex.com/d#Document>
# }
BTW, I didn't mean the typo in the URL would cause the query to fail
but would insert different triples than expected so one might think
database is not updated.
Best,
Evren