[Owlim-discussion] Problem with OWLIM, Sesame, Tomcat
Hello, I am having a problem when I try to create an OWLIM repository using openrdf-workbench. The repository looks like it is created (i.e. it appears in the list for repositories in workbench) but when i try to access "Namespaces" for example I get the following error from Tomcat: java.lang.IllegalStateException: Connection factory has been shutdown. org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManager.java:463) org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnectionManager.java:416) org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:153) org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) org.openrdf.http.client.HTTPClient.getTupleQueryResult(HTTPClient.java:1099) org.openrdf.http.client.HTTPClient.getNamespaces(HTTPClient.java:906) org.openrdf.http.client.HTTPClient.getNamespaces(HTTPClient.java:887) org.openrdf.repository.http.HTTPRepositoryConnection.getNamespaces(HTTPRepositoryConnection.java:420) org.openrdf.workbench.commands.NamespacesServlet.service(NamespacesServlet.java:48) org.openrdf.workbench.base.TransformationServlet.service(TransformationServlet.java:94) org.openrdf.workbench.base.TransformationServlet.service(TransformationServlet.java:73) org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40) org.openrdf.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryServlet.java:93) org.openrdf.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:131) org.openrdf.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:90) org.openrdf.workbench.proxy.WorkbenchGateway.service(WorkbenchGateway.java:109) org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40) org.openrdf.workbench.proxy.CookieCacheControlFilter.doFilter(CookieCacheControlFilter.java:52) Could you please help me on this? What I have done is: - Copied owlim-lite-4.3.jar in WEB-INF\lib folder of both openrdf-workbench and openrdf-sesame - Copied owlim.ttl to openrdf-workbench\WEB-INF\lib\org\openrdf\console - Copied create-owlim.xsl to openrdf-workbench\transformations - Accessed http://localhost:8080/openrdf-workbench/repositories/NONE/create?type=owlim in order to create the repository The owlim.ttl and create-owlim.xsl were copied from http://www.mail-archive.com/owlim-discussion@ontotext.com/msg00411.html I am using Tomcat 6.0.29, Java JDK 1.6.0.29, sesame 2.6.3, owlimlite 4.3 What I eventually want to do is create an owlim repository using a custom rule set. Thank you, Babis ___ Owlim-discussion mailing list Owlim-discussion@ontotext.com http://ontomail.semdata.org/cgi-bin/mailman/listinfo/owlim-discussion
Re: [Owlim-discussion] Problem with OWLIM, Sesame, Tomcat
Hi, if you don't need to do it through workbench I suggest far easier way to create custom ruleset. My solution is connected to windows... windows 7 64bit 1. Deploytwo official war-files included in owlim distribution .zip file (in folder /sesame_owlim ) by copying them into webapps directory in Tomcat (make sure you delete your previous attempt described in your mail) 2. Unpack console.zip (also in folder /sesame_owlim in zip file) 3. Run console through console.bat(or .sh depends on your OS) (.../openrdf-sesame-console/bin/console.bat) 4. Your first command in console should be : connect http://localhost:8080/openrdf-sesame. 5. Then try whether other repositories already exist by command : show r. a) it there exists repository with the same name you want to create run command : drop nameOfYourRepository. 6. Copy your .ttl file into C:/Users/YourAccountName/AppData/Roaming/Aduna/OpenRDF sesame console/templates/ (notice : folder /AppData is in windows normally hidden) 7. Open console and run command (dont forget to run step 4 - connect to localhost) create nameOfYourRepository. Notice : nameOfYourRepository should be equal to name of your .ttl file which you should copy into .../templates folder (see step 6) Notice : every command in console should end with dot (.) After these steps you will see your repository also in workbench but it will have your custom ruleset specified in your .ttl file and no error should occur. Workbench will normally interact with such repository, so dont worry about it :). Hope it helps, Marek From: Babis Doulaverakis To: Ontotext Sent: Thursday, 5 April 2012, 12:50 Subject: [Owlim-discussion] Problem with OWLIM, Sesame, Tomcat Hello, I am having a problem when I try to create an OWLIM repository using openrdf-workbench. The repository looks like it is created (i.e. it appears in the list for repositories in workbench) but when i try to access "Namespaces" for example I get the following error from Tomcat: java.lang.IllegalStateException: Connection factory has been shutdown. org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManager.java:463) org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnectionManager.java:416) org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:153) org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) org.openrdf.http.client.HTTPClient.getTupleQueryResult(HTTPClient.java:1099) org.openrdf.http.client.HTTPClient.getNamespaces(HTTPClient.java:906) org.openrdf.http.client.HTTPClient.getNamespaces(HTTPClient.java:887) org.openrdf.repository.http.HTTPRepositoryConnection.getNamespaces(HTTPRepositoryConnection.java:420) org.openrdf.workbench.commands.NamespacesServlet.service(NamespacesServlet.java:48) org.openrdf.workbench.base.TransformationServlet.service(TransformationServlet.java:94) org.openrdf.workbench.base.TransformationServlet.service(TransformationServlet.java:73) org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40) org.openrdf.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryServlet.java:93) org.openrdf.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:131) org.openrdf.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:90) org.openrdf.workbench.proxy.WorkbenchGateway.service(WorkbenchGateway.java:109) org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40) org.openrdf.workbench.proxy.CookieCacheControlFilter.doFilter(CookieCacheControlFilter.java:52) Could you please help me on this? What I have done is: - Copied owlim-lite-4.3.jar in WEB-INF\lib folder of both openrdf-workbench and openrdf-sesame - Copied owlim.ttl to openrdf-workbench\WEB-INF\lib\org\openrdf\console - Copied create-owlim.xsl to openrdf-workbench\transformations - Accessed http://localhost:8080/openrdf-workbench/repositories/NONE/create?type=owlim in order to create the repository The owlim.ttl and create-owlim.xsl were copied from http://www.mail-archive.com/owlim-discussion@ontotext.com/msg00411.html I am using Tomcat 6.0.29, Java JDK 1.6.0.29, sesame 2.6.3, owlimlite 4.3 What I eventually want to do is create an owlim repository using a custom rule set. Thank you, Babis ___ Owlim-discussion mailing list Owlim-discussion@ontotext.com http://ontomail.semdata.org/cgi-bin/mailman/listinfo/owlim-discussion___ Owlim-discussion mailing list Owlim-discussion@ontotext.com http://ontomail.semdata.org/cgi-bin/mailman/listinfo/owlim-discussion
Re: [Owlim-discussion] Problem with OWLIM, Sesame, Tomcat
Thanks Marek, I managed to create the OWLIM repository with a custom rule set. I am curious about one thing though. The rule set I am using contains around 9200 rules. I appended those rules in the Builtin_rules.pie file (in order to have OWL reasoning) so I now have a huge rule base. OWLIM successfully loaded the rule base but the memory consumption is huge even with no OWL file loaded. Tomcat consumes 940MB of memory (normally it is around 150MB). The memory consumption rises fast when the rule base is compiled but does not drop after compilation has finished. Is this normal behavior? I restarted Tomcat and when I try to access the repository I created, the rules are compiled again which again leads to huge memory consumption. On more thing, in which .pie file that comes with OWLIM-lite 4.3 distribution are OWL/Max rules stored? Thanks, Babis > > From: Marek Šurek >To: Babis Doulaverakis ; Ontotext > >Sent: Thursday, April 5, 2012 2:27 PM >Subject: Re: [Owlim-discussion] Problem with OWLIM, Sesame, Tomcat > > >Hi, >if you don't need to do it through workbench I suggest far easier way to >create custom ruleset. >My solution is connected to windows... windows 7 64bit > > > >1. Deploytwo official war-files included in owlim distribution .zip file (in >folder /sesame_owlim ) by copying them into webapps directory in Tomcat (make >sure you delete your previous attempt described in your mail) >2. Unpack console.zip (also in folder /sesame_owlim in zip file) >3. Run console through console.bat(or .sh depends on your OS) >(.../openrdf-sesame-console/bin/console.bat) >4. Your first command in console should be : > >connect http://localhost:8080/openrdf-sesame. >5. Then try whether other repositories already exist by command : show r. > a) it there exists repository with the same name you want to create run >command : drop nameOfYourRepository. > >6. Copy your .ttl file into >C:/Users/YourAccountName/AppData/Roaming/Aduna/OpenRDF sesame >console/templates/ (notice : folder /AppData is in windows normally hidden) >7. Open console and run command (dont forget to run step 4 - connect to >localhost) > >create nameOfYourRepository. > > > > >Notice : nameOfYourRepository should be equal to name of your .ttl file which >you should copy into .../templates folder (see step 6) >Notice : every command in console should end with dot (.) > > >After these steps you will see your repository also in workbench but it will >have your custom ruleset specified in your .ttl file and no error should >occur. Workbench will normally interact with such repository, so dont worry >about it :). > > > >Hope it helps, >Marek > > > > > > > > > > From: Babis Doulaverakis >To: Ontotext >Sent: Thursday, 5 April 2012, 12:50 >Subject: [Owlim-discussion] Problem with OWLIM, Sesame, Tomcat > > >Hello, > > >I am having a problem when I try to create an OWLIM repository using >openrdf-workbench. The repository looks like it is created (i.e. it appears in >the list for repositories in workbench) but when i try to access "Namespaces" >for example I get the following error from Tomcat: >java.lang.IllegalStateException: Connection factory has been shutdown. >org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManager.java:463) > >org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnectionManager.java:416) > >org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:153) > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) >org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) >org.openrdf.http.client.HTTPClient.getTupleQueryResult(HTTPClient.java:1099) >org.openrdf.http.client.HTTPClient.getNamespaces(HTTPClient.java:906) >org.openrdf.http.client.HTTPClient.getNamespaces(HTTPClient.java:887) >org.openrdf.repository.http.HTTPRepositoryConnection.getNamespaces(HTTPRepositoryConnection.java:420) org.openrdf.workbench.commands.NamespacesServlet.service(NamespacesServlet.java:48) org.openrdf.workbench.base.TransformationServlet.service(TransformationServlet.java:94) org.openrdf.workbench.base.TransformationServlet.service(TransformationServlet.java:73) org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40) org.openrdf.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryServlet.java:93) org.openrdf.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:131) org.openrdf.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:90) org.ope
Re: [Owlim-discussion] Problem with OWLIM, Sesame, Tomcat
Hi Babis, I'm sorry to hear you are having trouble configuring OWLIM. All steps you made sound right and I'm not sure what could have caused the setup problem. One thing I could advise at first glimpse is to try and use the pre-built sesame workbench WARs we distribute together with OWLIM (see /sesame_owlim in the distribution). They have OWLIM built-in and you will only need to drop them in the webapps folder of the tomcat installation and restart the server. Let me know if using these WARs results in a similar exception being thrown. Cheers, Ivan On Thursday 05 April 2012 13:50:49 Babis Doulaverakis wrote: > Hello, > > I am having a problem when I try to create an OWLIM repository using > openrdf-workbench. The repository looks like it is created (i.e. it > appears in the list for repositories in workbench) but when i try to > access "Namespaces" for example I get the following error from Tomcat: > java.lang.IllegalStateException: Connection factory has been shutdown. > org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConn > ection(MultiThreadedHttpConnectionManager.java:463) > org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnec > tionWithTimeout(MultiThreadedHttpConnectionManager.java:416) > org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodD > irector.java:153) > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397 > ) > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323 > ) > org.openrdf.http.client.HTTPClient.getTupleQueryResult(HTTPClient.java:109 > 9) org.openrdf.http.client.HTTPClient.getNamespaces(HTTPClient.java:906) > org.openrdf.http.client.HTTPClient.getNamespaces(HTTPClient.java:887) > org.openrdf.repository.http.HTTPRepositoryConnection.getNamespaces(HTTPRep > ositoryConnection.java:420) > org.openrdf.workbench.commands.NamespacesServlet.service(NamespacesServlet > .java:48) > org.openrdf.workbench.base.TransformationServlet.service(TransformationSer > vlet.java:94) > org.openrdf.workbench.base.TransformationServlet.service(TransformationSer > vlet.java:73) > org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40) > org.openrdf.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepository > Servlet.java:93) > org.openrdf.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java > :131) > org.openrdf.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java > :90) > org.openrdf.workbench.proxy.WorkbenchGateway.service(WorkbenchGateway.java > :109) org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40) > org.openrdf.workbench.proxy.CookieCacheControlFilter.doFilter(CookieCacheC > ontrolFilter.java:52) > > > Could you please help me on this? > > What I have done is: > - Copied owlim-lite-4.3.jar in WEB-INF\lib folder of both openrdf-workbench > and openrdf-sesame - Copied owlim.ttl to > openrdf-workbench\WEB-INF\lib\org\openrdf\console - Copied > create-owlim.xsl to openrdf-workbench\transformations > - Accessed > http://localhost:8080/openrdf-workbench/repositories/NONE/create?type=owli > m in order to create the repository The owlim.ttl and create-owlim.xsl were > copied from > http://www.mail-archive.com/owlim-discussion@ontotext.com/msg00411.html > > > I am using Tomcat 6.0.29, Java JDK 1.6.0.29, sesame 2.6.3, owlimlite 4.3 > > What I eventually want to do is create an owlim repository using a custom > rule set. > > > Thank you, > Babis ___ Owlim-discussion mailing list Owlim-discussion@ontotext.com http://ontomail.semdata.org/cgi-bin/mailman/listinfo/owlim-discussion
Re: [Owlim-discussion] Problem with OWLIM, Sesame, Tomcat
Hi, I guess it is stored in builtin_Rules.pie as commentary in the file reference to file as Max. There is division commentary line in builtin_Rules.pie which divide rules into Horst and Max. See : ... ... //== // This rule file contains both OWL-Horst rules and OWL-Max rules. // The OWL-Horst rule set is a subset of the OWL-Max rules // The rules above this point all belong to OWL-Horst AND OWL-Max // The rules below this point only belong to OWL-Max // The next line is the dividing point: // OWL-Max supporting rules //== ... ... I'm not expert in the field of how Owlim stores rules, but what can I really say 9200 rules is too many rules for one repository. TRREE is java based rule engine and during compilation it probably creates highly optimized java structures which could take such big amount of memory and java garbage collector can't trash them as they had to be used everytime new triples are inserted into repository...but it is only my guess. We can only hope TRREE (owlim's reasoner) can procede so many rules in acceptable amount of time (thought it is extremely fast rule engine and with owlim database and sesame it is probably the fastest solution on the market). I can share my experience with real application + Lubm test. My notebook config: P8600 Core 2 Duo, 2,4Ghz 4GB RAM Win 7 64bit Tomcat 7 Lubm 50 test (50 universities - around 5M explicit triples) with horst-optimized loaded on my 832sec with Horst ruleset, with OWL2 RL 3200sec and it contains "only" less than 100 rules. Complexity of rule evaluation rises dramaticly as number of new rules are added. In real applicatoin loading + inferencing of 4M explicit triples with only 4 rules which create total number of 6.5M triples (2,5M implicit triples) takes on my notebook 802sec. Of course complexity of rules is also very important, I just want to say that 9200 could be many. Number of rules indicates you need it for some research, in this case ontotext provides Owlim SE trial evaluation copy(limited to short amount of time) which is more optimized in... everything including TRREE :). You just need to apply and provide some details of your reaseach. Marek From: Babis Doulaverakis To: Marek Šurek ; Ontotext Sent: Thursday, 5 April 2012, 14:26 Subject: Re: [Owlim-discussion] Problem with OWLIM, Sesame, Tomcat Thanks Marek, I managed to create the OWLIM repository with a custom rule set. I am curious about one thing though. The rule set I am using contains around 9200 rules. I appended those rules in the Builtin_rules.pie file (in order to have OWL reasoning) so I now have a huge rule base. OWLIM successfully loaded the rule base but the memory consumption is huge even with no OWL file loaded. Tomcat consumes 940MB of memory (normally it is around 150MB). The memory consumption rises fast when the rule base is compiled but does not drop after compilation has finished. Is this normal behavior? I restarted Tomcat and when I try to access the repository I created, the rules are compiled again which again leads to huge memory consumption. On more thing, in which .pie file that comes with OWLIM-lite 4.3 distribution are OWL/Max rules stored? Thanks, Babis > > From: Marek Šurek >To: Babis Doulaverakis ; Ontotext > >Sent: Thursday, April 5, 2012 2:27 PM >Subject: Re: [Owlim-discussion] Problem with OWLIM, Sesame, Tomcat > > >Hi, >if you don't need to do it through workbench I suggest far easier way to >create custom ruleset. >My solution is connected to windows... windows 7 64bit > > > >1. Deploytwo official war-files included in owlim distribution .zip file (in >folder /sesame_owlim ) by copying them into webapps directory in Tomcat (make >sure you delete your previous attempt described in your mail) >2. Unpack console.zip (also in folder /sesame_owlim in zip file) >3. Run console through console.bat(or .sh depends on your OS) >(.../openrdf-sesame-console/bin/console.bat) >4. Your first command in console should be : > >connect http://localhost:8080/openrdf-sesame. >5. Then try whether other repositories already exist by command : show r. > a) it there exists repository with the same name you want to create run >command : drop nameOfYourRepository. > >6. Copy your .ttl file into >C:/Users/YourAccountName/AppData/Roaming/Aduna/OpenRDF sesame >console/templates/ (notice : folder /AppData is in windows normally hidden) >7. Open console and run command (dont forget to run step 4 - connect to >localhost) > >create nameOfYourRepository. > > > > >Notice : nameOfYourRepository should be equal to name of your .ttl file whi
Re: [Owlim-discussion] Problem with OWLIM, Sesame, Tomcat
Thanks Marek, I would appreciate it if someone from Ontotext could answer my question regarding OWLIM-Lite performance. Regards, Babis > > From: Babis Doulaverakis >To: Marek Šurek ; Ontotext > >Sent: Thursday, April 5, 2012 3:26 PM >Subject: Re: [Owlim-discussion] Problem with OWLIM, Sesame, Tomcat > > >Thanks Marek, > > >I managed to create the OWLIM repository with a custom rule set. > >I am curious about one thing though. The rule set I am using contains around >9200 rules. I appended those rules in the Builtin_rules.pie file (in order to >have OWL reasoning) so I now have a huge rule base. OWLIM successfully loaded >the rule base but the memory consumption is huge even with no OWL file loaded. >Tomcat consumes 940MB of memory (normally it is around 150MB). The memory >consumption rises fast when the rule base is compiled but does not drop after >compilation has finished. Is this normal behavior? I restarted Tomcat and when >I try to access the repository I created, the rules are compiled again which >again leads to huge memory consumption. > > > >On more thing, in which .pie file that comes with OWLIM-lite 4.3 distribution >are OWL/Max rules stored? > > >Thanks, >Babis > > > > >> >> From: Marek Šurek >>To: Babis Doulaverakis ; Ontotext >> >>Sent: Thursday, April 5, 2012 2:27 PM >>Subject: Re: [Owlim-discussion] Problem with OWLIM, Sesame, Tomcat >> >> >>Hi, >>if you don't need to do it through workbench I suggest far easier way to >>create custom ruleset. >>My solution is connected to windows... windows 7 64bit >> >> >> >>1. Deploytwo official war-files included in owlim distribution .zip file (in >>folder /sesame_owlim ) by copying them into webapps directory in Tomcat (make >>sure you delete your previous attempt described in your mail) >>2. Unpack console.zip (also in folder /sesame_owlim in zip file) >>3. Run console through console.bat(or .sh depends on your OS) >>(.../openrdf-sesame-console/bin/console.bat) >>4. Your first command in console should be : >> >>connect http://localhost:8080/openrdf-sesame. >>5. Then try whether other repositories already exist by command : show r. >> a) it there exists repository with the same name you want to create run >>command : drop nameOfYourRepository. >> >>6. Copy your .ttl file into >>C:/Users/YourAccountName/AppData/Roaming/Aduna/OpenRDF sesame >>console/templates/ (notice : folder /AppData is in windows normally hidden) >>7. Open console and run command (dont forget to run step 4 - connect to >>localhost) >> >>create nameOfYourRepository. >> >> >> >> >>Notice : nameOfYourRepository should be equal to name of your .ttl file which >>you should copy into .../templates folder (see step 6) >>Notice : every command in console should end with dot (.) >> >> >>After these steps you will see your repository also in workbench but it will >>have your custom ruleset specified in your .ttl file and no error should >>occur. Workbench will normally interact with such repository, so dont worry >>about it :). >> >> >> >>Hope it helps, >>Marek >> >> >> >> >> >> >> >> >> >> From: Babis Doulaverakis >>To: Ontotext >>Sent: Thursday, 5 April 2012, 12:50 >>Subject: [Owlim-discussion] Problem with OWLIM, Sesame, Tomcat >> >> >>Hello, >> >> >>I am having a problem when I try to create an OWLIM repository using >>openrdf-workbench. The repository looks like it is created (i.e. it appears >>in the list for repositories in workbench) but when i try to access >>"Namespaces" for example I get the following error from Tomcat: >>java.lang.IllegalStateException: Connection factory has been shutdown. >>org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManager.java:463) >> >>org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnectionManager.java:416) >> >>org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:153) >> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) >>org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) >>org.openrdf.http.client.HTTPClient.getTupleQueryResult(HTTPClient.java:1099) >>org.openrdf.
Re: [Owlim-discussion] Problem with OWLIM, Sesame, Tomcat
Hello Babis, Glad to hear you got OWLIM-Lite + Tomcat + custom rule-set running (and thanks to Marek for his helpful comments). Custom rules are indeed compiled in to Java classes, which are then further compiled using the Java compiler (hence the requirement for a JDK). This inevitably requires Java heap space for storing class files and data structures, although I must admit that we have never measured how much memory is required - probably because we have never seen a use-case that requires so many rules before. This compilation step for custom rules is done at start up, so it will happen every time OWLIM initialises. Marek was quite correct in that OWL-Horst and OWL-Max rues are both stored in builtin_Rules.pie. OWL-Max is a superset of OWL-Horst and there is a crude dividing line in the rule file indicating where OWL-Horst finishes and OWL-Max continues. Regarding your set up, I think the easiest method is to do the easy install of OWLIM (drop the two wars in to the tomcat webapps directory), create a repository and then modify its rule-set using this technique: http://owlim.ontotext.com/display/OWLIMv50/OWLIM+FAQ#OWLIMFAQ-HowdoIchangetheconfigurationofanOWLIMSesamerepositoryafterithasbeencreated%3F This will work for OWLIM-Lite, but not for OWLIM-SE. Lastly, if you are working in research and would like to use OWLIM-SE, please contact us for a research license. All the best, barry Barry Bishop OWLIM Product Manager Ontotext AD Tel: +43 650 2000 237 email: barry.bis...@ontotext.com www.ontotext.com On 09/04/12 14:07, Babis Doulaverakis wrote: Thanks Marek, I would appreciate it if someone from Ontotext could answer my question regarding OWLIM-Lite performance. Regards, Babis *From:* Babis Doulaverakis *To:* Marek S(urek ; Ontotext *Sent:* Thursday, April 5, 2012 3:26 PM *Subject:* Re: [Owlim-discussion] Problem with OWLIM, Sesame, Tomcat Thanks Marek, I managed to create the OWLIM repository with a custom rule set. I am curious about one thing though. The rule set I am using contains around 9200 rules. I appended those rules in the Builtin_rules.pie file (in order to have OWL reasoning) so I now have a huge rule base. OWLIM successfully loaded the rule base but the memory consumption is huge even with no OWL file loaded. Tomcat consumes 940MB of memory (normally it is around 150MB). The memory consumption rises fast when the rule base is compiled but does not drop after compilation has finished. Is this normal behavior? I restarted Tomcat and when I try to access the repository I created, the rules are compiled again which again leads to huge memory consumption. On more thing, in which .pie file that comes with OWLIM-lite 4.3 distribution are OWL/Max rules stored? Thanks, Babis *From:* Marek S(urek *To:* Babis Doulaverakis ; Ontotext *Sent:* Thursday, April 5, 2012 2:27 PM *Subject:* Re: [Owlim-discussion] Problem with OWLIM, Sesame, Tomcat Hi, if you don't need to do it through workbench I suggest far easier way to create custom ruleset. My solution is connected to windows... windows 7 64bit 1. Deploytwo official war-files included in owlim distribution .zip file (in folder /sesame_owlim ) by copying them into webapps directory in Tomcat (make sure you delete your previous attempt described in your mail) 2. Unpack console.zip (also in folder /sesame_owlim in zip file) 3. Run console through console.bat(or .sh depends on your OS) (.../openrdf-sesame-console/bin/console.bat) 4. Your first command in console should be : connect http://localhost:8080/openrdf-sesame. 5. Then try whether other repositories already exist by command : show r. a) it there exists repository with the same name you want to create run command : drop nameOfYourRepository. 6. Copy your .ttl file into C:/Users/YourAccountName/AppData/Roaming/Aduna/OpenRDF sesame console/templates/ (notice : folder /AppData is in windows normally hidden) 7. Open console and run command (dont forget to run step 4 - connect to localhost) create nameOfYourRepository. Notice : nameOfYourRepository should be equal to name of your .ttl file which you should copy into .../templates folder (see step 6) Notice : every command in console should end with dot (.) After these steps you will see your repository also in workbench but it will have your custom ruleset specified in your .ttl file and no error should occur. Workbench will normally interact with