Hi Dave,

and thanks for the immediate response.

Mostly living in the world of markup I appear to have missed something important here.

Would you mind pointing me to a resource further refining your remark of

There is no such property as rdf:li.
?

As of now, I only know about the frequent examples using rdf:li with the rdf/xml serialization, in places like

https://www.w3.org/TR/1999/REC-rdf-syntax-19990222/#basic

http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/xmp/pdfs/XMP%20SDK%20Release%20cc-2014-12/XMPSpecificationPart1.pdf

So what am I obviously getting wrong here ?

Thanks for any enlightenment…

— Bardo



On 19.05.16 17.54 Uhr, Dave Reynolds wrote:
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



Reply via email to