-
Notifications
You must be signed in to change notification settings - Fork 20
/
PatientOnto.obda
60 lines (47 loc) · 1.6 KB
/
PatientOnto.obda
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
[PrefixDeclaration]
: http://example.org/hospital#
inst: http://example.org/hospital/instances/
[SourceDeclaration]
sourceUri PatientDB
connectionUrl jdbc:h2:tcp://localhost/helloworld
username sa
password
driverClass org.h2.Driver
[MappingDeclaration] @collection [[
mappingId Patient
target inst:ds1/{patientid} a :Patient ; :hasName {name}^^xsd:string .
source Select patientid,name FROM "tbl_patient"
mappingId Neop
target inst:ds1/{patientid} :hasNeoplasm inst:ds1/neoplasm/{patientid} .
source SELECT patientid FROM "tbl_patient"
mappingId hasStage-IIIa
target inst:ds1/neoplasm/{patientid} :hasStage inst:stage-IIIa .
source SELECT patientid FROM "tbl_patient"
WHERE stage = 4 AND type = false
mappingId NSCLC
target inst:ds1/{patientid} a :NSCLC .
source SELECT patientid FROM "tbl_patient"
WHERE type = false
mappingId SCLC
target inst:ds1/{patientid} a :SCLC .
source SELECT patientid FROM "tbl_patient"
WHERE type = true
mappingId Patient-2
target inst:ds2/{PID} a :Patient ; :hasName {NAME}^^xsd:string .
source SELECT PID, NAME FROM T_NAME
mappingId Neoplasm-2a
target inst:ds2/{PID} :hasNeoplasm inst:ds2/nsclc/{PID} .
source SELECT PID FROM T_NSCLC
mappingId Neoplasm-2b
target inst:ds2/{PID} :hasNeoplasm inst:ds2/sclc/{PID} .
source SELECT PID FROM T_SCLC
mappingId nsclc
target inst:ds2/nsclc/{PID} a :NSCLC .
source SELECT PID FROM T_NSCLC
mappingId sclc
target inst:ds2/sclc/{PID} a :SCLC .
source SELECT PID FROM T_SCLC
mappingId Stage-IIIa-2
target inst:ds2/nsclc/{PID} :hasStage inst:stage-IIIa .
source SELECT PID FROM T_NSCLC WHERE STAGE = 'three-a'
]]