# How to Import CSV with SMS2 using HTTP POST call?

**URL:** <https://community.stardog.com/t/how-to-import-csv-with-sms2-using-http-post-call/2425>\
**Category:** Support\
**Created:** [May 8, 2020, 8:41pm UTC](https://community.stardog.com/t/how-to-import-csv-with-sms2-using-http-post-call/2425 "2020-05-08T20:41:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![R3000](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/r3000/32/358_2.png) [@R3000](https://community.stardog.com/u/R3000)\
**Post date:** [May 8, 2020, 8:41pm UTC](https://community.stardog.com/t/how-to-import-csv-with-sms2-using-http-post-call/2425/1 "2020-05-08T20:41:45Z")

</div>

I believe I may have asked this question already in a slightly different context ...

Can you please point me to the right documentation?

Regards,  
Radu

---

<div class="post-metadata">

**Author:** ![jess](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/jess/32/10_2.png) [@jess](https://community.stardog.com/u/jess)\
**Post date:** [May 8, 2020, 8:43pm UTC](https://community.stardog.com/t/how-to-import-csv-with-sms2-using-http-post-call/2425/2 "2020-05-08T20:43:59Z")

</div>

It's the same as JSON, but you should set `input_file_type=DELIMITED`.

---

<div class="post-metadata">

**Author:** ![R3000](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/r3000/32/358_2.png) [@R3000](https://community.stardog.com/u/R3000)\
**Post date:** [May 8, 2020, 8:52pm UTC](https://community.stardog.com/t/how-to-import-csv-with-sms2-using-http-post-call/2425/3 "2020-05-08T20:52:28Z")

</div>

Hope you don't mind Jess - can you please provide an example?

P.S. I don't make these calls everyday ... but a reference example goes a long way 😉

Thank you,  
Radu

---

<div class="post-metadata">

**Author:** ![jess](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/jess/32/10_2.png) [@jess](https://community.stardog.com/u/jess)\
**Post date:** [May 8, 2020, 8:55pm UTC](https://community.stardog.com/t/how-to-import-csv-with-sms2-using-http-post-call/2425/4 "2020-05-08T20:55:17Z")

</div>

Please check here:

> [@Load json into a materialized graph via HTTP POST - possible?](https://community.stardog.com/t/load-json-into-a-materialized-graph-via-http-post-possible/1930/17):
>
> Radu, This is supported in Stardog 7.1.2. You can now import JSON and CSV files using SMS2 mappings with the HTTP API. Here is how it might be used from the command line with cURL: curl -u admin:admin -F "database=foo" \ -F "mappings=\<mappings.sms" \ -F "input\_file\_type=JSON" \ -F named\_graph=urn:ng \ -F "input\_file=\<data\_file.json" \ http://localhost:5820/admin/virtual\_graphs/import

---

<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 22, 2020, 8:55pm UTC](https://community.stardog.com/t/how-to-import-csv-with-sms2-using-http-post-call/2425/5 "2020-05-22T20:55:23Z")

</div>

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