-
Notifications
You must be signed in to change notification settings - Fork 3
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
add in RDF dataset definitions from SPARQL query #50
base: main
Are you sure you want to change the base?
Changes from 1 commit
78cff60
70e6061
d1e7f07
13842cf
e6b5e69
52c0fae
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1498,6 +1498,60 @@ <h2>RDF Datasets</h2> | |
between datasets would require RDF graph entailments between the graphs with the same name | ||
(adding in empty graphs as required).</p> | ||
|
||
<table> | ||
<caption>Definition of an RDF dataset</caption> | ||
<tr> | ||
<td class="semantictable"> | ||
<p>An <dfn data-lt="RDF dataset">RDF dataset</dfn> I is a set:</p> | ||
{ G, (<u<sub>1</sub>>, G<sub>1</sub>), (<u<sub>2</sub>>, G<sub>2</sub>), . . | ||
. (<u<sub>n</sub>>, G<sub>n</sub>) }<br> | ||
where n≥0 and G and each G<sub>i</sub> are graphs, and each <u<sub>i</sub>> is an IRI. Each | ||
<u<sub>i</sub>> is distinct.</p> | ||
<p>G is called the default graph. (<u<sub>i</sub>>, G<sub>i</sub>) are called named | ||
graphs.</p> | ||
</td> | ||
</tr> | ||
</table> | ||
<table> | ||
<caption>Definition of active graph in an RDF dataset</caption> | ||
<tr> | ||
<td class="semantictable"> | ||
<p>The <dfn data-lt="active graph">active graph</dfn> in an RDF dataset is the graph from the dataset used for basic graph pattern | ||
matching.</p> | ||
</td> | ||
</tr> | ||
</table> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is SPARQL specific and can be left in SPARQL Query. It changes during query execution (GRAPH). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds reasonable. I put it in just in case but I'll take it out. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
|
||
<table> | ||
<caption>Definition of RDF dataset merge</caption> | ||
<tr> | ||
<td class="semantictable"> | ||
<p>Let DS1 = { G1, (<u1<sub>1</sub>>, G1<sub>1</sub>), (<u1<sub>2</sub>>, | ||
G1<sub>2</sub>), . . . (<u1<sub>n</sub>>, G1<sub>n</sub>) },<br> | ||
and DS2 = { G2, (<u2<sub>1</sub>>, G2<sub>1</sub>), (<u2<sub>2</sub>>, | ||
G2<sub>2</sub>), . . . (<u2<sub>m</sub>>, G2<sub>m</sub>) }</p> | ||
<p>The <dfn data-lt="RDF dataset">RDF dataset merge</dfn> of DS1 and DS2 is:<br> | ||
gkellogg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
DS={ G, (<u<sub>1</sub>>, G<sub>1</sub>), (<u<sub>2</sub>>, G<sub>2</sub>), . | ||
. . (<u<sub>k</sub>>, G<sub>k</sub>) }<br> | ||
where:</p> | ||
<p>Write N1 for { <u1<sub>j</sub>> j = 1 to n }<br> | ||
Write N2 for { <u2<sub>j</sub>> j = 1 to m }<br></p> | ||
<ul> | ||
<li>G is the <a data-cite="RDF12-SEMANTICS#dfn-merge">merge</a> of G1 and G2 | ||
</li> | ||
<li>(<u<sub>i</sub>>, G<sub>i</sub>) where <u<sub>i</sub>> is in N1 but not | ||
in N2</li> | ||
<li>(<u<sub>i</sub>>, G<sub>i</sub>) where <u<sub>i</sub>> is in N2 but not | ||
in N1</li> | ||
<li>(<u<sub>i</sub>>, G<sub>i</sub>) where <u<sub>i</sub>> is equal to | ||
<u<sub>j</sub>> in N1 and equal to <u<sub>k</sub>> in N2 and G<sub>i</sub> | ||
is the <a data-cite="RDF12-SEMANTICS#dfn-merge">merge</a> of G1<sub>j</sub> and G2<sub>k</sub> | ||
</li> | ||
</ul> | ||
</td> | ||
</tr> | ||
</table> | ||
|
||
</section> | ||
|
||
<h2 id="appendices">Appendices</h2> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RDF Dataset is actually defined in RDF Concepts, although it has an alias here, so it's sufficient to just use an anchor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be fixed in latest commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The dfn markup is copied from examples elsewhere. If they are wrong here then I think there are lots that have to be changed throughout the document set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This document is more complicated than most as the form is to "define" terms which an also defined in RDF Concepts. The
<dfn data-cite="...">...</dfn>
form is there to be able to use these terms as if they're defined in RDF Semantics while referencing the version in RDF Concepts. Note thatdata-lt
provides an alternative way to reference the same definition, but it can also affect the term which is "exported" from the document. It can be useful to look at the Terms defined by this specification section to see what terms are actually defined here.I did scan the other definitions in the document and they seem correct to me.