GraphDB Visual Graph not showing blank nodes

268 Views Asked by At

Is it possible somehow to also show the blank nodes in the visual graph?

I noticed that in the visualization config queries there is a filter using isIRI(...) which makes sure that by default only IRIs are visualized. However removing that filter does not help at all - blank nodes are still not visible, which is a major limitation on the ability to visually expand/navigate the graph.

Even if blank nodes are not useful identifiers, they are necessary to navigate the graph and it's not always feasible to convert them to IRIs.

2

There are 2 best solutions below

0
Konstantin Petrov On BEST ANSWER

Visual graph shows only IRIs with their local name or label. Bnodes by themselves are not meaningful.

But you can construct with SPARQL IRIs from your BNodes' data (using the IRI function to create IRI from whatever string you like). These are virtual nodes that do not exist actually, but exist for visualization.

Customizing visual graphs with your own queries is described here:

https://graphdb.ontotext.com/documentation/9.9/free/devhub/custom-graph-views.html

0
AtesComp On

As a critique, blank nodes are NEVER "by themselves". In context, they are extremely meaningful. The GraphDB developers have long held a decidedly wrong-headed idea about blank nodes. As a comparison, see AllegroGraph GRUFF which does display blank nodes without issue.

To construct a visual graph in GraphDB showing blank nodes, see https://stackoverflow.com/a/68915302/610310