Trouble with rdf:about


I'm working with an RDF/XML file that I cannot get to add to my Stardog database. When I try, the output is:

stardog data add aks2 aks.rdf
Adding data from file: aks.rdf
unexpected attribute 'rdf:about' [L9:21]

Not sure if there is a format tag I should be using here or if rdf:about simply isn't supported by Stardog?

Anyway, thanks.

It should support it just fine. Sometimes there is an issue with not being able to figure out the syntax type and you need to pass a flag to tell it the correct type to use but that doesn’t appear to be the case here. I’m guessing there is something wrong with the file. rdf:about is fine to use but it’s probably in the wrong place or there is an earlier error and it’s just failing there.

Can you post the file? I’ll see if I can spot the problem.

<?xml version="1.0"?>







<rdf:Description rdf:about="">

<ns3:display_name>Social Envelope</ns3:display_name>



I can't post the file itself, but this should be the same as the one causing the error.

Thank you kindly,

I'm not sure if it's a copy/paste error, but your ns2 seems to end with an &, which makes it an invalid namespace. It's also missing the end quote, but I'm 99% sure that discourse just ate it

That is a CP error. Should be "

Looks like your rdf and rdfs namespaces are missing the # at the end.

Thank you so much! It imported the triples correctly after fixing that.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.