# XML Data into Stardog

**URL:** <https://community.stardog.com/t/xml-data-into-stardog/3010>\
**Category:** Support\
**Created:** [April 28, 2021, 12:13pm UTC](https://community.stardog.com/t/xml-data-into-stardog/3010 "2021-04-28T12:13:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jiteshjosh](https://avatars.discourse-cdn.com/v4/letter/j/b487fb/32.png) [@jiteshjosh](https://community.stardog.com/u/jiteshjosh)\
**Post date:** [April 28, 2021, 12:13pm UTC](https://community.stardog.com/t/xml-data-into-stardog/3010/1 "2021-04-28T12:13:17Z")

</div>

Hi, I am new to Stardog and learning these days different features of Stardog. Now I want to do some experiment with it. So I have following plan :  
I have XMLs, having same format.  
I want to define KG (Data Model or Schema) for those.  
Then I want to load all those XMLs data into Stardog.  
Can someone please help from where I have to start this? I mean any documentation or guidance?

I have Stardog on my windows machine already up and running. Also I can connect my local Stardog with Studio. Thanks.

---

<div class="post-metadata">

**Author:** ![jiteshjosh](https://avatars.discourse-cdn.com/v4/letter/j/b487fb/32.png) [@jiteshjosh](https://community.stardog.com/u/jiteshjosh)\
**Post date:** [May 1, 2021, 1:26pm UTC](https://community.stardog.com/t/xml-data-into-stardog/3010/2 "2021-05-01T13:26:57Z")

</div>

Ok, Based on XML files, I generated OWL Ontology for XML file and imported the model into Stardog. However, now I want to load the data into this model from source XML file. Now I don't have any idea how to do it. I tried a lot of things like convert XML to RDF first and load into Stardog but it didn't work (also not a nice approach). So if someone can help to load the data now from XML to stardog.

---

<div class="post-metadata">

**Author:** ![tim\_duval1](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/tim_duval1/32/968_2.png) [@tim\_duval1](https://community.stardog.com/u/tim_duval1)\
**Post date:** [May 1, 2021, 1:57pm UTC](https://community.stardog.com/t/xml-data-into-stardog/3010/3 "2021-05-01T13:57:35Z")

</div>

I have had the same question.

[Would you consider a simple pre-process transform of your XML to JSON](https://www.stardog.com/platform/connectors/json/)?

That’s the route I plan to go down unless I get guidance otherwise.

It does state on [db-engines.com](http://db-engines.com) (see image below) page for SD that it supports the import of XML yet, like you, I have found no documentation outlining how.

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/1X/8c4fc0e2af2ec5fe3be89b2e6c6715ce82fc5396.jpeg)

---

<div class="post-metadata">

**Author:** ![arwesterinen](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/arwesterinen/32/40_2.png) [@arwesterinen](https://community.stardog.com/u/arwesterinen)\
**Post date:** [May 1, 2021, 9:13pm UTC](https://community.stardog.com/t/xml-data-into-stardog/3010/4 "2021-05-01T21:13:57Z")

</div>

What file extension did you use for the OWL/RDF XML?

SD figures out the format by the extension. Did you use .owl or .rdf?

Andrea

---

<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:** [May 15, 2021, 9:14pm UTC](https://community.stardog.com/t/xml-data-into-stardog/3010/5 "2021-05-15T21:14:36Z")

</div>

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