-
Notifications
You must be signed in to change notification settings - Fork 57
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
Documenting relationships to the RDB2RDF Direct Mapping #455
Comments
I added examples to the examples directory dm-example-1 through dm-example-5. Note that we can't reproduce triples that use the foreign-key relationship to provide a value, as that is not handled through our conversions as foreign-keys are used only for validation. Also, there's a small bug in the second example: one of the triple results is |
Can you give an example for what you mean here? If we have a missing functionality in our system, we may have to record that in a separate issue explicitly. (Even if we decide to close it without any followup in the spec.) |
(The merge has been done, but a pending question keeps this issue open for now...) |
The main difference between the RDB2RDF examples and our own is that they can use foreign-key information to create data. For example, People references Addresses using a composite foreign key and expects a triple to be emitted containing a value from the Addresses table. Example 2 (metadata, people.csv, addresses.csv, department.csv, results)Here, note that there is a virtual column
Note that they can reference Other examples use variations on this, in some cases including the BNode identifier created for a row that has a composite primary key. For us to produce the same output would require a way to go from the |
(This issue is for the LCCR, not for the upcoming publication)
Our charter also includes:
Our approach turned out to be a bit different than either R2RML or the Direct Mapping. I believe, therefore, that we should document how the examples in the Direct Mapping document can be reproduced with a (hopefully simple) metadata. I have created the minimal metadata for the first example in the Direct Mapping:
Actually, it is worth nothing that some additional features can be added that would reflect the original RDB schema, yielding:
Although these additions are not strictly necessary to reproduce the mapping, they are a "plus" considering validation.
@gkellogg, maybe it is worth testing with your processor that these are correct and produce the right results. I also think that these should be documented somewhere (as a result of the charter); maybe this simple example, and another slightly more complex one could be added in the metadata document.
B.t.w., if this mapping is correct, note the need for the
virtual
column. This may be an argument in favour of a final resolution of #179...The text was updated successfully, but these errors were encountered: