Module sophia_api::triple

source ·
Expand description

I define how RDF triples are represented in Sophia.

I provide the main trait Triple.

An RDF triple expresses a single fact. Its formed of three terms called subject, predicate and object.

You can think of a triple as a sentence of the form “subject verb complement” (although the predicate is often better expressed as a relationship than a verb). Examples :

  • John is a person.
  • John was born in Paris.
  • John knows Jane.
  • John’s family name is “Doe”.

Traits

  • This trait represents an abstract RDF triple, and provide convenient methods for working with triples.

Type Aliases

  • Type alias for terms borrowed from a triple.