Search code examples
semantic-webgraphdb

Changing color nodes in graphDB Free


I am currently working with GraphDB to visualize some data that has a graph nature. I have imported the RDF data into graphDB and actually the graph is pretty nice. The only downside is that every single node is orange.

I was wondering then, if graphDB has some mechanism whereby the color of some nodes could be changed based upon a semantic relationship between them. For example:

<Berners_Lee> <created> <web> . <Berners_Lee> <works_as_a> <teacher>

If I were to load this onto graphDB all nodes would appear by default in orange. Is there any way I can specify that nodes that are pointed by relationship created appear in blue?

I hope everything is clear. Any help would be much appreciated.


Solution

  • The colors are generated automatically and differentiate the types in one graph, which is their main purpose. Also we do not handle properly the case with multiple types for a node, but we have it in mind. The problem with your data is that all of the subject predicates and objects have no type (which makes them the same type). Here is a small example, based on your data which will produce the desired effect.

    <Berners_Lee><created><www>;
                 <works_as_a><teacher>;
                 a <Person>.
    <teacher> a <Occupation>.