You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "DongNing (董宁.阿帕比)" <do...@founder.com> on 2014/06/11 09:03:42 UTC
TDB OPTIMIZER question:a puzzled of RULE language about " VAR and TERM "
Hi all:
I am a beginner of jena,I am studying at TDB’S optimizer. About Statistics rule.
1. I think TERM and VAR’s difference is VAR represent a variant in sparql. TREM only represent the probable value in the DB, it don’t represent a variant in sparql.
Is that right?
2. For a statics graph DB(triples are fixed,do not changed)
Count to (var :identifier TERM) and Count to ( Var :identifier var) should be same?
3. And there are a few explanation and samples on http://jena.apache.org .Are there any other tutorial about statistics rule?
THANK!
Tony.Dong
Re: TDB OPTIMIZER question:a puzzled of RULE language about " VAR
and TERM "
Posted by Andy Seaborne <an...@apache.org>.
On 11/06/14 08:03, DongNing(董宁.阿帕比) wrote:
> Hi all:
>
> I am a beginner of jena,I am studying at TDB’S optimizer. About
> Statistics rule.
>
> 1. I think TERM and VAR’s difference is VAR represent a variant
> in sparql. TREM only represent the probable value in the DB, it don’t
> represent a variant in sparql.
>
> Is that right?
Yes - TERM means "will be bound at this point"
>
> 2. For a statics graph DB(triples are fixed,do not changed)
>
> Count to (var :identifier TERM) and Count to ( Var :identifier var)
> should be same?
No.
(var :identifier TERM) should be an estimate of what the cardinality
when there is a specific value. (var :identifier var) would be count of
all uses of :identifier.
if :ifp is an inverse function property,
(?x :ifp TERM) is one.
>
> 3. And there are a few explanation and samples on
> http://jena.apache.org .Are there any other tutorial about statistics
> rule?
Only the code I'm afraid.
Andy
>
>
>
> THANK!
>
> Tony.Dong
>
>