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

Informal definition of quad. #12

merged 6 commits into from
Feb 6, 2023

Conversation

gkellogg
Copy link
Member

@gkellogg gkellogg commented Feb 2, 2023

Fixes #5.


Preview | Diff

spec/index.html Outdated

<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>.

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.

spec/index.html Outdated

<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.

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>.

@gkellogg
Copy link
Member Author

gkellogg commented Feb 2, 2023

Thanks, the original was a bit rushed, as I had the dual goal of trying something for PR Preview, which seems to be fixed now.

I've applied the suggestions from above, although I did keep the second sentence, which I find useful. Of course, let me know if you feel otherwise.

  <p>A <a>quad</a> can be represented as a tuple composed of <a>subject</a>, <a>predicate</a>, <a>object</a>,
    and an optional <a>graph name</a>.</p>

@gkellogg gkellogg requested a review from afs February 2, 2023 21:24
Copy link
Contributor

@hartig hartig left a comment

Choose a reason for hiding this comment

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

Looks good to me now. Thanks!

@gkellogg gkellogg merged commit e93ecf0 into main Feb 6, 2023
@gkellogg gkellogg deleted the quad-term branch February 6, 2023 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Define term "quad"
4 participants