loading a big file to a new DB

1 view
Skip to first unread message

Rui Li

unread,
Jul 14, 2015, 1:14:42 PM7/14/15
to sta...@clarkparsia.com
hi, 

I am new to stardog. It's an awesome product. But I am tumbling a little. 

I have put my ontology into an RDF owl file and tried to use the following command to load them to DB (with Stardog community version). 

stardog-admin.bat db create -n myDB RDF.owl. 

Then it complained that I have too many entities in the file. Error message is:

Errors were encountered during loading:
File: D:\_SHARED\WORKSPACE\TOOLS\WORK\stardog-3.1\bin\..\examples\data\RDF.owl Message: The parser has encountered more than "64,000" entity
expansions in this document; this is the limit imposed by the application. [line 1, column 1]

The documentation says that the community version supports up to 25M triples in one DB. My ontology has far less triples than that limit. I am wondering what's my alternative to load the whole ontology?

Thanks!

Rui

Michael Grove

unread,
Jul 14, 2015, 1:18:35 PM7/14/15
to stardog
On Tue, Jul 14, 2015 at 1:14 PM, Rui Li <rui...@gmail.com> wrote:
hi, 

I am new to stardog. It's an awesome product. But I am tumbling a little. 

I have put my ontology into an RDF owl file and tried to use the following command to load them to DB (with Stardog community version). 

stardog-admin.bat db create -n myDB RDF.owl. 

Then it complained that I have too many entities in the file. Error message is:

Errors were encountered during loading:
File: D:\_SHARED\WORKSPACE\TOOLS\WORK\stardog-3.1\bin\..\examples\data\RDF.owl Message: The parser has encountered more than "64,000" entity
expansions in this document; this is the limit imposed by the application. [line 1, column 1]

You might find this previous post [1] on the list helpful. 

Cheers,

Mike 

 

The documentation says that the community version supports up to 25M triples in one DB. My ontology has far less triples than that limit. I am wondering what's my alternative to load the whole ontology?

Thanks!

Rui

--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en

Rui Li

unread,
Jul 14, 2015, 1:46:41 PM7/14/15
to sta...@clarkparsia.com
Mike:

Thanks! This is exactly the same problem I have. The solution looks straight forward too. But I can't find either jdk.xml or jaxp.properties in my java lib folder (C:\Program Files\Java\jdk1.6.0_26). 

Rui.


From: Michael Grove <mi...@complexible.com>
To: stardog <sta...@clarkparsia.com>
Sent: Tuesday, July 14, 2015 10:18 AM
Subject: Re: [stardog-users] loading a big file to a new DB

To unsubscribe from this group and stop receiving emails from it, send an email to stardog+u...@clarkparsia.com.


Michael Grove

unread,
Jul 14, 2015, 1:52:39 PM7/14/15
to stardog
On Tue, Jul 14, 2015 at 1:43 PM, 'Rui Li' via Stardog <sta...@clarkparsia.com> wrote:
Mike:

Thanks! This is exactly the same problem I have. The solution looks straight forward too. But I can't find either jdk.xml or jaxp.properties in my java lib folder (C:\Program Files\Java\jdk1.6.0_26). 

You could try the JVM argument as the post I reference suggests.

Cheers,

Mike

Rui Li

unread,
Jul 14, 2015, 3:05:00 PM7/14/15
to sta...@clarkparsia.com
Got it. I modified stardog-admin.bat and it works! Thanks a lot, Mike! (I am on Windows)

if "%STARDOG_JAVA_ARGS%"=="" set STARDOG_JAVA_ARGS=-Xmx2g -Xms2g -XX:MaxDirectMemorySize=1g -Dfile.encoding=UTF-8 -DentityExpansionLimit=1000000



From: Michael Grove <mi...@complexible.com>
To: stardog <sta...@clarkparsia.com>
Sent: Tuesday, July 14, 2015 10:52 AM
Reply all
Reply to author
Forward
0 new messages