openRDF.org Welcome Guest   | Login   
  Search  
  Index  | Recent Threads  | Who's Online  | User List  | Search  | Help  | RSS feeds

Forum closing down
This forum will be closing down due to extensive spamming activities. As a first step, registration of new members has been disabled. Existing members will be able to use the forum for now, but please consider using the sesame-general mailing list instead.


Quick Go »
Thread Status: Normal
Total posts in this thread: 3
[Add To My Favorites] [Watch this Thread] [Post new Thread]
Author
Previous Thread This topic has been viewed 2422 times and has 2 replies Next Thread
Jul 20, 2004 4:33:55 PM

jeen
Sesame Addict
Member's Avatar

The Netherlands
Joined: Jan 23, 2004
Posts: 1091
Status: Offline
dependency inferencing made optional Reply to this Post
Reply with Quote

I've made a small extension to the RDBMS Sail: dependency inferencing is now optional. By default, the dependency inferencer is still used, but if a parameter 'dependency-inferencing' is set to 'no' in the system.conf for a particular repository, dependency inferencing is not used.

In this case, the repository will revert to a brute-force method, where the entire closure is deleted and recomputed whenever a removeStatement transaction is done. Of course, this makes removeStatement transactions very inefficient, but the upside of this is that:

a) the size of the database is significantly reduced
b) upload time is significantly improved

Regarding the latter, it turned out that in some extreme cases the dependency inferencer issued such complex update queries during the commit of an upload transaction, that MySQL took over an hour to complete the query, or even so long that the JDBC connection simply timed out and closed. In such cases, and in cases where remove operations are not frequently done, this parameter may be useful.

Checked in in the trunk, tested for the most obvious bugs. See also SES-60.
----------------------------------------
Researcher at AFSG - Wageningen UR
Show Printable Version of Post     [Link] Report threatening or abusive post: please login first  Go to top 
Oct 21, 2005 5:42:44 PM

jedhassell
Member



Joined: Sep 21, 2005
Posts: 5
Status: Offline

confused   Re: dependency inferencing made optional Reply to this Post
Reply with Quote

How do I change this value to "no" using the java API?
Show Printable Version of Post        Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Oct 24, 2005 9:26:56 AM

arjohn
OpenRDF project lead
Member's Avatar

The Netherlands
Joined: Jan 23, 2004
Posts: 1289
Status: Offline
Re: dependency inferencing made optional Reply to this Post
Reply with Quote

 
How do I change this value to "no" using the java API?

When using the repository API, you set the parameter on a SailConfig object. I just realized that there's no utility method for this in the subclass RdfSchemaRepositoryConfig yet, so you'll have to use the generic methods for now:
RdfSchemaRepositoryConfig config = new RdfSchemaRepositoryConfig(...);
config.setParameter(RdfSchemaRepository.USE_DEPENDENCY_INFERENCER_KEY, "no");

If you're using the Sail directly, you'll have to supply the same parameter to the Sail's initialize(Map) method.
----------------------------------------
Arjohn Kampman, OpenRDF project lead, Aduna
Show Printable Version of Post        Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
[Show Printable Version of Thread] [Post new Thread]