Skip to content

Informal definition of quad. #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 6, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,27 @@ <h3>Content Negotiation of RDF Datasets</h3>
the consumer is expected to use the <a data-lt="rdf dataset">RDF dataset's</a> default graph.</p>

</section>

<section id="section-dataset-quad" class="informative">
<h3>Dataset as a set of quads</h3>

<p>A <dfn>quad</dfn> is a conceptual projection of a <a>triple</a> with
either the <a>default graph</a> or a <a>named graph</a>.
A <a>quad</a> is the generalization of a <a>triple</a>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is quite different to #5.

The projection (as in "a view of" - c.f. SQL) is the other way round - a triple is the projection of a quad without the graph name component.

In #5, a quad is a triple and an optional graph name.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also find the phrasing of the first sentence not so suitable. It is not really clear what a "conceptual projection" is.

My definition would be:

A <dfn>quad</dfn> is a <a>triple</a> associated with an optional <a>graph name</a> and
is used when referring to triples within an <a>RDF dataset</a>.

Using that definition as the first paragraph of the section, as the next paragraph I would put the sentence about "An RDF dataset can be .." (as given in Andy's comment below).

As third paragraph I would then use the following adaptation of the paragraph about quads versus triples.

Although a <a>quad</a> without a graph name consists of the same three components as
a <a>triple</a>, it is a distinct concept, as it specifically captures the notion of
a triple within the <a>default graph</a> of an <a>RDF dataset</a>.

along with an optional <a>graph name</a>,
indicating a named graph containing that <a>triple</a>.
</p>

<p>A <a>quad</a> can be represented as a tuple composed of <a>subject</a>, <a>predicate</a>, <a>object</a>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That works because when the text says "subject" it has to be subject of something - the triple.

and an optional <a>graph name</a>.</p>

<p>An <a>RDF dataset</a> can informally be considered to be a set of <a>quads</a>.</p>

<p class="note">Although a <a>quad</a> in the <a>default graph</a> shares
the same components as a <a>triple</a>,
it is a distinct concept, as it is specifically
a triple within the <a>default graph</a> of an <a>RDF dataset</a>.</p>
</section>
</section>

<section id="section-Datatypes">
Expand Down