gographcayley

What is "label" in cayley quads?


I already tried, to look in https://godoc.org/github.com/cayleygraph/cayley/quad but cant find the definition of it and it's uses.

I will appreciate any advice and recommendation, thanks.


Solution

  • Quads in caylay are an implementation of https://www.w3.org/TR/n-quads/

    While triplets only allow subject, predicate and object:

    :subject :predicate :object .
    
    :spiderman :relationship/enemyOf :green-goblin .
    

    Quads add the optional context label which can be used to further describe the relationship or base of knowledge.

    :subject :predicate :object :label .
    
    :spiderman :relationship/enemyOf :green-goblin :graphs/spiderman .