# I'm new to Stardog, Add data and ontologies

**URL:** <https://community.stardog.com/t/im-new-to-stardog-add-data-and-ontologies/470>\
**Category:** Support\
**Created:** [July 19, 2017, 4:50pm UTC](https://community.stardog.com/t/im-new-to-stardog-add-data-and-ontologies/470 "2017-07-19T16:50:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruthywitty2](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@ruthywitty2](https://community.stardog.com/u/ruthywitty2)\
**Post date:** [July 19, 2017, 4:50pm UTC](https://community.stardog.com/t/im-new-to-stardog-add-data-and-ontologies/470/1 "2017-07-19T16:50:03Z")

</div>

Hello everyone,

I’m new to Stardog.

I have a myDb.ttl data file which I wish to add to my database as well as my v5\_ql.owl ontology.  
I need help

I tried adding the files like this:

./stardog-admin db create -n myDb /data/myDb.ttl  
./stardog data add --named-graph myDb /data/v5\_ql.owl  
./stardog-admin db offline myDb  
./stardog-admin metadata set -o reasoning.schema.graphs=tag:stardog:api:context:all myDb  
./stardog-admin db online myDb

I also changed reasoning type to QL on the admin web console. The thing is every time I run a query with reasoning turned On and OFF, I get the same number of tuples. I’m expecting different number when reasoning is ON. I believe I’m not adding the ontology properly.

Please I need your suggestion.

---

<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:** [July 19, 2017, 5:10pm UTC](https://community.stardog.com/t/im-new-to-stardog-add-data-and-ontologies/470/2 "2017-07-19T17:10:11Z")

</div>

Welcome to Stardog.

tag:stardog:api:context:all is the default value for reasoning.schema.graphs so you shouldn’t need to do that but it would be ok if you did.

When adding your ontology it looks like you’re omitting the named graph. I’m not sure exactly what it’s going to do as a result. I’d guess that it’s going to think that myDb is the name of the graph and /data/v5\_ql.owl is the db name and complain that you didn’t supply a data file and fail. The command should be something along the lines of

`./stardog data add --named-graph myNamedGraph myDb /data/v5_ql.owl`

If that doesn’t fix things up can you share your data, ontology, and query?

---

<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:** [August 2, 2017, 5:10pm UTC](https://community.stardog.com/t/im-new-to-stardog-add-data-and-ontologies/470/3 "2017-08-02T17:10:21Z")

</div>

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