# Debugging data inconsistencies

**URL:** <https://community.stardog.com/t/debugging-data-inconsistencies/853>\
**Category:** Support\
**Created:** [March 8, 2018, 2:13pm UTC](https://community.stardog.com/t/debugging-data-inconsistencies/853 "2018-03-08T14:13:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alegrm](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/alegrm/32/185_2.png) [@alegrm](https://community.stardog.com/u/alegrm)\
**Post date:** [March 8, 2018, 2:13pm UTC](https://community.stardog.com/t/debugging-data-inconsistencies/853/1 "2018-03-08T14:13:13Z")

</div>

Hi,  
I'm trying to see what are the inconsistencies on my data being inserted to database.  
The steps I do are:

1. create a myDb with the reasoning.schema.graphs=[http://ex.org/ontology](http://ex.org/ontology)
2. I add the ontology to that graph
3. I test consistency via command line: stardog reasoning consistency myDb
4. I add some triples to a different graph ([http://ex.org/data](http://ex.org/data))
5. I test consistency with the --named-graph parameter, and I get The database is NOT consistent.  
My question, is there a way to check what triples were inconsistent? I checked the stardog.log, but there is nothing there.  
Thanks in advance.

---

<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 8, 2018, 2:30pm UTC](https://community.stardog.com/t/debugging-data-inconsistencies/853/2 "2018-03-08T14:30:47Z")

</div>

Hi, you can ask Stardog to explain the inconsistency for you via `stardog reasoning explain -i myDb`

---

<div class="post-metadata">

**Author:** ![alegrm](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/alegrm/32/185_2.png) [@alegrm](https://community.stardog.com/u/alegrm)\
**Post date:** [March 9, 2018, 9:21am UTC](https://community.stardog.com/t/debugging-data-inconsistencies/853/3 "2018-03-09T09:21:04Z")

</div>

Thanks! that provided me the inconsistent values 🙂  
I did tried before without the -i.

---

<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:** [March 23, 2018, 9:21am UTC](https://community.stardog.com/t/debugging-data-inconsistencies/853/4 "2018-03-23T09:21:19Z")

</div>

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