sparna-git / Sparnatural

Sparnatural : visual knowledge graph explorer with SPARQL, in the browser, configurable with SHACL
http://sparnatural.eu
GNU Lesser General Public License v3.0
225 stars 43 forks source link

Hierarchies are still showed even when the statistic count of it is 0 #686

Open MrSpitfire06 opened 5 days ago

MrSpitfire06 commented 5 days ago

image

tfrancart commented 5 days ago

Can you share your config and explain in which situation this happens ?

MrSpitfire06 commented 2 days ago

It happens in OpenArchaeo, in a federation settings, when I select a dataset where the statistics for the NodeShape « Fait » has count 0. I think « Fait » is still shown because there are no statistics on the children node and their properties (not even 0), and Sparnatural might display it because of that.

http://openarchaeo-graphdb.huma-num.fr/repositories/openarchaeo?default-graph-uri=http://aerba.huma-num.fr/partition_HumanMadeFeature dct:conformsTo http://openarchaeo.huma-num.fr/federation/shapes/openarchaeo-shapes/HumanMadeFeature ; void:class http://www.cidoc-crm.org/cidoc-crm/E25_Human-Made_Feature ; void:entities "0"^^xsd:int .

http://openarchaeo-graphdb.huma-num.fr/repositories/openarchaeo?default-graph-uri=http://aerba.huma-num.fr/partition_Burial dct:conformsTo http://openarchaeo.huma-num.fr/federation/shapes/openarchaeo-shapes/Burial ; void:propertyPartition http://openarchaeo-graphdb.huma-num.fr/repositories/openarchaeo?default-graph-uri=http://aerba.huma-num.fr/partition_P122 .

http://openarchaeo-graphdb.huma-num.fr/repositories/openarchaeo?default-graph-uri=http://aerba.huma-num.fr/partition_P122 dct:conformsTo http://openarchaeo.huma-num.fr/federation/shapes/openarchaeo-shapes/P122 ; void:property http://www.cidoc-crm.org/cidoc-crm/P101_had_as_general_use .