# EOF error in the code

**URL:** <https://community.stardog.com/t/eof-error-in-the-code/2799>\
**Category:** Stardog Studio\
**Created:** [November 19, 2020, 11:30am UTC](https://community.stardog.com/t/eof-error-in-the-code/2799 "2020-11-19T11:30:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vivek\_Srivastava](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/vivek_srivastava/32/841_2.png) [@Vivek\_Srivastava](https://community.stardog.com/u/Vivek_Srivastava)\
**Post date:** [November 19, 2020, 11:30am UTC](https://community.stardog.com/t/eof-error-in-the-code/2799/1 "2020-11-19T11:30:20Z")

</div>

I am trying to create virtual graph, using below code.

```auto
PREFIX : <http://api.stardog.com/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX stardog: <tag:stardog:api:>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX sm: <tag:stardog:api:mapping:>

:Conf{confid} a :Conf ;
           :name "{name}" ;
           sm:map [sm:table "conferences"] .

```

this file is not getting saved with error Expected EOF. .

Please let me know where i am doing wrong

---

<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:** [November 19, 2020, 2:26pm UTC](https://community.stardog.com/t/eof-error-in-the-code/2799/2 "2020-11-19T14:26:04Z")

</div>

Are you using the CLI or Studio? If the CLI what command are you running? I'll have to check but I'm not sure if `Conf{confid}` is valid. You might have to do the string concatenation in sql and make it something like `:{myconfid}`

You may want to consider using SMS2 rather than SMS.

---

<div class="post-metadata">

**Author:** ![Vivek\_Srivastava](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/vivek_srivastava/32/841_2.png) [@Vivek\_Srivastava](https://community.stardog.com/u/Vivek_Srivastava)\
**Post date:** [November 19, 2020, 2:41pm UTC](https://community.stardog.com/t/eof-error-in-the-code/2799/3 "2020-11-19T14:41:43Z")

</div>

Thanks for your reply .  
I am using Studio.  
I took reference from [https://www.stardog.com/tutorials/data-mappings/](https://www.stardog.com/tutorials/data-mappings/)  
The name of my table is conferences and it has columns as confid and name.

Please provide me more details of SMS2 and SMS.  
My requirement is to build ETL , however I am new to RDF and very much familiar to LPG

---

<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:** [November 20, 2020, 2:26pm UTC](https://community.stardog.com/t/eof-error-in-the-code/2799/4 "2020-11-20T14:26:21Z")

</div>

You can find information on SMS/SMS2 at [Home | Stardog Documentation Latest](https://www.stardog.com/docs/#_structured_data_virtual_graphs) in the docs.

Can you see if there are any errors or warnings in stardog.log. You may get some better information about what exactly is going on here. Sounds like some parse problem. It could be trying to parse the file as the wrong type sms vs sms2 vs r2rml.
