Trouble with rdf:about

Hello,

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.
-JJ

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:RDF

xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns&quot;

xmlns:ns3="http://content.com/content.xml&quot;

xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema&quot;

xmlns:ns2="http://content.com/meta.xml&quot;

>

<rdf:Description rdf:about="http://content.com/content.xmlEnvelope&quot;&gt;

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

</rdf:Description>

</rdf:RDF>

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

Thank you kindly,
JJ

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.