Search code examples
graphnodesrdfedges

How do you show a Subject with two different Predicates that point to the same Object in a linked graph?


I have two triples:

:person :directed :movie;
        :actedIn  :movie.

How would I draw a linked graph to represent this?

Regarding the Object, would I have one node with two Predicates on its label between it and the Subject; or is it best to have two Object nodes that each have their own differing Predicate labels?


Solution

  • :movie is one entity, one node.

    You should have two entity nodes (:person and :movie) connected by two edges (a/k/a predicates or attributes), :directed and :actedIn.