Skip to content

Commit 77eb2cd

Browse files
committed
activity methods rml
1 parent 7a9a7b7 commit 77eb2cd

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

rcads/rml-activities.ttl

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,17 @@
4949
rml:iterator "/dataroot/_x0038_0_Persons"
5050
].
5151

52+
# Logical source and TriplesMap for ActivityMethods join table
53+
:TriplesMapActivityMethods a rr:TriplesMap;
54+
rml:logicalSource [
55+
rml:source "data/xml/03m_ActivityMethods.xml";
56+
rml:referenceFormulation ql:XPath;
57+
rml:iterator "/dataroot/_x0030_3m_ActivityMethods"
58+
];
59+
rr:subjectMap [
60+
rr:template "http://purl.org/twc/poem/individual/methodType/{MethodID}"
61+
].
62+
5263
:TriplesMap rr:subjectMap [
5364
rr:template "http://purl.org/twc/poem/individual/activity/{ActivityID}"
5465
].
@@ -119,4 +130,16 @@
119130
rr:objectMap [
120131
rml:reference "ActivityDate"
121132
]
133+
].
134+
135+
# Link each activity to its method type(s) using rdf:type and the join table
136+
:TriplesMap rr:predicateObjectMap [
137+
rr:predicate rdf:type;
138+
rr:objectMap [
139+
rr:parentTriplesMap :TriplesMapActivityMethods;
140+
rr:joinCondition [
141+
rr:child "ActivityID";
142+
rr:parent "ActivityID"
143+
]
144+
];
122145
].

0 commit comments

Comments
 (0)