-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmapping.r2rml.ttl
71 lines (62 loc) · 1.36 KB
/
mapping.r2rml.ttl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
PREFIX rr: <http://www.w3.org/ns/r2rml#>
PREFIX ex: <http://example.com/ns#>
PREFIX schema: <http://schema.org/>
<#Employee>
rr:logicalTable [ rr:tableName "EMP2" ];
rr:subjectMap [
rr:template "http://data.example.com/employee/{EMPNO}" ;
rr:class ex:Employee ;
];
rr:predicateObjectMap [
rr:predicate ex:name ;
rr:objectMap [
rr:column "ENAME" ;
];
]
.
<#Department>
rr:logicalTable [ rr:tableName "DEPT2" ];
rr:subjectMap [
rr:template "http://data.example.com/department/{DEPTNO}" ;
rr:class ex:Department ;
];
rr:predicateObjectMap [
rr:predicate ex:name ;
rr:objectMap [
rr:column "DNAME" ;
rr:language "en" ;
];
];
rr:predicateObjectMap [
rr:predicate schema:location ;
rr:objectMap [
rr:template "http://data.example.com/location/{LOC}" ;
];
]
.
<#Employee2Department>
rr:logicalTable [ rr:tableName "EMP2DEPT" ];
rr:subjectMap [
rr:template "http://data.example.com/employee/{EMPNO}" ;
];
rr:predicateObjectMap [
rr:predicate ex:department ;
rr:objectMap [
rr:template "http://data.example.com/department/{DEPTNO}" ;
];
]
.
<#Location>
rr:logicalTable [ rr:tableName "DEPT2" ];
rr:subjectMap [
rr:template "http://data.example.com/location/{LOC}" ;
rr:class schema:Place ;
];
rr:predicateObjectMap [
rr:predicate schema:name ;
rr:objectMap [
rr:column "LOC" ;
rr:language "en" ;
];
]
.