Hi,
There is no such property as rdf:li. That's a bit syntactic trickery in
RDF/XML - such data is actually stored using properties rdf:_1 rdf:_2
and so on (container membership properties). So to assert a new member
of a Bag via SPARQL you have to first find an unused rdf:_N and then
insert that.
I don't know what exception you are getting but if you try to serialize
to RDF/XML then the writer will probably complain about misuse of the
RDF namespace.
Containers in RDF are a pain.
Dave
On 19/05/16 15:37, Bardo Nelgen wrote:
Hi all,
sorry to come across with such basic question, but I just tried to add
an ordinary list-item to an existing rdf:Bag using
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
INSERT{<http://resources.semaworx.eu/inventory/Tokenz/OneWay/all>rdf:li
"theToken".}
WHERE{<http://resources.semaworx.eu/inventory/Tokenz/OneWay/all>rdf:type
rdf:Bag.}
which the validator says is all valid SPARQL.
Running the query against the datamodel in Fuseki, of course, returns
"Success".
However, when trying to read the result from the graph, Fuseki gives me a
Error 500: Exception while writing the response model: rdf:li
Fuseki - version 1.0.1-SNAPSHOT (Build date: 2013-09-12T13:45:52+0100)
What does this tell me ?
The graph has been absolutely intact before executing the above query.
I am sure, it’s damn simple – but for now I just don’t get it.
As always, thanks a lot for any input.
Regards,
Bardo