buda-base / lds-pdi

http://purl.bdrc.io BDRC Linked Data Server
Apache License 2.0
2 stars 0 forks source link

topic Tree having counts equal to -1 #99

Closed berger-n closed 5 years ago

berger-n commented 5 years ago

query http://purl.bdrc.io/lib/workFacetGraph?LG_NAME=en&I_LIM=500&L_NAME=%22%27od%20zer%22 returns a tree having some topics with count equal to -1: image

MarcAgate commented 5 years ago

Fixed as of commit cbe74a6 . the count node is actually the number of sub-categories in the tree for a given Taxonomy/Topic. We had count=-1 in the previous implementation for all leaves of the tree, (-1 being the default value). In this implementation, there is (logically) no count node for the leaves of the Tree.

berger-n commented 5 years ago

I'm not sure what you mean here... let's take a look at this brand new data http://library.bdrc.io/search?q=%22manjusri%22&lg=sa-x-ndia&t=Work for a change image aren't the numbers supposed to tell user how many works there are in given topic/subtopic ?

MarcAgate commented 5 years ago

Right, my mistake ! And the -1 issue occurs only on each leaf of the Taxonomy Tree. More to come...

MarcAgate commented 5 years ago

Fixed !