# Loading error with invalid URI

**URL:** <https://community.stardog.com/t/loading-error-with-invalid-uri/3627>\
**Category:** Support\
**Created:** [March 20, 2022, 4:41pm UTC](https://community.stardog.com/t/loading-error-with-invalid-uri/3627 "2022-03-20T16:41:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gatemezing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/gatemezing/32/177_2.png) [@gatemezing](https://community.stardog.com/u/gatemezing)\
**Post date:** [March 20, 2022, 4:41pm UTC](https://community.stardog.com/t/loading-error-with-invalid-uri/3627/1 "2022-03-20T16:41:24Z")

</div>

Hi all,  
I'm trying to load somehow Billion NQUADS to Stardog (the latest version running on Ubuntu).  
I've set the Stardog server with strict.parsing=false. I want to skip errors during loading time.  
However, I just got there error:  
"`There was a fatal failure during preparation of 1706d549-142f-49eb-9b4f-717286541a60 com.stardog.stark.io.InvalidRDF: No separator character found in the URI: iri_id_371642758_with_no_name_entry "`

Is it possible to solve skip this issue and continue the loading process?  
TIA  
Best,  
Ghislain

---

<div class="post-metadata">

**Author:** ![evren](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/evren/32/1515_2.png) [@evren](https://community.stardog.com/u/evren)\
**Post date:** [March 22, 2022, 1:03am UTC](https://community.stardog.com/t/loading-error-with-invalid-uri/3627/2 "2022-03-22T01:03:16Z")

</div>

Just to close the loop on this for others reading the forum, the `strict.parsing` should be set as a database option and setting it inside `stardog.properties` does not have an impact.

Best,  
Evren

---

<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:** [March 22, 2022, 2:26pm UTC](https://community.stardog.com/t/loading-error-with-invalid-uri/3627/3 "2022-03-22T14:26:57Z")

</div>

I was under the impression that `strict.parsing` only applied to literals. Does it apply to IRI's as well?

You could use the rapper parser from the redland library to loop over each line of your NQUADS with a bash script and parse it as though it was a NQUAD with a single triple, then dump the bad ones to the file and optionally include the line number. Raptor would allow you to avoid the JVM start up for each QUAD. I don't know how long it would take for a billion but you could easily parallelize it by breaking it into chunks of 1m.

---

<div class="post-metadata">

**Author:** ![gatemezing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/gatemezing/32/177_2.png) [@gatemezing](https://community.stardog.com/u/gatemezing)\
**Post date:** [March 23, 2022, 9:50am UTC](https://community.stardog.com/t/loading-error-with-invalid-uri/3627/4 "2022-03-23T09:50:20Z")

</div>

I confirm that the solution proposed by Evrin solved my issues. Indeed, there were also ill IRI's in the input files. Thanks.

---

<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:** [April 6, 2022, 9:50am UTC](https://community.stardog.com/t/loading-error-with-invalid-uri/3627/5 "2022-04-06T09:50:47Z")

</div>

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