Skip to content

Commit

Permalink
Expand comments on repeated terms in rdf.proto (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ostrzyciel authored Jun 24, 2024
1 parent f124732 commit 3ee9f27
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions rdf.proto
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ message RdfDefaultGraph {
// Note: this message allows for representing generalized RDF triples (for
// example, with literals as predicates). Whether this is used in the stream
// is determined by the stream options (see RdfStreamOptions).
//
// If no field in a given oneof is set, the term is interpreted as a repeated
// term – the same as the term in the same position in the previous triple.
// In the first triple of the stream, all terms must be set.
// All terms must also be set in quoted triples (RDF-star).
message RdfTriple {
// Triple subject
oneof subject {
Expand Down Expand Up @@ -108,6 +113,10 @@ message RdfTriple {
// Similarly to RdfTriple, this message allows for representing generalized
// RDF quads (for example, with literals as predicates). Whether this is used
// in the stream is determined by the stream options (see RdfStreamOptions).
//
// If no field in a given oneof is set, the term is interpreted as a repeated
// term – the same as the term in the same position in the previous quad.
// In the first quad of the stream, all terms must be set.
message RdfQuad {
// Quad subject
oneof subject {
Expand Down Expand Up @@ -162,6 +171,9 @@ message RdfQuad {
}

// Start of a graph in a GRAPHS stream
//
// In contrast to RdfQuad, setting the graph oneof to some value
// is always required. No repeated terms are allowed.
message RdfGraphStart {
oneof graph {
// IRI
Expand Down

0 comments on commit 3ee9f27

Please sign in to comment.