What is "label" in cayley quads?

461 Views Asked by At

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.

1

There are 1 best solutions below

1
On BEST ANSWER

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 .