-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmapping.ttl
190 lines (178 loc) · 6.78 KB
/
mapping.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix dc: <http://purl.org/dc/elements/1.1/>.
@prefix dcterms: <http://purl.org/dc/terms/>.
@prefix dcat: <http://www.w3.org/ns/dcat#>.
@prefix skos: <http://www.w3.org/2004/02/skos/core#>.
@prefix qb: <http://purl.org/linked-data/cube#>.
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix disco: <http://rdf-vocabulary.ddialliance.org/discovery#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix adms: <http://www.w3.org/ns/adms#>.
@prefix org: <http://www.w3.org/ns/org#>.
@prefix prov: <http://www.w3.org/ns/prov#>.
@prefix schema: <http://schema.org/>.
@prefix swrc: <http://swrc.ontoware.org/ontology#>.
@prefix xkos: <http://purl.org/linked-data/xkos#>.
#################
# mappings from disco-classes.csv
disco:AnalysisUnit a rdfs:Class, owl:Class;
disco:mapping [
a disco:Mapping ;
disco:ddi-L-XPath 'r:AnalysisUnit' ;
]
disco:CategoryStatistics a rdfs:Class, owl:Class;
disco:mapping [
a disco:Mapping ;
disco:ddi-L-XPath 'p:CategoryStatistics' ;
]
disco:Instrument a rdfs:Class, owl:Class;
disco:mapping [
a disco:Mapping ;
disco:ddi-L-XPath 'd:Instrument' ;
]
disco:Question a rdfs:Class, owl:Class;
disco:mapping [
a disco:Mapping ;
disco:ddi-L-XPath 'd:QuestionItem | d:MultipleQuestionItem' ;
]
disco:Questionnaire a rdfs:Class, owl:Class;
disco:mapping [
a disco:Mapping ;
disco:ddi-L-XPath 'd:Instrument' ;
disco:context 'The instument of the study';
]
disco:Study a rdfs:Class, owl:Class;
disco:mapping [
a disco:Mapping ;
disco:ddi-L-XPath 's:StudyUnit' ;
]
disco:Variable a rdfs:Class, owl:Class;
disco:mapping [
a disco:Mapping ;
disco:ddi-L-XPath '//l:Variable' ;
]
#################
# mappings from disco-datatype-properties.csv
skos:notation a rdfs:Class, owl:Class;
disco:mapping [
a disco:Mapping ;
disco:ddi-L-XPath '//l:Variable/l:VariableName' ;
disco:ddi-L-Documentation 'http://www.ddialliance.org/Specification/DDI-Lifecycle/3.1/XMLSchema/FieldLevelDocumentation/logicalproduct_xsd/elements/Variable.html' ;
disco:context 'skos:notation represents variable label';
disco:context 'SELECT ?notation WHERE { ?notation rdfs:domain ?variable. ?variable a disco:Variable. }';
]
disco:frequency a rdfs:Class, owl:Class;
disco:mapping [
a disco:Mapping ;
disco:ddi-L-XPath 'p:CaseQuantity' ;
]
disco:questionText a rdfs:Class, owl:Class;
disco:mapping [
a disco:Mapping ;
disco:ddi-L-XPath 'd:QuestionText' ;
]
disco:purpose a rdfs:Class, owl:Class;
disco:mapping [
a disco:Mapping ;
disco:ddi-L-XPath 's:Purpose' ;
]
disco:subtitle a rdfs:Class, owl:Class;
disco:mapping [
a disco:Mapping ;
disco:ddi-L-XPath 'r:SubTitle' ;
]
#################
# mappings from disco-object-properties.csv
disco:concept a rdfs:Class, owl:Class;
disco:mapping [
a disco:Mapping ;
disco:ddi-L-XPath '//l:Vaiable/l:ConceptReference' ;
disco:context 'Varialbe has a concept';
disco:context 'SELECT ?concept WHERE{?variable a disco:Variable . ?variable disco:concept ?concept.}';
]
disco:concept a rdfs:Class, owl:Class;
disco:mapping [
a disco:Mapping ;
disco:ddi-L-XPath '//d:QuestionItem/r:ConceptReference' ;
disco:context 'Question is defined by concept';
disco:context '"SELECT ?concept WHERE{?question a disco:Question . ?question disco:concept ?concept.}';
]
disco:instrument a rdfs:Class, owl:Class;
disco:mapping [
a disco:Mapping ;
disco:ddi-L-XPath '//d:DataCollection/[d:QuestionItem d:MultipleQuestionItem]' ;
disco:context 'The instrument of the study questionaire ';
disco:context 'SELECT ?instrument WHERE{?study a disco:Study . ?study disco:instrument ?instrument.}';
]
disco:question a rdfs:Class, owl:Class;
disco:mapping [
a disco:Mapping ;
disco:ddi-L-XPath '//l:Variable/l:QuestionReference' ;
disco:context 'Variable can have a question';
disco:context 'SELECT ?question WHERE{?variable a disco:Variable . ?variable disco:question ?question.}';
]
disco:question a rdfs:Class, owl:Class;
disco:mapping [
a disco:Mapping ;
disco:ddi-L-XPath '//[d:QuestionItem d:MultipleQuestionItem]' ;
disco:context 'Questions in a questionaire';
disco:context 'SELECT ?question WHERE{?study a disco:Study . ?study disco:instrument ?instrument. ?instrument disco:question ?question.}';
]
disco:representation a rdfs:Class, owl:Class;
disco:mapping [
a disco:Mapping ;
disco:ddi-L-XPath '//l:Variable/l:Representation/l:CodeRepresentation/[r:CodeSchemeReference l:NumericRepresentation l:TextRepresentation l:DateTimeRepresentation]' ;
disco:context 'Variables can have a representation';
disco:context 'SELECT ?representation WHERE{?variable a disco:Variable . ?variable disco:representation ?representation.}';
]
disco:universe a rdfs:Class, owl:Class;
disco:mapping [
a disco:Mapping ;
disco:ddi-L-XPath 'disco:universe' ;
disco:context 'Variable can have a concept';
disco:context 'SELECT ?universe WHERE{?variable a disco:Variable . ?variable disco:universe ?universe.}';
]
#################
# mappings from external-classes.csv
skos:ConceptScheme a rdfs:Class, owl:Class;
disco:mapping [
a disco:Mapping ;
disco:ddi-L-XPath '//l:Variable/l:CodeScheme' ;
disco:context 'Variables can have a coded representaion';
disco:context 'SELECT ?codeScheme WHERE{?variable a disco:Variable . ?variable disco:representation ?representation. ?representation skos:ConceptScheme ?codeScheme.}';
]
#################
# mappings from external-datatype-properties.csv
skos:notation a rdfs:Class, owl:Class;
disco:mapping [
a disco:Mapping ;
disco:ddi-L-XPath '//l:Variable/l:VariableName' ;
disco:ddi-L-Documentation 'http://www.ddialliance.org/Specification/DDI-Lifecycle/3.1/XMLSchema/FieldLevelDocumentation/logicalproduct_xsd/elements/Variable.html' ;
disco:context 'skos:notation represents variable label';
disco:context 'SELECT ?notation WHERE { ?notation rdfs:domain ?variable. ?variable a disco:Variable. }';
]
#################
# mappings from external-object-properties.csv
dcterms:identifier a rdfs:Class, owl:Class;
disco:mapping [
a disco:Mapping ;
disco:ddi-L-XPath '//l:Variable/l:VariableName' ;
disco:context 'dcterms:identifier represents variable label';
disco:context 'SELECT ?identifier WHERE { ?variable a disco:Variable . ?variable dcterms:identifier ?identifier. }';
]
skos:prefLabel a rdfs:Class, owl:Class;
disco:mapping [
a disco:Mapping ;
disco:ddi-L-XPath '//l:Variable/r:Label' ;
disco:context 'skos:prefLabel represents the label of the variable';
disco:context 'SELECT ?label WHERE{?variable a disco:Variable . ?variable skos:prefLabel ?label.}';
]
skos:prefLabel a rdfs:Class, owl:Class;
disco:mapping [
a disco:Mapping ;
disco:ddi-L-XPath '//d:QuestionItem/d:QuestionItemName' ;
disco:context 'Name of question';
disco:context 'SELECT ?label WHERE{?question a disco:Question . ?question skos:prefLabel ?label.}';
]