molgenis / Graph2VR

Visualising / Exploring Linked Data (SPARQL Construct queries) in Virtual Reality.
GNU Lesser General Public License v3.0
5 stars 1 forks source link

Feature: Node Coloring #15

Open AJKellmann opened 1 year ago

AJKellmann commented 1 year ago

We have different kinds of Nodes, e.g. Variable Nodes, URIs, Literals (Text / Numbers). Since we often use rdfs labels to display a shorter name, it becomes more and more difficult to differentiate between URIs and Literals. This could be fixed by using different colors or shapes for different kinds of Nodes.

AJKellmann commented 1 year ago

We have added several of the colours from VOWL (http://vowl.visualdataweb.org/v2/) for the different kinds of nodes.

There are a few that still need to be implemented: owl:Class (http://www.w3.org/TR/owl-ref/#Class-def) rdfs:Class (http://www.w3.org/TR/rdf-schema/#ch_class) owl:DatatypeProperty (http://vowl.visualdataweb.org/v2/#owlDatatypeProperty) owl:DeprecatedClass (http://www.w3.org/TR/owl-ref/#DeprecatedClass-def)

AJKellmann commented 1 year ago

We can use the same colors like it was defined for query Vowl: http://vowl.visualdataweb.org/queryvowl/v1/index.html http://vowl.visualdataweb.org/v2/#rdfsClass

AJKellmann commented 1 year ago

adding more coloring

AJKellmann commented 1 year ago

I realized that some predicate colors are asked for subjects/objects instead. Additionally, the current SPARQL query asks for one of the attributes using an OR connection. This means we might get some of the Colors sometimes, but it seems unreliable/broken to me to do it like that.

AJKellmann commented 1 year ago

We added a Color Settings file to set different colors. Some of those are already used, but not all of them (work in progress). Most of them are inspired by Vowl, and some are additional, e.g., for variables.