Hello Renan,

The inference works without any relation to the number of graphs used as
data sources. OTOH querying on some list of graphs is slower than
querying on single graph, that is true for all queries regardless using
or not using the inference. The loss of speed may be more visible with
inference simply because the query contains "hidden" subqueries that
also become slower.

If you have an example of a query that runs differenly depending on
numbers of graphs that contain same data, please let me know, it might
be a bug then.

Best Regards,

Ivan Mikhailov
OpenLink Software
http://virtuoso.openlinksw.com


On Mon, 2011-01-10 at 17:37 -0200, Renan Moreira de Oliveira wrote:
> Hi Aldo and Virtuoso Users
> How are you?
> 
> I want to use an inference rule which has the two graphs in its range,
> or rather, I will explain the problem:
> 
> Previously, we had a graph for everything.
> Now, we are moving to a world where there will be several graphs to
> separate the contexts of business.
> We have properties's range has several classes of graphs.
>  
> The problem is: When using inference I cannot use more than one
> inference rule per query.
> 
> I used two graphs with the same name as a rule. With this idea the
> database wasn't overwritten and everything works.
> However I had pour performance with this aproach. Since there are
> multiple graphs.
> 
> I wonder that if all these rules on the use of inference on the graphs
> were a single rule it would perform better.
> Do you have any idea?
> 
> If there is a business rule that I can only use one rule of inference
> by query thats all right.
> 
> But it will be more ideal for us today if we could pass the query over
> an inference rule.
> 
> Query:
> 
> define input:default-graph-uri <http://example.com/>
> define input:inference <http://example.com/ruleset>
> 
> select distinct ?s
> FROM <http://example.com/sport/>
> 
> {
> 
>     {
>         ?s a <http://example.com/Event> ; ?p ?o .
>         ?o bif:contains "'League*'" .
>     }
> 
> }
> LIMIT 10
> 
> There is the possibility to continue using a rule of inference for
> each graph
> with this solution I would have to make two queries and do a merge.
> 
> Can anyone help?
> Have any idea?
> 
> 
> Cheers,
> Renan Oliveira
> Y! glb_renan
> ------------------------------------------------------------------------------
> Gaining the trust of online customers is vital for the success of any company
> that requires sensitive data to be transmitted over the Web.   Learn how to 
> best implement a security strategy that keeps consumers' information secure 
> and instills the confidence they need to proceed with transactions.
> http://p.sf.net/sfu/oracle-sfdevnl 
> _______________________________________________ Virtuoso-users mailing list 
> [email protected] 
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users



Reply via email to