-
Notifications
You must be signed in to change notification settings - Fork 17
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
How to represent one-to-many and nested relationships #179
Comments
See the example YARRRML below, does this answer your question? prefixes:
ex: "http://example.com/"
idlab-fn: "http://example.com/idlab/function/"
grel: "http://users.ugent.be/~bjdmeest/function/grel.ttl#"
mappings:
Equipment:
sources:
- ['data.csv~csv']
s: http://example.com/equiment/$(Equipment)
po:
- [a, ex:Equipment]
- [ex:subEquipment, http://example.com/equiment/$(Sub-Equipment)~iri]
- [ex:hasSensor, http://example.com/sensor/$(Sensor)~iri]
Sensor:
sources:
- ['data.csv~csv']
s: http://example.com/sensor/$(Sensor)
po:
- [a, ex:Sensor]
- [ex:subSensor, http://example.com/sensor/$(Sub-Sensor)~iri]
|
Can I know how to deal with the blank nodes in the sample query-result.csv? |
How do you mean? Empty values are by default seen as null values and thus skipped, conforming to the R2RML specification. Have you been able to try the example given above? In what way does its output not conform with your expectations? |
If you look at Line 2 and 3 in my CSV, AHU1A appears twice because it links to VAV-3 and VAV4. Will it occur as a duplicate definition in [a, ex:Equipment]? |
The resulting graph might contain duplicates, but mapping engines could filter out duplicates, see eg https://github.com/RMLio/rmlmapper-java#duplicate-removal-and-serialization-format. |
Hi Ben,
This makes sense to me. Let me try and get back to you.
Sincerely,
Zhangcheng Qiang
…On Wed, 16 Nov 2022 at 20:44, Ben De Meester ***@***.***> wrote:
The resulting graph might contain duplicates, but mapping engines could
filter out duplicates, see eg
https://github.com/RMLio/rmlmapper-java#duplicate-removal-and-serialization-format
.
—
Reply to this email directly, view it on GitHub
<#179 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOVDZBA3ZYHHLRYHMMF3DDDWISUJJANCNFSM6AAAAAARNUKZOQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Issue type: ❓ Question
As shown in the excel query-result.csv, I am asking how to represent one-to-many and nested relationships:
The text was updated successfully, but these errors were encountered: