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 <doula...@yahoo.gr>
To: Marek Šurek <marek_su...@yahoo.co.uk>; Ontotext 
<owlim-discussion@ontotext.com> 
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 <marek_su...@yahoo.co.uk>
>To: Babis Doulaverakis <doula...@yahoo.gr>; Ontotext 
><owlim-discussion@ontotext.com> 
>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 <doula...@yahoo.gr>
>To: Ontotext <owlim-discussion@ontotext.com> 
>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

Reply via email to