# Trouble with rdf:about

**URL:** <https://community.stardog.com/t/trouble-with-rdf-about/1534>\
**Category:** Support\
**Created:** [March 20, 2019, 8:40pm UTC](https://community.stardog.com/t/trouble-with-rdf-about/1534 "2019-03-20T20:40:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jj1234231](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@jj1234231](https://community.stardog.com/u/jj1234231)\
**Post date:** [March 20, 2019, 8:40pm UTC](https://community.stardog.com/t/trouble-with-rdf-about/1534/1 "2019-03-20T20:40:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)\
**Post date:** [March 21, 2019, 10:18am UTC](https://community.stardog.com/t/trouble-with-rdf-about/1534/2 "2019-03-21T10:18:24Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jj1234231](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@jj1234231](https://community.stardog.com/u/jj1234231)\
**Post date:** [March 21, 2019, 7:49pm UTC](https://community.stardog.com/t/trouble-with-rdf-about/1534/3 "2019-03-21T19:49:59Z")

</div>

\<?xml version="1.0"?\>

\<rdf:RDF

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

xmlns:ns3="[http://content.com/content.xml&quot](http://content.com/content.xml&quot);

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

xmlns:ns2="[http://content.com/meta.xml&quot](http://content.com/meta.xml&quot);

\>

\<rdf:Description rdf:about="[http://content.com/content.xmlEnvelope&quot;&gt](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

---

<div class="post-metadata">

**Author:** ![stephen](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/stephen/32/27_2.png) [@stephen](https://community.stardog.com/u/stephen)\
**Post date:** [March 21, 2019, 7:55pm UTC](https://community.stardog.com/t/trouble-with-rdf-about/1534/4 "2019-03-21T19:55:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jj1234231](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@jj1234231](https://community.stardog.com/u/jj1234231)\
**Post date:** [March 21, 2019, 7:57pm UTC](https://community.stardog.com/t/trouble-with-rdf-about/1534/5 "2019-03-21T19:57:01Z")

</div>

That is a CP error. Should be "

---

<div class="post-metadata">

**Author:** ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)\
**Post date:** [March 21, 2019, 10:34pm UTC](https://community.stardog.com/t/trouble-with-rdf-about/1534/6 "2019-03-21T22:34:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jj1234231](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@jj1234231](https://community.stardog.com/u/jj1234231)\
**Post date:** [March 22, 2019, 2:33pm UTC](https://community.stardog.com/t/trouble-with-rdf-about/1534/7 "2019-03-22T14:33:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [April 5, 2019, 2:33pm UTC](https://community.stardog.com/t/trouble-with-rdf-about/1534/8 "2019-04-05T14:33:25Z")

</div>

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