├── .gitattributes ├── .htaccess ├── DDI-RDF_Discovery_Vocabulary.pdf ├── README.md ├── archive ├── discovery (1).html └── discovery (1).ttl ├── build ├── build.bat ├── build.sh ├── mappings │ ├── csv2html.sh │ ├── csv2ttl.sh │ ├── mapping.html │ ├── mapping.table.template.html │ ├── mapping.ttl │ └── run.sh └── rdf2htmlclasses.xsl ├── ddiexample1.ttl ├── diagrams ├── DDI-RDFDiscoveryVocabulary.eap ├── Relations-DDI-XML.png ├── access-rights-statements-and-licenses.png ├── archive │ ├── DDI-RDFDiscoveryVocabulary (1).eap │ ├── DDI-RDFDiscoveryVocabulary (2).eap │ ├── DDI-RDFDiscoveryVocabulary.eap │ ├── Relations-DDI-XML.png │ ├── access-rights-statements-and-licenses.png │ ├── concept.png │ ├── data-collection.png │ ├── data-file-coverage.png │ ├── data-file.png │ ├── datatype-properties.png │ ├── descriptive-statistics.png │ ├── identification-versioning.png │ ├── logical-data-set-coverage.png │ ├── logical-data-set.png │ ├── mappings.png │ ├── object-properties (2014.02.16).png │ ├── object-properties (2014.02.16).svg │ ├── object-properties (2014.02.16).wmf │ ├── object-properties.png │ ├── object-properties.wmf │ ├── object-properties_HiRes_vertical (2014.02.16).png │ ├── overview-data-set.png │ ├── overview.png │ ├── representation (2014.02.16).png │ ├── representation.png │ ├── study-agent.png │ ├── study-coverage.png │ ├── study-metadata.png │ ├── study-universe.png │ ├── variable (2014.02.16).png │ ├── variable-and-variable-definition (2014.02.16).png │ ├── variable-and-variable-definition.png │ └── variable.png ├── concept.png ├── data-collection.png ├── data-file-coverage.png ├── data-file.png ├── datatype-properties.png ├── descriptive-statistics.png ├── identification-versioning.png ├── logical-data-set-coverage.png ├── logical-data-set.png ├── mappings.png ├── object-properties.png ├── object-properties.svg ├── object-properties.wmf ├── object-properties_HiRes_vertical.png ├── overview-data-set.png ├── overview.png ├── representation.png ├── study-agent.png ├── study-coverage.png ├── study-metadata.png ├── study-universe.png ├── variable-and-variable-definition.png ├── variable.png └── wmf2svg.cmd ├── discovery.html ├── discovery.nt ├── discovery.rdf ├── discovery.ttl ├── discovery.xml ├── discovery_static.html ├── discovery_static_forPDF.html ├── documentation └── classes.html ├── images ├── Example_ISSP2011_PARTLIV_Frequencies.png ├── Example_ISSP2011_WRKHRS_Frequencies.png ├── Example_ISSP2011_WRKHRS_SummaryStatistics.png ├── example-access-policy.png ├── example-anzsic.png ├── example-concept.png ├── example-general-data-file-info.png ├── example-overview.png ├── example-questionnaires.png ├── example-universe.png ├── example-variable-detail.png ├── example-variable-list.png ├── missy-categoryStatistics.jpg └── missy-summaryStatistics.jpg ├── mapping.ttl ├── mappings.ttl ├── respec └── respec-w3c-common.js ├── spec ├── discovery-2013.04.30.html ├── discovery-2013.05.01.html ├── discovery-2013.05.07.html ├── discovery-2013.05.08.html ├── discovery-2013.05.17.html ├── discovery-2013.05.22.html ├── discovery-2013.05.25.html ├── discovery-2013.07.16.html ├── discovery-2013.07.26.html └── discovery-2013.07.28.html └── test └── test_rdf-vocabulary_ddialliance_org.cmd /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /.htaccess: -------------------------------------------------------------------------------- 1 | # Turn off MultiViews, multiple content types need multiple extensions 2 | Options -MultiViews 3 | 4 | AddType text/html;charset=UTF-8 .html 5 | AddType text/n3;charset=UTF-8 .n3 6 | AddType application/n-triples .nt 7 | AddType application/rdf+xml .rdf 8 | AddType text/turtle;charset=UTF-8 .ttl 9 | 10 | # Rewrite engine setup 11 | RewriteEngine On 12 | RewriteBase / 13 | 14 | # Rewrite rule to serve HTML content from the vocabulary URI if requested 15 | RewriteCond %{HTTP_ACCEPT} text/html [OR] 16 | RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml 17 | RewriteRule ^(discovery|xkos|phdd)$ $1.html [R=303] 18 | 19 | # Rewrite rule to serve N3 content from the vocabulary URI if requested 20 | RewriteCond %{HTTP_ACCEPT} text/n3 [OR] 21 | RewriteCond %{HTTP_ACCEPT} text/rdf\+n3 22 | RewriteRule ^(discovery|xkos|phdd)$ $1.n3 [R=303] 23 | 24 | # Rewrite rule to serve N-triples content from the vocabulary URI if requested 25 | RewriteCond %{HTTP_ACCEPT} application/n-triples 26 | RewriteRule ^(discovery|xkos|phdd)$ $1.nt [R=303] 27 | 28 | 29 | # Rewrite rule to serve RDF/XML content from the vocabulary URI if requested 30 | RewriteCond %{HTTP_ACCEPT} application/rdf\+xml 31 | RewriteRule ^(discovery|xkos|phdd)$ $1.rdf [R=303] 32 | 33 | # Rewrite rule to serve Turtle content from the vocabulary URI if requested 34 | RewriteCond %{HTTP_ACCEPT} text/turtle [OR] 35 | RewriteCond %{HTTP_ACCEPT} application/x-turtle 36 | RewriteRule ^(discovery|xkos|phdd)$ $1.ttl [R=303] 37 | 38 | # Rewrite rule to serve HTML content from the vocabulary URI by default 39 | RewriteRule ^(discovery|xkos|phdd)$ $1.html [R=303] 40 | 41 | # Redirect for empty path to RDF page at DDI Alliance 42 | RewriteRule ^$ http://www.ddialliance.org/Specification/RDF [R=303] 43 | -------------------------------------------------------------------------------- /DDI-RDF_Discovery_Vocabulary.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/DDI-RDF_Discovery_Vocabulary.pdf -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## DDI Discovery Vocabulary 2 | 3 | This repository contains specifications and documentation for the **DDI Discovery Vocabulary**, an RDF Schema vocabulary that enables discovery of research and survey data on the Web. It is based on [DDI](http://www.ddialliance.org/) (Data Documentation Initiative) XML formats. 4 | 5 | The latest published version of this vocabulary can be viewed here: 6 | 7 | http://rdf-vocabulary.ddialliance.org/discovery 8 | 9 | **Build** 10 | 11 | run build.bat or build.sh to generate 12 | 13 | * html documentation 14 | * N3 and XML conversions of discovery.ttl 15 | 16 | *please note; discovery.ttl is the source* 17 | 18 | Mailing-list: [google groups](https://groups.google.com/forum/#!forum/ddi-rdf-vocabulary) 19 | 20 | Contributors are listed in the [Acknowledgements](http://rdf-vocabulary.ddialliance.org/discovery#acknowledgements). 21 | -------------------------------------------------------------------------------- /archive/discovery (1).ttl: -------------------------------------------------------------------------------- 1 | @prefix rdf: . 2 | @prefix rdfs: . 3 | @prefix xsd: . 4 | @prefix dc: . 5 | @prefix dcterms: . 6 | @prefix dcat: . 7 | @prefix skos: . 8 | @prefix qb: . 9 | @prefix owl: . 10 | @prefix disco: . 11 | @prefix foaf: . 12 | @prefix adms: . 13 | @prefix org: . 14 | @prefix prov: . 15 | @prefix xkos: . 16 | 17 | 18 | ################################################################# 19 | # Ontology 20 | # 21 | # Notes 22 | # - dc:related used for extra material 23 | ################################################################# 24 | 25 | a owl:Ontology; 26 | dc:title 27 | "DDI-RDF Discovery Vocabulary"@en; 28 | rdfs:comment 29 | "This specification defines the DDI Discovery Vocabulary, an RDF Schema vocabulary that enables discovery of research and survey data on the Web. It is based on DDI (Data Documentation Initiative) XML formats."@en; 30 | dc:contributor 31 | "Thomas Bosch", 32 | "Richard Cyganiak", 33 | "Joachim Wackerow", 34 | "Benjamin Zapilko"; 35 | dc:creator 36 | "Thomas Bosch", 37 | "Franck Cotton", 38 | "Richard Cyganiak", 39 | "Arofan Gregory", 40 | "Benedikt Kämpgen", 41 | "Olof Olsson", 42 | "Heiko Paulheim", 43 | "Joachim Wackerow", 44 | "Benjamin Zapilko"; 45 | owl:versionInfo "Version 0.6 - 2013-09-30". 46 | 47 | ################################################################# 48 | # Classes 49 | # 50 | # Possibly additional classes to be used: org:Organisation, foaf:Agent 51 | ################################################################# 52 | 53 | # AnalysisUnit class 54 | # DDI3.1 r:AnalysisUnit 55 | disco:AnalysisUnit a rdfs:Class, owl:Class; 56 | rdfs:label "Analysis Unit"@en, "Analyseeinheit"@de; 57 | rdfs:comment "The process collecting data is focusing on the analysis of a particular type of subject. If, for example, the adult population of Finland is being studied, the AnalysisUnit would be individuals or persons."@en; 58 | rdfs:isDefinedBy ; 59 | rdfs:subClassOf skos:Concept. 60 | 61 | # RepresentedVariable class 62 | disco:RepresentedVariable a rdfs:Class, owl:Class; 63 | rdfs:label "Data element"@en, "Élément de donnée"@fr; 64 | rdfs:comment "RepresentedVariables encompasse study-independent, re-usable parts of variables like occupation classification."@en; 65 | rdfs:isDefinedBy . 66 | 67 | # DataFile class 68 | disco:DataFile a rdfs:Class, owl:Class; 69 | rdfs:label "Data file"@en, "Fichier de données"@fr; 70 | rdfs:comment "The class DataFile, which is also a dcterms:Dataset, represents all the data files containing the microdata datasets."@en ; 71 | rdfs:subClassOf dcat:Distribution; 72 | rdfs:isDefinedBy . 73 | 74 | # DescriptiveStatistics class 75 | disco:DescriptiveStatistics a rdfs:Class, owl:Class; 76 | rdfs:label "Descriptive statistics"@en, "Statistique descriptive"@fr; 77 | rdfs:comment "SummaryStatistics pointing to variables and CategoryStatistics pointing to categories and codes are both DescriptiveStatistics."@en; 78 | rdfs:isDefinedBy . 79 | 80 | # SummaryStatistics class 81 | disco:SummaryStatistics a rdfs:Class, owl:Class; 82 | rdfs:label "Summary statistics"@en; 83 | rdfs:comment "For SummaryStatistics, maximum values, minimum values, and standard deviations can be defined."@en; 84 | rdfs:subClassOf disco:DescriptiveStatistics; 85 | rdfs:isDefinedBy . 86 | 87 | # CategoryStatistics class 88 | # DDI3.1 p:CategoryStatistics 89 | disco:CategoryStatistics a rdfs:Class, owl:Class; 90 | rdfs:label "Category statistics"@en; 91 | rdfs:comment "For CategoryStatistics, frequencies, percentages, and weighted percentages can be defined."@en; 92 | rdfs:subClassOf disco:DescriptiveStatistics; 93 | rdfs:isDefinedBy . 94 | 95 | # Instrument class (e.g., questionnaire, sensors, registers) 96 | # XXX: Additional subclasses to be discussed. 97 | # DDI3.1 d:Instrument 98 | disco:Instrument a rdfs:Class, owl:Class; 99 | rdfs:label "Instrument"@en; 100 | rdfs:label "Instrument de collecte"@fr; 101 | rdfs:comment "The data for the study are collected by an Instrument. The purpose of an Instrument, i.e. an interview, a questionnaire or another entity used as a means of data collection, is in the case of a survey to record the flow of a questionnaire, its use of questions, and additional component parts. A questionnaire contains a flow of questions."@en; 102 | rdfs:isDefinedBy . 103 | 104 | # LogicalDataSet class 105 | disco:LogicalDataSet a rdfs:Class, owl:Class; 106 | rdfs:label "LogicalDataSet"@en, "Ensemble de données"@fr; 107 | rdfs:comment "Each study has a set of logical metadata associated with the processing of data, at the time of collection or later during cleaning, and re-coding. LogicalDataSet represents the microdata dataset."@en; 108 | rdfs:subClassOf dcat:Dataset; 109 | rdfs:isDefinedBy . 110 | 111 | # Question class 112 | # skos:prefLabel represents question name 113 | # DDI3.1 d:QuestionItem|d:MultipleQuestionItem 114 | disco:Question a rdfs:Class, owl:Class; 115 | rdfs:label "Question"@en, "Question"@fr; 116 | rdfs:comment "A Question is designed to get information upon a subject, or sequence of subjects, from a respondent."@en; 117 | rdfs:isDefinedBy . 118 | 119 | # disco:responseDomain 120 | # cardinality at disco:Question: 0..n 121 | # cardinality at disco:Representation: 1..n 122 | disco:responseDomain a rdf:Property, owl:ObjectProperty; 123 | rdfs:label "responseDomain"@en; 124 | rdfs:comment "The response domain of questions."@en; 125 | rdfs:domain disco:Question; 126 | rdfs:range disco:Representation; 127 | rdfs:isDefinedBy . 128 | 129 | # Questionnaire class 130 | disco:Questionnaire a rdfs:Class, owl:Class; 131 | rdfs:label "Questionnaire"@en, "Fragebogen"@de; 132 | rdfs:comment "A questionnaire contains a flow of questions. "@en; 133 | rdfs:isDefinedBy ; 134 | rdfs:subClassOf disco:Instrument. 135 | 136 | # Study class 137 | # DDI3.1 s:StudyUnit 138 | disco:Study a rdfs:Class, owl:Class; 139 | rdfs:label "Study"@en, "Étude"@fr; 140 | rdfs:comment "A Study represents the process by which a data set was generated or collected."@en; 141 | rdfs:isDefinedBy . 142 | 143 | # Study group class 144 | disco:StudyGroup a rdfs:Class, owl:Class; 145 | rdfs:label "Study Group"@en, "Studiengruppe"@de; 146 | rdfs:comment "In some cases, where data collection is cyclic or on-going, data sets may be released as a StudyGroup, where each cycle or wave of the data collection activity produces one or more data sets. This is typical for longitudinal studies, panel studies, and other types of series (to use the DDI term). In this case, a number of Study objects would be collected into a single StudyGroup."@en; 147 | rdfs:isDefinedBy . 148 | 149 | # Variable class 150 | # DDI3.1 l:Variable 151 | disco:Variable a rdfs:Class, owl:Class; 152 | rdfs:label "Variable"@en, "Variable"@fr; 153 | rdfs:comment "Variables provide a definition of the column in a rectangular data file. Variable is a characteristic of a unit being observed. A variable might be the answer of a question, have an administrative source, or be derived from other variables."@en; 154 | rdfs:isDefinedBy . 155 | 156 | # Universe class 157 | # skos:Concept/skos:notation represents universe name 158 | # skos:Concept/skos:prefLabel represents universe label 159 | # DDI3.1 c:Universe 160 | disco:Universe a rdfs:Class, owl:Class; 161 | rdfs:label "Universe"@en, "Univers"@fr; 162 | rdfs:comment "A Universe is the total membership or population of a defined class of people, objects or events."@en; 163 | rdfs:isDefinedBy ; 164 | rdfs:subClassOf skos:Concept. 165 | 166 | disco:Mapping 167 | a rdfs:Class, owl:Class; 168 | rdfs:label "Mapping"@en; 169 | rdfs:comment "Mappings betwenn DDI-RDF and DDI-XML"@en; 170 | rdfs:isDefinedBy . 171 | 172 | ################################################################# 173 | # Datatype properties 174 | ################################################################# 175 | 176 | 177 | # caseQuantity property 178 | # DDI3.1 p:CaseQuantity 179 | disco:caseQuantity a rdf:Property, owl:DatatypeProperty; 180 | rdfs:label "number of cases"@en, "nombre d'observations"@fr; 181 | rdfs:comment "case quantity of a DataFile."@en; 182 | rdfs:domain disco:DataFile; 183 | rdfs:range xsd:nonNegativeInteger; 184 | rdfs:isDefinedBy . 185 | 186 | # frequency property 187 | disco:frequency a rdf:Property, owl:DatatypeProperty; 188 | rdfs:label "frequency"@en, "fréquence"@fr; 189 | rdfs:comment "frequency"@en; 190 | rdfs:domain disco:CategoryStatistics; 191 | rdfs:range xsd:nonNegativeInteger; 192 | rdfs:isDefinedBy . 193 | 194 | # isPublic property 195 | disco:isPublic a rdf:Property, owl:DatatypeProperty; 196 | rdfs:label "is public"@en, "ist öffentlich"@de; 197 | rdfs:domain disco:LogicalDataSet; 198 | rdfs:comment "The value true indicates that the dataset can be accessed (usually downloaded) by anyone."@en; 199 | rdfs:range xsd:boolean; 200 | rdfs:isDefinedBy . 201 | 202 | # isValid property 203 | disco:isValid a rdf:Property, owl:DatatypeProperty; 204 | rdfs:label "is valid"@en; 205 | rdfs:domain skos:Concept; 206 | rdfs:comment "Indicates if the code (represented by skos:Concept) is valid or missing."@en; 207 | rdfs:range xsd:boolean; 208 | rdfs:isDefinedBy . 209 | 210 | # questionText property 211 | # DDI3.1 d:QuestionText 212 | disco:questionText a rdf:Property, owl:DatatypeProperty; 213 | rdfs:label "question text"@en, "Fragetext"@de; 214 | rdfs:comment "question text"@en; 215 | rdfs:domain disco:Question; 216 | rdfs:range rdf:langString; 217 | rdfs:isDefinedBy . 218 | 219 | # percentage property 220 | disco:percentage a rdf:Property, owl:DatatypeProperty; 221 | rdfs:label "percentage"@en, "pourcentage"@fr; 222 | rdfs:comment "percentage"@en; 223 | rdfs:domain [a owl:Class; owl:unionOf (disco:SummaryStatistics disco:CategoryStatistics)]; 224 | rdfs:range xsd:decimal; 225 | rdfs:isDefinedBy . 226 | 227 | # computationBase property 228 | disco:computationBase a rdf:Property, owl:DatatypeProperty; 229 | rdfs:label "computation base"@en, "pourcentage"@fr; 230 | rdfs:comment "computation base"@en; 231 | rdfs:domain [a owl:Class; owl:unionOf (disco:SummaryStatistics disco:CategoryStatistics)]; 232 | rdfs:range rdf:langString; 233 | rdfs:isDefinedBy . 234 | 235 | # cumulativePercentage property 236 | disco:cumulativePercentage a rdf:Property, owl:DatatypeProperty; 237 | rdfs:label "cumulative percentage"@en; 238 | rdfs:comment "cumulative percentage"@en; 239 | rdfs:domain disco:CategoryStatistics; 240 | rdfs:range xsd:decimal; 241 | rdfs:isDefinedBy . 242 | 243 | # purpose property 244 | # DDI3.1 s:Purpose 245 | disco:purpose a rdf:Property, owl:DatatypeProperty; 246 | rdfs:label "purpose"@en, "Grund"@de; 247 | rdfs:comment "The purpose of a Study of a StudyGroup."@en; 248 | rdfs:domain [ a owl:Class; owl:unionOf (disco:Study disco:StudyGroup)]; 249 | rdfs:range rdf:langString; 250 | rdfs:isDefinedBy . 251 | 252 | # subtitle property 253 | # DDI3.1 r:SubTitle 254 | disco:subtitle a rdf:Property, owl:DatatypeProperty; 255 | rdfs:label "subtitle"@en, "Untertitel"@de; 256 | rdfs:comment "The sub-title of a Study of a StudyGroup."@en; 257 | rdfs:domain [ a owl:Class; owl:unionOf (disco:Study disco:StudyGroup)]; 258 | rdfs:range rdf:langString; 259 | rdfs:isDefinedBy . 260 | 261 | # standardDeviation property 262 | disco:standardDeviation a rdf:Property, owl:DatatypeProperty; 263 | rdfs:label "standard deviation"@en; 264 | rdfs:comment "standard deviation"@en; 265 | rdfs:domain disco:SummaryStatistics; 266 | rdfs:range xsd:decimal; 267 | rdfs:isDefinedBy . 268 | 269 | # numberOfCases property 270 | disco:numberOfCases a rdf:Property, owl:DatatypeProperty; 271 | rdfs:label "number of cases"@en; 272 | rdfs:comment "number of cases"@en; 273 | rdfs:domain disco:SummaryStatistics; 274 | rdfs:range xsd:nonNegativeInteger; 275 | rdfs:isDefinedBy . 276 | 277 | # maximum property 278 | disco:maximum a rdf:Property, owl:DatatypeProperty; 279 | rdfs:label "maximum"@en; 280 | rdfs:comment "maximum"@en; 281 | rdfs:domain disco:SummaryStatistics; 282 | rdfs:range xsd:decimal; 283 | rdfs:isDefinedBy . 284 | 285 | # mean property 286 | disco:mean a rdf:Property, owl:DatatypeProperty; 287 | rdfs:label "mean"@en; 288 | rdfs:comment "mean"@en; 289 | rdfs:domain disco:SummaryStatistics; 290 | rdfs:range xsd:decimal; 291 | rdfs:isDefinedBy . 292 | 293 | # median property 294 | disco:median a rdf:Property, owl:DatatypeProperty; 295 | rdfs:label "median"@en; 296 | rdfs:comment "median"@en; 297 | rdfs:domain disco:SummaryStatistics; 298 | rdfs:range xsd:decimal; 299 | rdfs:isDefinedBy . 300 | 301 | # minimum property 302 | disco:minimum a rdf:Property, owl:DatatypeProperty; 303 | rdfs:label "minimum"@en; 304 | rdfs:comment "minimum"@en; 305 | rdfs:domain disco:SummaryStatistics; 306 | rdfs:range xsd:decimal; 307 | rdfs:isDefinedBy . 308 | 309 | # mode property 310 | disco:mode a rdf:Property, owl:DatatypeProperty; 311 | rdfs:label "mode"@en; 312 | rdfs:comment "mode"@en; 313 | rdfs:domain disco:SummaryStatistics; 314 | rdfs:range xsd:decimal; 315 | rdfs:isDefinedBy . 316 | 317 | disco:startDate a rdf:Property, owl:DatatypeProperty; 318 | rdfs:label "start date"@en; 319 | rdfs:comment "start date"@en; 320 | rdfs:domain dcterms:PeriodOfTime; 321 | rdfs:range xsd:date; 322 | rdfs:isDefinedBy . 323 | 324 | disco:endDate a rdf:Property, owl:DatatypeProperty; 325 | rdfs:label "end date"@en; 326 | rdfs:comment "end date"@en; 327 | rdfs:domain dcterms:PeriodOfTime; 328 | rdfs:range xsd:date; 329 | rdfs:isDefinedBy . 330 | 331 | disco:mappingDDI-L a rdf:Property, owl:DatatypeProperty; 332 | rdfs:label "Mapping from and to DDI-L"@en; 333 | rdfs:comment "Mapping from and to DDI-L"@en; 334 | rdfs:domain disco:Mapping; 335 | rdfs:range rdf:langString; 336 | rdfs:isDefinedBy . 337 | 338 | disco:mappingDDI-C a rdf:Property, owl:DatatypeProperty; 339 | rdfs:label "Mapping from and to DDI-C"@en; 340 | rdfs:comment "Mapping from and to DDI-C"@en; 341 | rdfs:domain disco:Mapping; 342 | rdfs:range rdf:langString; 343 | rdfs:isDefinedBy . 344 | 345 | disco:context a rdf:Property, owl:DatatypeProperty; 346 | rdfs:label "context specifies conditions which have to be fulfilled for specific mappings"@en; 347 | rdfs:comment "context specifies conditions which have to be fulfilled for specific mappings"@en; 348 | rdfs:domain disco:Mapping; 349 | rdfs:range rdf:langString; 350 | rdfs:isDefinedBy . 351 | 352 | ################################################################# 353 | # Object properties 354 | # 355 | # Cardinalities are noted: 356 | # Notation: Study -> Universe 1,...,n / 0,...,n 357 | # Meaning: Study has 1,...,n universes; Universe has 0,...,n studies. 358 | # 359 | ################################################################# 360 | 361 | # analysisUnit property (different meaning than concept property) 362 | # Variable -> AnalysisUnit 0,1 / 0,...,n 363 | # Study -> AnalysisUnit 0,1 / 0,...,n 364 | disco:analysisUnit a rdf:Property, owl:ObjectProperty; 365 | rdfs:label "analysis unit"@en, "Analyseeinheit"@de; 366 | rdfs:comment "analysis unit of a Study, a StudyGroup, or a Variable."@en; 367 | rdfs:domain [a owl:Class; owl:unionOf ( disco:Study disco:StudyGroup disco:Variable)]; 368 | rdfs:range disco:AnalysisUnit; 369 | rdfs:isDefinedBy . 370 | 371 | # basedOn property 372 | # * Variable -> RepresentedVariable 0,1 / 0,...,n 373 | disco:basedOn a rdf:Property, owl:ObjectProperty; 374 | rdfs:label "based on"@en, "utilise l'élément de donnée"@fr; 375 | rdfs:comment "points to the RepresentedVariable the Variable is based on."@en; 376 | rdfs:domain disco:Variable; 377 | rdfs:range disco:RepresentedVariable; 378 | rdfs:isDefinedBy . 379 | 380 | # collectionMode property 381 | disco:collectionMode a rdf:Property, owl:ObjectProperty; 382 | rdfs:label "collection mode"@en, "Datenerfassungsmodus"@de; 383 | rdfs:comment "mode of collection of a Questionnaire"@en; 384 | rdfs:domain disco:Questionnaire; 385 | rdfs:range skos:Concept; 386 | rdfs:isDefinedBy . 387 | 388 | # containsVariable property 389 | # * LogicalDataSet -> Variable 0,...,n / 1,...,n 390 | disco:containsVariable a rdf:Property, owl:ObjectProperty; 391 | rdfs:label "contains variable"@en, "contient la variable"@fr; 392 | rdfs:comment "points to Variable contained in the LogicalDataSet"@en; 393 | rdfs:domain disco:LogicalDataSet; 394 | rdfs:range disco:Variable; 395 | rdfs:isDefinedBy . 396 | 397 | # concept property 398 | # * RepresentedVariable -> Concept 1 / 0,...,n 399 | # * Question -> Concept 1,...,n / 0,...,n 400 | # * Variable -> Concept 1 / 0,...,n 401 | disco:concept a rdf:Property, owl:ObjectProperty; 402 | rdfs:label "concept"@en, "a pour concept"@fr; 403 | rdfs:comment "points to the DDI concept of a RepresentedVariable, a Variable, or a Question"@en; 404 | rdfs:domain [a owl:Class; owl:unionOf (disco:RepresentedVariable disco:Question disco:Variable)]; 405 | rdfs:range skos:Concept; 406 | rdfs:isDefinedBy . 407 | 408 | # aggregation property 409 | # * LogicalDataSet -> qb:DataSet 0,...,n / 0,...,n (Use Case: Look whether a LogicalDataSet exists for a qb:DataSet) 410 | disco:aggregation a rdf:Property, owl:ObjectProperty; 411 | rdfs:label "aggregation"@en; 412 | rdfs:comment "points to the aggregated data set of a microdata data set."@en; 413 | rdfs:domain disco:LogicalDataSet; 414 | rdfs:range qb:DataSet; 415 | rdfs:isDefinedBy . 416 | 417 | # dataFile property 418 | # * LogicalDataSet -> DataFile 0,...,n / 0,...,n 419 | disco:dataFile a rdf:Property, owl:ObjectProperty; 420 | rdfs:label "data file"@en, "a pour fichier de données"@fr; 421 | rdfs:comment "points to the DataFile of a Study or a LogicalDataSet."@en; 422 | rdfs:domain [a owl:Class; owl:unionOf (disco:Study disco:LogicalDataSet)]; 423 | rdfs:range disco:DataFile; 424 | rdfs:isDefinedBy . 425 | 426 | # ddifile property 427 | # (disco:Study disco:StudyGroup) -> foaf:Document 0,* / 0,* 428 | disco:ddifile a rdf:Property, owl:ObjectProperty; 429 | rdfs:label "DDI file"@en, "DDI-Datei"@de; 430 | rdfs:comment "points from a Study or a StudyGroup to the original DDI file which is a foaf:Document."@en; 431 | rdfs:domain [a owl:Class; owl:unionOf (disco:Study disco:StudyGroup)]; 432 | rdfs:range foaf:Document; 433 | rdfs:isDefinedBy . 434 | 435 | # externalDocumentation property 436 | # XXX: check whether skos:Concept is ok and cardinality 437 | disco:externalDocumentation a rdf:Property, owl:ObjectProperty; 438 | rdfs:label "external documentation"@en, "externe Dokumentation"@de; 439 | rdfs:comment "points from an Instrument to a foaf:Document which is the external documentation of the Instrument."@en; 440 | rdfs:domain disco:Instrument; 441 | rdfs:range foaf:Document; 442 | rdfs:isDefinedBy . 443 | 444 | # fundedBy property 445 | disco:fundedBy a rdf:Property, owl:ObjectProperty; 446 | rdfs:label "funded by"@en; 447 | rdfs:comment "points from a Study or a StudyGroup to the funding foaf:Agent which is either a foaf:Person or a org:Organization."@en; 448 | rdfs:domain [a owl:Class; owl:unionOf (disco:Study disco:StudyGroup)]; 449 | rdfs:range foaf:Agent; 450 | rdfs:subPropertyOf dcterms:contributor; 451 | rdfs:isDefinedBy . 452 | 453 | # inGroup property 454 | # Study -> StudyGroup 0,1 / 0...* 455 | disco:inGroup a rdf:Property, owl:ObjectProperty; 456 | rdfs:label "in group"@en; 457 | rdfs:comment "points from a Study to the StudyGroup which contains the Study."@en; 458 | rdfs:domain disco:Study; 459 | rdfs:range disco:StudyGroup; 460 | rdfs:isDefinedBy . 461 | 462 | # inputVariable property (links DataSets to DDI variables) 463 | # * qb:DataSet -> Variable 0,...,n / 0,...,n 464 | disco:inputVariable a rdf:Property, owl:ObjectProperty; 465 | rdfs:label "input variable"@en, "variable en entrée"@fr; 466 | rdfs:comment "Indicates the original Variable of an aggregated qb:DataSet."@en; 467 | rdfs:domain qb:DataSet; 468 | rdfs:range disco:Variable; 469 | rdfs:isDefinedBy . 470 | 471 | # instrument property 472 | # * Study -> Instrument 1 / 0,...,n (cardinality might have to be changed if we want to have reusable instruments in the future) 473 | disco:instrument a rdf:Property, owl:ObjectProperty; 474 | rdfs:label "instrument"@en, "a comme instrument"@fr; 475 | rdfs:comment "Indicates the Instrument of a Study or a LogicalDataSet."@en; 476 | rdfs:domain [a owl:Class; owl:unionOf (disco:Study disco:LogicalDataSet)]; 477 | rdfs:range disco:Instrument; 478 | rdfs:isDefinedBy . 479 | 480 | # kindOfData property 481 | # (disco:Study disco:StudyGroup) -> skos:Concept 0,* / 0,1 482 | disco:kindOfData a rdf:Property, owl:ObjectProperty; 483 | rdfs:label "kind of data"@en; 484 | rdfs:domain [a owl:Class; owl:unionOf (disco:Study disco:StudyGroup)]; 485 | rdfs:range skos:Concept; 486 | rdfs:comment "The general kind of data (e.g. geospatial, register, survey) collected in this study, given either as a skos:Concept, or as a blank node with attached free-text rdfs:label."; 487 | rdfs:isDefinedBy . 488 | 489 | # product property 490 | # * Study -> LogicalDataSet 0,...,n / 1,...,n 491 | disco:product a rdf:Property, owl:ObjectProperty; 492 | rdfs:label "product"@en, "Produkt"@de; 493 | rdfs:comment "Indicates the LogicalDataSets of a Studies."@en; 494 | rdfs:domain disco:Study; 495 | rdfs:range qb:LogicalDataSet; 496 | rdfs:isDefinedBy . 497 | 498 | # question property 499 | # * Variable -> Question 0,...,n / 0,...,n 500 | # * Questionnaire -> Question 1,...,n / 0,...,n 501 | disco:question a rdf:Property, owl:ObjectProperty; 502 | rdfs:label "question"@en, "a comme question"@fr; 503 | rdfs:comment "Indicates the Questions associated to Variables or contained in Questionnaires."@en; 504 | rdfs:domain [a owl:Class; owl:unionOf (disco:Variable disco:Questionnaire)]; 505 | rdfs:range disco:Question; 506 | rdfs:isDefinedBy . 507 | 508 | # representation property 509 | # * Variable -> Representation 1 / 0,...,n 510 | disco:representation a rdf:Property, owl:ObjectProperty; 511 | rdfs:label "representation"@en, "a pour représentation"@fr; 512 | rdfs:comment "RepresentedVariables and Variables can have a Representation whose individuals are either of the class rdfs:Datatype (to represent values) or skos:ConceptScheme (to represent code lists)."@en; 513 | rdfs:domain [a owl:Class; owl:unionOf (disco:RepresentedVariable disco:Variable disco:Question)]; 514 | rdfs:range [a owl:Class; owl:unionOf (skos:ConceptScheme rdfs:Datatype)]; 515 | rdfs:isDefinedBy . 516 | 517 | # statisticsCategory property 518 | # * DescriptiveStatistics -> Concept 0,...,n / 0,...,n 519 | disco:statisticsCategory a rdf:Property, owl:ObjectProperty; 520 | rdfs:label "statistics category"@en, "a pour concept statistique"@fr; 521 | rdfs:comment "Indicates the skos:Concept (representing codes and categories) of a specific CategoryStatistics individual."@en; 522 | rdfs:domain disco:CategoryStatistics; 523 | rdfs:range skos:Concept; 524 | rdfs:isDefinedBy . 525 | 526 | # statisticsDataFile property 527 | # * DescriptiveStatistics -> DataFile 0,...,n / 0,...,n 528 | disco:statisticsDataFile a rdf:Property, owl:ObjectProperty; 529 | rdfs:label "statistics data file"@en, "a pour fichier statistique"@fr; 530 | rdfs:comment "Indicates the DataFile of a specific DesciptiveStatistics individual."@en; 531 | rdfs:domain disco:DescriptiveStatistics; 532 | rdfs:range disco:DataFile; 533 | rdfs:isDefinedBy . 534 | 535 | # statisticsVariable property 536 | # * DescriptiveStatistics -> Variable 0,...,n / 0,...,n 537 | disco:statisticsVariable a rdf:Property, owl:ObjectProperty; 538 | rdfs:label "statistics variable"@en, "a pour variable statistique"@fr; 539 | rdfs:comment "Indicates the Variable of a specific SummaryStatistics individual."@en; 540 | rdfs:domain disco:SummaryStatistics; 541 | rdfs:range disco:Variable; 542 | rdfs:isDefinedBy . 543 | 544 | # weightedBy property 545 | # * SummaryStatistics, CategoryStatistics -> Variable 0,...,n / 0 .. 1 546 | disco:weightedBy a rdf:Property, owl:ObjectProperty; 547 | rdfs:label "weighted by"@en, ""@fr; 548 | rdfs:comment "SummaryStatistics or CategoryStatistics resources may be weighted by a specific Variable."@en; 549 | rdfs:domain [a owl:Class; owl:unionOf (disco:SummaryStatistics disco:CategoryStatistics)]; 550 | rdfs:range disco:Variable; 551 | rdfs:isDefinedBy . 552 | 553 | # universe property 554 | # * Study/Study -> Universe 1,...,n / 0,...,n 555 | # * RepresentedVariable -> Universe 0,...,n / 0,...,n (Note: RepresentedVariable and Variable are the same thing in different states) 556 | # * Variable -> Universe 1 / 0,...,n 557 | # * Question -> Universe 1 / 0,...,n 558 | # * LogicalDataSet -> Universe 1 / 0,...,n (Property: dataSetUniverse) 559 | disco:universe a rdf:Property, owl:ObjectProperty; 560 | rdfs:label "universe"@en, "a comme univers"@fr; 561 | rdfs:comment "Indicates the Universe(s) of Studies, StudyGrous, RepresentedVariables, Variables, Questions, and LogicalDataSets."@en; 562 | rdfs:domain [a owl:Class; owl:unionOf (disco:Study disco:StudyGroup disco:RepresentedVariable disco:Variable disco:Question disco:LogicalDataSet)]; 563 | rdfs:range disco:Universe; 564 | rdfs:isDefinedBy . 565 | 566 | # variable property 567 | # * Study -> Variable 0,...,n / 1,...,n 568 | disco:variable a rdf:Property, owl:ObjectProperty; 569 | rdfs:label "variable"@en, "Variable"@de; 570 | rdfs:comment "Indicates the Variable of a Study."@en; 571 | rdfs:domain disco:Study; 572 | rdfs:range disco:Variable; 573 | rdfs:isDefinedBy . 574 | -------------------------------------------------------------------------------- /build/build.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | SET SAXON=C:\Users\olof\Dropbox\utils\saxon-he\saxon9he.jar 3 | 4 | echo -----convert turtle to other formats----- 5 | echo RDF/XML-ABBREV 6 | call rdfcopy ../discovery.ttl TURTLE RDF/XML-ABBREV > ../discovery-abbrev.xml 7 | echo RDF/XML 8 | call rdfcopy ../discovery.ttl TURTLE RDF/XML > ../discovery.rdf 9 | echo N3 10 | call rdfcopy ../discovery.ttl TURTLE N3 > ../discovery.n3 11 | 12 | echo -----create html documentation from rdf/xml----- 13 | call java -cp %SAXON% net.sf.saxon.Transform -t -s:../discovery-abbrev.xml -xsl:rdf2htmlclasses.xsl -o:../documentation/classes.html 14 | echo removing rdf/xml abbrev (used for generation the documentation) 15 | del ../discovery-abbrev.xml 16 | echo -----done----- 17 | -------------------------------------------------------------------------------- /build/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | SAXON=path/to/saxon-he/ 3 | echo convert turtle to other formats 4 | echo RDF/XML-ABBREV 5 | rdfcopy ../discovery.ttl TURTLE RDF/XML-ABBREV > ../discovery-abbrev.xml 6 | echo RDF/XML 7 | rdfcopy ../discovery.ttl TURTLE RDF/XML > ../discovery.rdf 8 | echo N3 9 | rdfcopy ../discovery.ttl TURTLE N3 > ../discovery.n3 10 | 11 | echo create html documentation from rdf/xml 12 | java -cp $SAXON net.sf.saxon.Transform -t -s:../discovery-abbrev.xml -xsl:rdf2htmlclasses.xsl -o:../documentation/classes.html 13 | echo removing rdf/xml abbrev (used for generation the documentation) 14 | rm ../discovery-abbrev.xml 15 | echo done 16 | -------------------------------------------------------------------------------- /build/mappings/csv2html.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Takes a csv file containing disco mappings 4 | # and transforms them into html table rows 5 | 6 | INPUT=$1 7 | OLDIFS=$IFS 8 | IFS=, 9 | [ ! -f $INPUT ] && { echo "$INPUT file not found"; exit 99; } 10 | 11 | COUNTER=1 12 | 13 | echo '' 14 | echo ' ' 15 | echo ' ' 16 | echo ' ' 18 | echo ' ' 19 | echo ' ' 20 | echo ' ' 21 | echo ' ' 22 | echo ' ' 23 | echo ' ' 24 | echo ' ' 25 | echo ' ' 26 | 27 | sed 1d $INPUT | while read entity ddi_c ddi_l context sparql ddi_l_documentation 28 | do 29 | echo " " 30 | echo " " 31 | echo " " 32 | echo " " 33 | echo " " 34 | echo " " 35 | echo " " 36 | if [ -n "${ddi_l_documentation-}" ]; then 37 | echo " " 40 | fi 41 | echo " " 42 | 43 | COUNTER=$((COUNTER+1)) 44 | done 45 | 46 | echo ' ' 47 | echo '
#
' 17 | echo '
propertydomain classrange classDDI-LContextDDI-L Documentation
#$COUNTER $entity$ddi_l$contextDDI-L Documentation" 38 | else 39 | echo "
' 48 | 49 | IFS=$OLDIFS 50 | -------------------------------------------------------------------------------- /build/mappings/csv2ttl.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Takes a csv file containing disco mappings 4 | # and transforms them into turtle 5 | 6 | INPUT=$1 7 | OLDIFS=$IFS 8 | IFS=, 9 | [ ! -f $INPUT ] && { echo "$INPUT file not found"; exit 99; } 10 | 11 | sed 1d $INPUT | while read entity ddi_c ddi_l context sparql ddi_l_documentation 12 | do 13 | if [ -n "${ddi_l-}" ]; then 14 | if [[ $INPUT == *properties* ]] 15 | then 16 | echo "$entity a rdf:Property, owl:DatatypeProperty;" 17 | else 18 | echo "$entity a rdfs:Class, owl:Class;" 19 | fi 20 | 21 | echo " disco:mapping [" 22 | echo " a disco:Mapping;" 23 | echo " disco:ddi-L-XPath '$ddi_l';" 24 | if [ -n "${ddi_l_documentation-}" ]; then 25 | echo " disco:ddi-L-Documentation '$ddi_l_documentation';" 26 | fi 27 | if [ -n "${context-}" ]; then 28 | echo " disco:context '$context';" 29 | fi 30 | if [ -n "${sparql-}" ]; then 31 | echo " disco:context '$sparql';" 32 | fi 33 | echo " ] ." 34 | echo "" 35 | fi 36 | done 37 | IFS=$OLDIFS 38 | -------------------------------------------------------------------------------- /build/mappings/mapping.html: -------------------------------------------------------------------------------- 1 |
2 |

Classes ( disco )

3 | 4 | 5 | 6 | 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 |
#
7 |
propertydomain classrange classDDI-LContextDDI-L Documentation
#1 disco:AnalysisUnitr:AnalysisUnit
#2 disco:RepresentedVariable
#3 disco:DataFile
#4 disco:DescriptiveStatistics
#5 disco:SummaryStatistics
#6 disco:CategoryStatisticsp:CategoryStatistics
#7 disco:Instrumentd:Instrument
#8 disco:LogicalDataSet
#9 disco:Questiond:QuestionItem | d:MultipleQuestionItem
#10 disco:responseDomain
#11 disco:Questionnaired:QuestionItem | d:MultipleQuestionItemThe instument of the study
#12 disco:Studys:StudyUnit
#13 disco:StudyGroup
#14 disco:Variable//l:Variable
144 |
145 |
146 |

Object properties ( disco )

147 | 148 | 149 | 150 | 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 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 |
#
151 |
propertydomain classrange classDDI-LContextDDI-L Documentation
#1 disco:analysisUnit
#2 disco:basedOn
#3 disco:collectionMode
#4 disco:containsVariable
#5 disco:conceptVarialbe has a conceptSELECT ?concept WHERE{?variable a disco:Variable . ?variable disco:concept ?concept.}
#6 disco:conceptQuestion is defined by concept"SELECT ?concept WHERE{?question a disco:Question . ?question disco:concept ?concept.}
#7 "
#8 disco:aggregation
#9 disco:dataFile
#10 disco:ddifile
#11 disco:externalDocumentation
#12 disco:fundedBy
#13 disco:inGroup
#14 disco:inputVariable
#15 disco:instrumentThe instrument of the study questionaire SELECT ?instrument WHERE{?study a disco:Study . ?study disco:instrument ?instrument.}
#16 disco:kindOfData
#17 disco:product
#18 disco:questionVariable can have a questionSELECT ?question WHERE{?variable a disco:Variable . ?variable disco:question ?question.}
#19 disco:questionQuestions in a questionaireSELECT ?question WHERE{?study a disco:Study . ?study disco:instrument ?instrument. ?instrument disco:question ?question.}
#20 disco:representationVariables can have a representationSELECT ?representation WHERE{?variable a disco:Variable . ?variable disco:representation ?representation.}
#21 disco:statisticsCategory
#22 disco:statisticsDataFile
#23 disco:statisticsVariable
#24 disco:weightedBy
#25 disco:universeVariable can have a conceptSELECT ?universe WHERE{?variable a disco:Variable . ?variable disco:universe ?universe.}
387 |
388 |
389 |

Datatype properties ( disco )

390 | 391 | 392 | 393 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 538 | 539 | 540 | 541 | 542 | 543 | 544 | 545 | 546 | 547 | 548 | 549 | 550 | 551 | 552 | 553 | 554 | 555 | 556 | 557 | 558 | 559 | 560 | 561 | 562 | 563 | 564 | 565 | 566 |
#
394 |
propertydomain classrange classDDI-LContextDDI-L Documentation
#1 skos:notationskos:notation represents variable labelSELECT ?notation WHERE { ?notation rdfs:domain ?variable. ?variable a disco:Variable. }
#2 disco:frequency
#3 disco:isPublic
#4 disco:isValid
#5 disco:questionText
#6 disco:percentage
#7 disco:computationBase
#8 disco:cumulativePercentage
#9 disco:purpose
#10 disco:subtitle
#11 disco:standardDeviation
#12 disco:numberOfCases
#13 disco:maximum
#14 disco:mean
#15 disco:median
#16 disco:minimum
#17 disco:mode
#18 disco:startDate
567 |
568 |
569 |

Classes ( external vocabularies )

570 | 571 | 572 | 573 | 575 | 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 |
#
574 |
propertydomain classrange classDDI-LContextDDI-L Documentation
#1 skos:ConceptScheme//l:Variable/l:CodeSchemeVariables can have a coded representaion
594 |
595 |
596 |

Object properties ( external vocabularies )

597 | 598 | 599 | 600 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 |
#
601 |
propertydomain classrange classDDI-LContextDDI-L Documentation
#1 dcterms:identifierdcterms:identifier represents variable labelSELECT ?identifier WHERE { ?variable a disco:Variable . ?variable dcterms:identifier ?identifier. }
#2 skos:prefLabelskos:prefLabel represents the label of the variableSELECT ?label WHERE{?variable a disco:Variable . ?variable skos:prefLabel ?label.}
#3 skos:prefLabelName of questionSELECT ?label WHERE{?question a disco:Question . ?question skos:prefLabel ?label.}
639 |
640 |
641 |

Datatype properties ( external vocabularies )

642 | 643 | 644 | 645 | 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 |
#
646 |
propertydomain classrange classDDI-LContextDDI-L Documentation
#1 skos:notationskos:notation represents variable labelSELECT ?notation WHERE { ?notation rdfs:domain ?variable. ?variable a disco:Variable. }
#2 skos:notationskos:notation represents codeSELECT ?notation WHERE { ?notation rdfs:domain ?concept. ?concept a skos:Concept. ?concept disco:isValid ?isValid. FILTER ( ?isValid != '' )
675 |
676 | -------------------------------------------------------------------------------- /build/mappings/mapping.table.template.html: -------------------------------------------------------------------------------- 1 |
2 |

Classes ( disco )

3 | 4 | 5 |
6 |
7 |

Object properties ( disco )

8 | 9 | 10 |
11 |
12 |

Datatype properties ( disco )

13 | 14 | 15 |
16 |
17 |

Classes ( external vocabularies )

18 | 19 | 20 |
21 |
22 |

Object properties ( external vocabularies )

23 | 24 | 25 |
26 |
27 |

Datatype properties ( external vocabularies )

28 | 29 | 30 |
31 | -------------------------------------------------------------------------------- /build/mappings/mapping.ttl: -------------------------------------------------------------------------------- 1 | @prefix rdf: . 2 | @prefix rdfs: . 3 | @prefix xsd: . 4 | @prefix dc: . 5 | @prefix dcterms: . 6 | @prefix dcat: . 7 | @prefix skos: . 8 | @prefix qb: . 9 | @prefix owl: . 10 | @prefix disco: . 11 | @prefix foaf: . 12 | @prefix adms: . 13 | @prefix org: . 14 | @prefix prov: . 15 | @prefix schema: . 16 | @prefix swrc: . 17 | @prefix xkos: . 18 | 19 | ################################################################# 20 | # Classes ( disco ) 21 | ################################################################# 22 | 23 | disco:AnalysisUnit a rdfs:Class, owl:Class; 24 | disco:mapping [ 25 | a disco:Mapping; 26 | disco:ddi-L-XPath 'r:AnalysisUnit'; 27 | ] . 28 | 29 | disco:CategoryStatistics a rdfs:Class, owl:Class; 30 | disco:mapping [ 31 | a disco:Mapping; 32 | disco:ddi-L-XPath 'p:CategoryStatistics'; 33 | ] . 34 | 35 | disco:Instrument a rdfs:Class, owl:Class; 36 | disco:mapping [ 37 | a disco:Mapping; 38 | disco:ddi-L-XPath 'd:Instrument'; 39 | ] . 40 | 41 | disco:Question a rdfs:Class, owl:Class; 42 | disco:mapping [ 43 | a disco:Mapping; 44 | disco:ddi-L-XPath 'd:QuestionItem | d:MultipleQuestionItem'; 45 | ] . 46 | 47 | disco:Questionnaire a rdfs:Class, owl:Class; 48 | disco:mapping [ 49 | a disco:Mapping; 50 | disco:ddi-L-XPath 'd:QuestionItem | d:MultipleQuestionItem'; 51 | disco:context 'The instument of the study'; 52 | ] . 53 | 54 | disco:Study a rdfs:Class, owl:Class; 55 | disco:mapping [ 56 | a disco:Mapping; 57 | disco:ddi-L-XPath 's:StudyUnit'; 58 | ] . 59 | 60 | disco:Variable a rdfs:Class, owl:Class; 61 | disco:mapping [ 62 | a disco:Mapping; 63 | disco:ddi-L-XPath '//l:Variable'; 64 | ] . 65 | 66 | 67 | ################################################################# 68 | # Object properties ( disco ) 69 | ################################################################# 70 | 71 | disco:concept a rdf:Property, owl:DatatypeProperty; 72 | disco:mapping [ 73 | a disco:Mapping; 74 | disco:ddi-L-XPath 'Varialbe has a concept'; 75 | disco:context 'SELECT ?concept WHERE{?variable a disco:Variable . ?variable disco:concept ?concept.}'; 76 | ] . 77 | 78 | disco:concept a rdf:Property, owl:DatatypeProperty; 79 | disco:mapping [ 80 | a disco:Mapping; 81 | disco:ddi-L-XPath 'Question is defined by concept'; 82 | disco:context '"SELECT ?concept WHERE{?question a disco:Question . ?question disco:concept ?concept.}'; 83 | ] . 84 | 85 | disco:instrument a rdf:Property, owl:DatatypeProperty; 86 | disco:mapping [ 87 | a disco:Mapping; 88 | disco:ddi-L-XPath 'The instrument of the study questionaire '; 89 | disco:context 'SELECT ?instrument WHERE{?study a disco:Study . ?study disco:instrument ?instrument.}'; 90 | ] . 91 | 92 | disco:question a rdf:Property, owl:DatatypeProperty; 93 | disco:mapping [ 94 | a disco:Mapping; 95 | disco:ddi-L-XPath 'Variable can have a question'; 96 | disco:context 'SELECT ?question WHERE{?variable a disco:Variable . ?variable disco:question ?question.}'; 97 | ] . 98 | 99 | disco:question a rdf:Property, owl:DatatypeProperty; 100 | disco:mapping [ 101 | a disco:Mapping; 102 | disco:ddi-L-XPath 'Questions in a questionaire'; 103 | disco:context 'SELECT ?question WHERE{?study a disco:Study . ?study disco:instrument ?instrument. ?instrument disco:question ?question.}'; 104 | ] . 105 | 106 | disco:representation a rdf:Property, owl:DatatypeProperty; 107 | disco:mapping [ 108 | a disco:Mapping; 109 | disco:ddi-L-XPath 'Variables can have a representation'; 110 | disco:context 'SELECT ?representation WHERE{?variable a disco:Variable . ?variable disco:representation ?representation.}'; 111 | ] . 112 | 113 | disco:universe a rdf:Property, owl:DatatypeProperty; 114 | disco:mapping [ 115 | a disco:Mapping; 116 | disco:ddi-L-XPath 'Variable can have a concept'; 117 | disco:context 'SELECT ?universe WHERE{?variable a disco:Variable . ?variable disco:universe ?universe.}'; 118 | ] . 119 | 120 | 121 | ################################################################# 122 | # Datatype properties ( disco ) 123 | ################################################################# 124 | 125 | skos:notation a rdf:Property, owl:DatatypeProperty; 126 | disco:mapping [ 127 | a disco:Mapping; 128 | disco:ddi-L-XPath 'skos:notation represents variable label'; 129 | disco:context 'SELECT ?notation WHERE { ?notation rdfs:domain ?variable. ?variable a disco:Variable. }'; 130 | disco:context 'http://www.ddialliance.org/Specification/DDI-Lifecycle/3.1/XMLSchema/FieldLevelDocumentation/logicalproduct_xsd/elements/Variable.html'; 131 | ] . 132 | 133 | 134 | ################################################################# 135 | # Classes ( external vocabularies ) 136 | ################################################################# 137 | 138 | skos:ConceptScheme a rdfs:Class, owl:Class; 139 | disco:mapping [ 140 | a disco:Mapping; 141 | disco:ddi-L-XPath '//l:Variable/l:CodeScheme'; 142 | disco:context 'Variables can have a coded representaion'; 143 | disco:context 'SELECT ?codeScheme WHERE{?variable a disco:Variable . ?variable disco:representation ?representation. ?representation skos:ConceptScheme ?codeScheme.}'; 144 | ] . 145 | 146 | 147 | ################################################################# 148 | # Object properties ( external vocabularies ) 149 | ################################################################# 150 | 151 | dcterms:identifier a rdf:Property, owl:DatatypeProperty; 152 | disco:mapping [ 153 | a disco:Mapping; 154 | disco:ddi-L-XPath 'dcterms:identifier represents variable label'; 155 | disco:context 'SELECT ?identifier WHERE { ?variable a disco:Variable . ?variable dcterms:identifier ?identifier. }'; 156 | ] . 157 | 158 | skos:prefLabel a rdf:Property, owl:DatatypeProperty; 159 | disco:mapping [ 160 | a disco:Mapping; 161 | disco:ddi-L-XPath 'skos:prefLabel represents the label of the variable'; 162 | disco:context 'SELECT ?label WHERE{?variable a disco:Variable . ?variable skos:prefLabel ?label.}'; 163 | ] . 164 | 165 | skos:prefLabel a rdf:Property, owl:DatatypeProperty; 166 | disco:mapping [ 167 | a disco:Mapping; 168 | disco:ddi-L-XPath 'Name of question'; 169 | disco:context 'SELECT ?label WHERE{?question a disco:Question . ?question skos:prefLabel ?label.}'; 170 | ] . 171 | 172 | 173 | ################################################################# 174 | # Datatype properties ( external vocabularies ) 175 | ################################################################# 176 | 177 | skos:notation a rdf:Property, owl:DatatypeProperty; 178 | disco:mapping [ 179 | a disco:Mapping; 180 | disco:ddi-L-XPath 'skos:notation represents variable label'; 181 | disco:context 'SELECT ?notation WHERE { ?notation rdfs:domain ?variable. ?variable a disco:Variable. }'; 182 | disco:context 'http://www.ddialliance.org/Specification/DDI-Lifecycle/3.1/XMLSchema/FieldLevelDocumentation/logicalproduct_xsd/elements/Variable.html'; 183 | ] . 184 | 185 | skos:notation a rdf:Property, owl:DatatypeProperty; 186 | disco:mapping [ 187 | a disco:Mapping; 188 | disco:ddi-L-XPath 'skos:notation represents code'; 189 | disco:context 'SELECT ?notation WHERE { ?notation rdfs:domain ?concept. ?concept a skos:Concept. ?concept disco:isValid ?isValid. FILTER ( ?isValid != '' )'; 190 | ] . 191 | 192 | -------------------------------------------------------------------------------- /build/mappings/run.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | #get latest csv-files from google drive 3 | KEY="0AnXXOuMQghwxdG1wU1EzLVJybHp6SDI5ZHJOTUlzOVE" 4 | wget --no-check-certificate --output-document=disco-classes.csv 'https://docs.google.com/spreadsheet/pub?key=0AnXXOuMQghwxdG1wU1EzLVJybHp6SDI5ZHJOTUlzOVE&single=true&gid=0&output=csv' 5 | wget --no-check-certificate --output-document=external-classes.csv 'https://docs.google.com/spreadsheet/pub?key=0AnXXOuMQghwxdG1wU1EzLVJybHp6SDI5ZHJOTUlzOVE&single=true&gid=6&output=csv' 6 | wget --no-check-certificate --output-document=disco-object-properties.csv 'https://docs.google.com/spreadsheet/pub?key=0AnXXOuMQghwxdG1wU1EzLVJybHp6SDI5ZHJOTUlzOVE&single=true&gid=2&output=csv' 7 | wget --no-check-certificate --output-document=external-object-properties.csv 'https://docs.google.com/spreadsheet/pub?key=0AnXXOuMQghwxdG1wU1EzLVJybHp6SDI5ZHJOTUlzOVE&single=true&gid=5&output=csv' 8 | wget --no-check-certificate --output-document=disco-datatype-properties.csv 'https://docs.google.com/spreadsheet/pub?key=0AnXXOuMQghwxdG1wU1EzLVJybHp6SDI5ZHJOTUlzOVE&single=true&gid=3&output=csv' 9 | wget --no-check-certificate --output-document=external-datatype-properties.csv 'https://docs.google.com/spreadsheet/pub?key=0AnXXOuMQghwxdG1wU1EzLVJybHp6SDI5ZHJOTUlzOVE&single=true&gid=4&output=csv' 10 | 11 | #prepare turtle mapping file 12 | rm -f mapping.ttl 13 | touch mapping.ttl 14 | echo "@prefix rdf: ." >> mapping.ttl 15 | echo "@prefix rdfs: ." >> mapping.ttl 16 | echo "@prefix xsd: ." >> mapping.ttl 17 | echo "@prefix dc: ." >> mapping.ttl 18 | echo "@prefix dcterms: ." >> mapping.ttl 19 | echo "@prefix dcat: ." >> mapping.ttl 20 | echo "@prefix skos: ." >> mapping.ttl 21 | echo "@prefix qb: ." >> mapping.ttl 22 | echo "@prefix owl: ." >> mapping.ttl 23 | echo "@prefix disco: ." >> mapping.ttl 24 | echo "@prefix foaf: ." >> mapping.ttl 25 | echo "@prefix adms: ." >> mapping.ttl 26 | echo "@prefix org: ." >> mapping.ttl 27 | echo "@prefix prov: ." >> mapping.ttl 28 | echo "@prefix schema: ." >> mapping.ttl 29 | echo "@prefix swrc: ." >> mapping.ttl 30 | echo "@prefix xkos: ." >> mapping.ttl 31 | 32 | #Populate documents 33 | rm -f mapping.html 34 | touch mapping.html 35 | 36 | HEADING="Classes ( disco )" 37 | PROCESS="disco-classes" 38 | echo "
" >> mapping.html 39 | echo "

$HEADING

" >> mapping.html 40 | sh csv2html.sh "${PROCESS}.csv" >> mapping.html 41 | echo "
" >> mapping.html 42 | 43 | echo "" >> mapping.ttl 44 | echo "#################################################################" >> mapping.ttl 45 | echo "# ${HEADING}" >> mapping.ttl 46 | echo "#################################################################" >> mapping.ttl 47 | echo "" >> mapping.ttl 48 | sh csv2ttl.sh "${PROCESS}.csv" >> mapping.ttl 49 | rm "${PROCESS}.csv" 50 | 51 | HEADING="Object properties ( disco )" 52 | PROCESS="disco-object-properties" 53 | echo "
" >> mapping.html 54 | echo "

$HEADING

" >> mapping.html 55 | sh csv2html.sh "${PROCESS}.csv" >> mapping.html 56 | echo "
" >> mapping.html 57 | 58 | echo "" >> mapping.ttl 59 | echo "#################################################################" >> mapping.ttl 60 | echo "# ${HEADING}" >> mapping.ttl 61 | echo "#################################################################" >> mapping.ttl 62 | echo "" >> mapping.ttl 63 | sh csv2ttl.sh "${PROCESS}.csv" >> mapping.ttl 64 | rm "${PROCESS}.csv" 65 | 66 | HEADING="Datatype properties ( disco )" 67 | PROCESS="disco-datatype-properties" 68 | echo "
" >> mapping.html 69 | echo "

$HEADING

" >> mapping.html 70 | sh csv2html.sh "${PROCESS}.csv" >> mapping.html 71 | echo "
" >> mapping.html 72 | 73 | echo "" >> mapping.ttl 74 | echo "#################################################################" >> mapping.ttl 75 | echo "# ${HEADING}" >> mapping.ttl 76 | echo "#################################################################" >> mapping.ttl 77 | echo "" >> mapping.ttl 78 | sh csv2ttl.sh "${PROCESS}.csv" >> mapping.ttl 79 | rm "${PROCESS}.csv" 80 | 81 | HEADING="Classes ( external vocabularies )" 82 | PROCESS="external-classes" 83 | echo "
" >> mapping.html 84 | echo "

$HEADING

" >> mapping.html 85 | sh csv2html.sh "${PROCESS}.csv" >> mapping.html 86 | echo "
" >> mapping.html 87 | 88 | echo "" >> mapping.ttl 89 | echo "#################################################################" >> mapping.ttl 90 | echo "# ${HEADING}" >> mapping.ttl 91 | echo "#################################################################" >> mapping.ttl 92 | echo "" >> mapping.ttl 93 | sh csv2ttl.sh "${PROCESS}.csv" >> mapping.ttl 94 | rm "${PROCESS}.csv" 95 | 96 | HEADING="Object properties ( external vocabularies )" 97 | PROCESS="external-object-properties" 98 | echo "
" >> mapping.html 99 | echo "

$HEADING

" >> mapping.html 100 | sh csv2html.sh "${PROCESS}.csv" >> mapping.html 101 | echo "
" >> mapping.html 102 | 103 | echo "" >> mapping.ttl 104 | echo "#################################################################" >> mapping.ttl 105 | echo "# ${HEADING}" >> mapping.ttl 106 | echo "#################################################################" >> mapping.ttl 107 | echo "" >> mapping.ttl 108 | sh csv2ttl.sh "${PROCESS}.csv" >> mapping.ttl 109 | rm "${PROCESS}.csv" 110 | 111 | HEADING="Datatype properties ( external vocabularies )" 112 | PROCESS="external-datatype-properties" 113 | echo "
" >> mapping.html 114 | echo "

$HEADING

" >> mapping.html 115 | sh csv2html.sh "${PROCESS}.csv" >> mapping.html 116 | echo "
" >> mapping.html 117 | 118 | echo "" >> mapping.ttl 119 | echo "#################################################################" >> mapping.ttl 120 | echo "# ${HEADING}" >> mapping.ttl 121 | echo "#################################################################" >> mapping.ttl 122 | echo "" >> mapping.ttl 123 | sh csv2ttl.sh "${PROCESS}.csv" >> mapping.ttl 124 | rm "${PROCESS}.csv" -------------------------------------------------------------------------------- /build/rdf2htmlclasses.xsl: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | http://rdf-vocabulary.ddialliance.org/discovery# 12 | 13 | 14 | 15 | 16 | 23 | Classes 24 | 25 | 85 | 86 | 87 | 100 |

1. Studies and StudyGroups

101 |
102 | 103 | 104 | 105 | 106 | 107 |
108 | 109 |

2. Data Sets, Data Files, and Descriptive Statistics

110 |
111 | 112 | 113 | 114 | 115 | 116 |
117 | 118 |

3. Variables, Variable Definitions, Representations, and Concepts

119 |
120 | 121 | 122 | 123 |
124 | 125 |

4. Data Collection

126 |
127 | 128 | 129 | 130 |
131 | 132 |

5. Other properties

133 |
134 | 135 |
136 | 137 | 138 |
139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 |
148 | dfn-disco- 149 | Class: 150 | disco: 151 | 152 | 153 | Sub Class of: 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 | dfn-disco- 184 | 185 | Datatype Property: 186 | Object Property: 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | disco: 196 | 197 | 198 | (Domain: 199 | 200 | 201 | 202 | 203 | 204 | 205 | disco: 206 | 207 | 208 | 209 | 210 | , 211 | 212 | 213 | -> Range: 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | ; sub property of: 237 | 238 | 239 | ) 240 |
241 |
242 |
243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 0 268 | 269 | 270 | 271 | 272 | 273 | http://xmlns.com/foaf/0.1/ 274 | foaf: 275 | 276 | 277 | 278 | 279 | 280 | http://rdf-vocabulary.ddialliance.org/discovery# 281 | disco: 282 | 283 | 284 | 285 | 286 | 287 | http://purl.org/dc/terms/ 288 | dcterms: 289 | 290 | 291 | 292 | 293 | 294 | http://www.w3.org/2004/02/skos/core# 295 | skos: 296 | 297 | 298 | 299 | 300 | 301 | http://www.w3.org/2001/XMLSchema# 302 | xsd: 303 | 304 | 305 | 306 | 307 | 308 | http://www.w3.org/1999/02/22-rdf-syntax-ns# 309 | rdf: 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 |
318 | -------------------------------------------------------------------------------- /ddiexample1.ttl: -------------------------------------------------------------------------------- 1 | @prefix rdf: . 2 | @prefix rdfs: . 3 | @prefix xsd: . 4 | @prefix dc: . 5 | @prefix dcterms: . 6 | @prefix skos: . 7 | @prefix qb: . 8 | @prefix owl: . 9 | @prefix disco: . 10 | @prefix foaf: . 11 | @prefix org: . 12 | 13 | ################################################################# 14 | # DDI RDF Example 15 | # 16 | # Notes 17 | # 18 | ################################################################# 19 | 20 | # General document metadata 21 | # from codeBook/docDscr/citation 22 | <#DDI_ARG_1980_PHC_v01_A_IPUMS> 23 | dc:title "National Population and Housing Census, 1980"@en; 24 | dc:identifier "DDI_ARG_1980_PHC_v01_A_IPUMS"; 25 | rdfs:seeAlso ; 26 | # We have our own version on the RDF representation of the DDI XML file 27 | owl:versionInfo "Mannheim Working Meeting Version (2013-02-20)"; 28 | dc:created "2010-12-09"^^xsd:date; 29 | disco:fundedBy [ 30 | rdfs:label "Organization for Economic Co-operation and Development, Development Co-operation Directorate"; 31 | skos:notation "OECD/DCD-PARIS21"; 32 | # We don't have a translation of grantNo 33 | ]. 34 | # We don't translate prodStmt/producer/@role 35 | # We don't translate prodStmt/fundArg and prodStmt/grantNo because 36 | # for our use case we don't care who paid for encoding the metadata. 37 | 38 | <#study> a disco:Study; 39 | dc:title "National Population and Housing Census, 1980"@en; 40 | dc:identifier "ARG_1980_PHC_v01_A_IPUMS"; 41 | dc:temporal [ 42 | a dcterms:PeriodOfTime ; 43 | disco:startDate "1980-10-22"^^xsd:date; 44 | disco:endDate "1980-10-22"^^xsd:date; 45 | rdfs:comment "The interviews take place on the expected census day. In some areas the enumeration took place the following day because of access problems due to heavy rains."; 46 | ]; 47 | dc:spatial [ 48 | # This is the DC-strictly compatible way to do it 49 | a dc:Location; 50 | rdfs:label "Argentina, national coverage"@en; 51 | # sumDscr/geogCover and sumDscr/geogUnit not represented 52 | # one could link to a Linked Data representation of ARGENTINA 53 | ]; 54 | # Only a subset of subjects mentioned in the original file 55 | dcterms:subject [ 56 | skos:definition "Technical Variables -- HOUSEHOLD"@en ; 57 | ] ; 58 | dcterms:subject [ 59 | skos:definition "Group Quarters Variables -- HOUSEHOLD"@en ; 60 | ] ; 61 | dc:creator [ 62 | rdfs:label "Minnesota Population Center"@en; 63 | skos:notation "MPC"; 64 | org:memberOf [ 65 | rdfs:label "University of Minnesota"@en; 66 | ]; 67 | ]; 68 | dc:creator [ 69 | rdfs:label "Argentine National institute of Statistics and Censuses"@en; 70 | ]; 71 | 72 | owl:versionInfo "Version 1.0. This version contains selected variables from the original census micro data plus harmonized variables from the IPUMS International data base."@en; 73 | 74 | dcterms:abstract "IPUMS-International is an effort to inventory, preserve, harmonize, and disseminate census microdata from around the world. The project has collected the world's largest archive of publicly available census samples. The data are coded and documented consistently across countries and over time to facillitate comparative research. IPUMS-International makes these data available to qualified researchers free of charge through a web dissemination system. The IPUMS project is a collaboration of the Minnesota Population Center, National Statistical Offices, and international data archives. Major funding is provided by the U.S. National Science Foundation and the Demographic and Behavioral Sciences Branch of the National Institute of Child Health and Human Development. Additional support is provided by the University of Minnesota Office of the Vice President for Research, the Minnesota Population Center, and Sun Microsystems."; 75 | 76 | disco:analysisUnit <#analysisUnit>; 77 | disco:universe <#universe>; 78 | disco:kindOfData <#kindOfData> ; 79 | # method, e.g., method/dataColl/sampProc not represented since not relevant for discovery 80 | # XXX dataAccs, e.g., dataAccs/useStmt/confDec,contact,citReq,conditions,disclaimer not represented, yet. 81 | # XXX how to link othrStdyMat? 82 | dcterms:relation ; 83 | disco:product <#dataset>; 84 | disco:instrument <#questionnaire>; 85 | # stdyInfo/notes currently not represented. 86 | disco:variable <#AR80A401>, <#AR80A402>, <#AR80A404>, <#AR80A407>, <#AR80A411>. 87 | 88 | <#dataset> a disco:LogicalDataset; 89 | dcterms:accessRights ; 90 | disco:dataFile <#datafile>; 91 | disco:instrument <#questionnaire>; 92 | disco:containsVariable <#AR80A401>, <#AR80A402>, <#AR80A404>, <#AR80A407>, <#AR80A411>. 93 | 94 | dcterms:description "IPUMS-International distributes integrated microdata of individuals and households only by agreement ... designed to extend this record."; 95 | rdfs:seeAlso . 96 | 97 | <#analysisUnit> a disco:AnalysisUnit ; 98 | skos:definition "Dwelling, quarter dwelling, census household, and population"@en . 99 | 100 | <#universe> a disco:Universe; 101 | skos:definition "All the population in the national territory at the moment the census is carried out."@en . 102 | 103 | <#kindOfData> a skos:Concept ; 104 | rdfs:label "Census/enumeration data [cen]"@en . 105 | 106 | <#questionnaire> a disco:Questionnaire; 107 | disco:question <#questionGender>; 108 | disco:question <#questionAge>; 109 | disco:question <#questionCitizenship>. 110 | 111 | <#questionGender> a disco:Question; 112 | disco:questionText "2. Is the person a man or a woman? [] Man, [] Woman"@en. 113 | 114 | <#questionAge> a disco:Question; 115 | disco:questionText "3. What is his or her age? _ _ Mark the age in completed years at the date of the census for those younger than one year old mark 00. For those younger than 10 years old, mark 01, 02, 03, etc. For those older than 99 years old, mark 99."@en. 116 | 117 | <#questionCitizenship> a disco:Question; 118 | disco:questionText "6. [Immigration status] Only for persons who have usual residence in Argentina and were born in another country. [Questions 6A and 6B asked only of persons born outside Argentina and who currently reside in Argentina.] B. Are you a naturalized citizen of Argentina? [] Yes [] No [] Unanswered"@en. 119 | 120 | <#AR80A401> a disco:Variable; 121 | dc:identifier "AR80A401"; 122 | skos:prefLabel "Sex"@en, "Sexe"@fr; 123 | dc:description "This variable indicates the person's gender."@en; 124 | disco:basedOn <#sexVD>; 125 | disco:hasQuestion <#questionGender>. 126 | 127 | <#AR80A402> a disco:Variable; 128 | dc:identifier "AR80A402"; 129 | dc:description "This variable indicates the person's age in years."@en; 130 | skos:prefLabel "Age"@en, "Âge"@fr. 131 | disco:basedOn <#ageVD>; 132 | disco:hasQuestion <#questionAge>. 133 | 134 | <#AR80A407> a disco:Variable; 135 | dc:identifier "AR80A407"; 136 | dc:description "This variable indicates whether or not the person is a naturalized citizen of Argentina."@en; 137 | skos:prefLabel "Citizenship"@en, "Citoyenneté"@fr; 138 | disco:basedOn <#citizenshipVD>; 139 | disco:hasQuestion <#questionCitizenship>. 140 | 141 | <#sexVD> a disco:VariableDefinition; 142 | disco:universe <#universePerson>; 143 | disco:representation <#sexRepr>; 144 | disco:concept <#ipumsC1>; 145 | skos:prefLabel "Sex"@en, "Sexe"@fr; 146 | dc:description "Sex data element"@en. 147 | 148 | <#sexRepr> a skos:ConceptScheme, disco:Representation; 149 | skos:hasTopConcept <#sexM>, <#sexF>. 150 | 151 | <#sexM> a skos:Concept; 152 | skos:notation "1"; 153 | skos:prefLabel "Male"@en, "Homme"@fr; 154 | skos:inScheme <#sexRepr>. 155 | 156 | <#sexF> a skos:Concept; 157 | skos:notation "2"; 158 | skos:prefLabel "Female"@en, "Femme"@fr; 159 | skos:inScheme <#sexRepr>. 160 | 161 | <#dstat1> a disco:DescriptiveStatistic; 162 | disco:frequency 13314444; 163 | # is that correct? 164 | disco:percentage 49.97; 165 | disco:hasStatisticsVariable <#AR80A401>; 166 | disco:hasStatisticsCategory <#sexM>; 167 | disco:hasStatisticsDatafile <#datafile>. 168 | 169 | <#dstat2> a disco:DescriptiveStatistic; 170 | disco:frequency 1336270; 171 | disco:hasStatisticsVariable <#AR80A401>; 172 | disco:hasStatisticsCategory <#sexF>; 173 | disco:hasStatisticsDatafile <#datafile>. 174 | 175 | <#ageVD> a disco:VariableDefinition; 176 | disco:universe <#universePerson>; 177 | disco:representation <#ageRepr>; 178 | disco:concept <#ipumsC1>; 179 | skos:prefLabel "Age"@en, "Sexe"@fr; 180 | dc:description "Age data element"@en. 181 | 182 | <#ageRepr> a skos:ConceptScheme, disco:Representation; 183 | skos:hasTopConcept <#age0>, <#age1>, <#age99>. 184 | 185 | <#age0> a skos:Concept; 186 | skos:notation "0"; 187 | skos:prefLabel "0"; 188 | skos:inScheme <#ageRepr>. 189 | 190 | <#age1> a skos:Concept; 191 | skos:notation "1"; 192 | skos:prefLabel "1"; 193 | skos:inScheme <#ageRepr>. 194 | 195 | # ... 196 | 197 | <#age99> a skos:Concept; 198 | skos:notation "99"; 199 | skos:prefLabel "99"; 200 | skos:inScheme <#ageRepr>. 201 | 202 | <#citizenshipVD> a disco:VariableDefinition; 203 | disco:universe <#universeNonArgentines>; 204 | disco:representation <#citizenshipRepr>; 205 | disco:concept <#ipumsC2>; 206 | skos:prefLabel "Citizenship"@en; 207 | dc:description "Citizenship data element"@en. 208 | 209 | <#citizenshipRepr> a skos:ConceptScheme, disco:Representation; 210 | skos:hasTopConcept <#cYes>, <#cNo>, <#cUnknown>, <#NIU>. 211 | 212 | <#cYes> a skos:Concept; 213 | skos:notation "1"; 214 | skos:prefLabel "Yes"; 215 | skos:inScheme <#citizenshipRepr>. 216 | 217 | <#cNo> a skos:Concept; 218 | skos:notation "2"; 219 | skos:prefLabel "No"; 220 | skos:inScheme <#citizenshipRepr>. 221 | 222 | <#cUnknown> a skos:Concept; 223 | skos:notation "8"; 224 | skos:prefLabel "Unknown"; 225 | skos:inScheme <#citizenshipRepr>. 226 | 227 | <#cNIU> a skos:Concept; 228 | skos:notation "9"; 229 | skos:prefLabel "NIU (not in universe)"; 230 | skos:inScheme <#citizenshipRepr>. 231 | 232 | <#ipumsCS> a skos:ConceptScheme; 233 | skos:hasTopConcept <#ipumsC1>. 234 | 235 | <#ipumsC1> a skos:Concept; 236 | skos:prefLabel "Demographic Variables - PERSON"@en, "Variables démographiques - PERSONNE"@fr; 237 | skos:inScheme <#ipumsCS>. 238 | 239 | <#ipumsC2> a skos:Concept; 240 | skos:prefLabel "Nativity and Birthplace Variables -- PERSON"@en; 241 | skos:inScheme <#ipumsCS>. 242 | 243 | <#universePerson> a disco:Universe; 244 | skos:definition "All persons."@en ; 245 | skos:narrower <#universe>. 246 | 247 | <#universeNonArgentines> a disco:Universe; 248 | skos:definition "Foreign-born persons who reside in Argentina."@en ; 249 | skos:narrower <#universe>; 250 | skos:narrower <#universePerson>. 251 | 252 | <#datafile> a disco:Datafile; 253 | dc:identifier "ARG1900-P-H.dat"; 254 | dc:description "Person records"@en; 255 | disco:caseQuantity 2667714; 256 | dc:format "ascii"; 257 | dc:provenance "Minnesota Population Center"@en; 258 | owl:versionInfo "Version 1.0, IPUMS sample"@en; 259 | dc:spatial [ 260 | # This is the DC-strictly compatible way to do it 261 | a dc:Location; 262 | rdfs:label "Argentina, national coverage"@en 263 | ]; 264 | dc:temporal "PeriodOfTime"@en; 265 | dc:subject "To be defined"@en. 266 | -------------------------------------------------------------------------------- /diagrams/DDI-RDFDiscoveryVocabulary.eap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/DDI-RDFDiscoveryVocabulary.eap -------------------------------------------------------------------------------- /diagrams/Relations-DDI-XML.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/Relations-DDI-XML.png -------------------------------------------------------------------------------- /diagrams/access-rights-statements-and-licenses.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/access-rights-statements-and-licenses.png -------------------------------------------------------------------------------- /diagrams/archive/DDI-RDFDiscoveryVocabulary (1).eap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/DDI-RDFDiscoveryVocabulary (1).eap -------------------------------------------------------------------------------- /diagrams/archive/DDI-RDFDiscoveryVocabulary (2).eap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/DDI-RDFDiscoveryVocabulary (2).eap -------------------------------------------------------------------------------- /diagrams/archive/DDI-RDFDiscoveryVocabulary.eap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/DDI-RDFDiscoveryVocabulary.eap -------------------------------------------------------------------------------- /diagrams/archive/Relations-DDI-XML.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/Relations-DDI-XML.png -------------------------------------------------------------------------------- /diagrams/archive/access-rights-statements-and-licenses.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/access-rights-statements-and-licenses.png -------------------------------------------------------------------------------- /diagrams/archive/concept.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/concept.png -------------------------------------------------------------------------------- /diagrams/archive/data-collection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/data-collection.png -------------------------------------------------------------------------------- /diagrams/archive/data-file-coverage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/data-file-coverage.png -------------------------------------------------------------------------------- /diagrams/archive/data-file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/data-file.png -------------------------------------------------------------------------------- /diagrams/archive/datatype-properties.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/datatype-properties.png -------------------------------------------------------------------------------- /diagrams/archive/descriptive-statistics.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/descriptive-statistics.png -------------------------------------------------------------------------------- /diagrams/archive/identification-versioning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/identification-versioning.png -------------------------------------------------------------------------------- /diagrams/archive/logical-data-set-coverage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/logical-data-set-coverage.png -------------------------------------------------------------------------------- /diagrams/archive/logical-data-set.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/logical-data-set.png -------------------------------------------------------------------------------- /diagrams/archive/mappings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/mappings.png -------------------------------------------------------------------------------- /diagrams/archive/object-properties (2014.02.16).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/object-properties (2014.02.16).png -------------------------------------------------------------------------------- /diagrams/archive/object-properties (2014.02.16).wmf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/object-properties (2014.02.16).wmf -------------------------------------------------------------------------------- /diagrams/archive/object-properties.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/object-properties.png -------------------------------------------------------------------------------- /diagrams/archive/object-properties.wmf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/object-properties.wmf -------------------------------------------------------------------------------- /diagrams/archive/object-properties_HiRes_vertical (2014.02.16).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/object-properties_HiRes_vertical (2014.02.16).png -------------------------------------------------------------------------------- /diagrams/archive/overview-data-set.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/overview-data-set.png -------------------------------------------------------------------------------- /diagrams/archive/overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/overview.png -------------------------------------------------------------------------------- /diagrams/archive/representation (2014.02.16).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/representation (2014.02.16).png -------------------------------------------------------------------------------- /diagrams/archive/representation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/representation.png -------------------------------------------------------------------------------- /diagrams/archive/study-agent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/study-agent.png -------------------------------------------------------------------------------- /diagrams/archive/study-coverage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/study-coverage.png -------------------------------------------------------------------------------- /diagrams/archive/study-metadata.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/study-metadata.png -------------------------------------------------------------------------------- /diagrams/archive/study-universe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/study-universe.png -------------------------------------------------------------------------------- /diagrams/archive/variable (2014.02.16).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/variable (2014.02.16).png -------------------------------------------------------------------------------- /diagrams/archive/variable-and-variable-definition (2014.02.16).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/variable-and-variable-definition (2014.02.16).png -------------------------------------------------------------------------------- /diagrams/archive/variable-and-variable-definition.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/variable-and-variable-definition.png -------------------------------------------------------------------------------- /diagrams/archive/variable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/archive/variable.png -------------------------------------------------------------------------------- /diagrams/concept.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/concept.png -------------------------------------------------------------------------------- /diagrams/data-collection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/data-collection.png -------------------------------------------------------------------------------- /diagrams/data-file-coverage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/data-file-coverage.png -------------------------------------------------------------------------------- /diagrams/data-file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/data-file.png -------------------------------------------------------------------------------- /diagrams/datatype-properties.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/datatype-properties.png -------------------------------------------------------------------------------- /diagrams/descriptive-statistics.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/descriptive-statistics.png -------------------------------------------------------------------------------- /diagrams/identification-versioning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/identification-versioning.png -------------------------------------------------------------------------------- /diagrams/logical-data-set-coverage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/logical-data-set-coverage.png -------------------------------------------------------------------------------- /diagrams/logical-data-set.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/logical-data-set.png -------------------------------------------------------------------------------- /diagrams/mappings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/mappings.png -------------------------------------------------------------------------------- /diagrams/object-properties.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/object-properties.png -------------------------------------------------------------------------------- /diagrams/object-properties.wmf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/object-properties.wmf -------------------------------------------------------------------------------- /diagrams/object-properties_HiRes_vertical.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/object-properties_HiRes_vertical.png -------------------------------------------------------------------------------- /diagrams/overview-data-set.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/overview-data-set.png -------------------------------------------------------------------------------- /diagrams/overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/overview.png -------------------------------------------------------------------------------- /diagrams/representation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/representation.png -------------------------------------------------------------------------------- /diagrams/study-agent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/study-agent.png -------------------------------------------------------------------------------- /diagrams/study-coverage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/study-coverage.png -------------------------------------------------------------------------------- /diagrams/study-metadata.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/study-metadata.png -------------------------------------------------------------------------------- /diagrams/study-universe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/study-universe.png -------------------------------------------------------------------------------- /diagrams/variable-and-variable-definition.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/variable-and-variable-definition.png -------------------------------------------------------------------------------- /diagrams/variable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/diagrams/variable.png -------------------------------------------------------------------------------- /diagrams/wmf2svg.cmd: -------------------------------------------------------------------------------- 1 | java -jar wmf2svg-0.9.8.jar -compatible object-properties.wmf object-properties.svg -------------------------------------------------------------------------------- /discovery.nt: -------------------------------------------------------------------------------- 1 | @prefix dc: . 2 | @prefix prov: . 3 | @prefix foaf: . 4 | @prefix qb: . 5 | @prefix org: . 6 | @prefix dcterms: . 7 | @prefix dcmitype: . 8 | @prefix adms: . 9 | @prefix xkos: . 10 | @prefix rdfs: . 11 | @prefix dcat: . 12 | @prefix disco: . 13 | @prefix owl: . 14 | @prefix xsd: . 15 | @prefix rdf: . 16 | @prefix skos: . 17 | 18 | disco:mappingDDI-C 19 | a rdf:Property , owl:DatatypeProperty ; 20 | rdfs:comment "Mapping from and to DDI-C"@en ; 21 | rdfs:domain disco:Mapping ; 22 | rdfs:isDefinedBy ; 23 | rdfs:label "Mapping from and to DDI-C"@en ; 24 | rdfs:range rdf:langString . 25 | 26 | disco:mappingDDI-L 27 | a rdf:Property , owl:DatatypeProperty ; 28 | rdfs:comment "Mapping from and to DDI-L"@en ; 29 | rdfs:domain disco:Mapping ; 30 | rdfs:isDefinedBy ; 31 | rdfs:label "Mapping from and to DDI-L"@en ; 32 | rdfs:range rdf:langString . 33 | 34 | disco:responseDomain 35 | a rdf:Property , owl:ObjectProperty ; 36 | rdfs:comment "The response domain of questions."@en ; 37 | rdfs:domain disco:Question ; 38 | rdfs:isDefinedBy ; 39 | rdfs:label "responseDomain"@en ; 40 | rdfs:range disco:Representation . 41 | 42 | disco:externalDocumentation 43 | a rdf:Property , owl:ObjectProperty ; 44 | rdfs:comment "points from an Instrument to a foaf:Document which is the external documentation of the Instrument."@en ; 45 | rdfs:domain disco:Instrument ; 46 | rdfs:isDefinedBy ; 47 | rdfs:label "externe Dokumentation"@de , "external documentation"@en ; 48 | rdfs:range foaf:Document . 49 | 50 | disco:aggregation 51 | a rdf:Property , owl:ObjectProperty ; 52 | rdfs:comment "points to the aggregated data set of a microdata data set."@en ; 53 | rdfs:domain disco:LogicalDataSet ; 54 | rdfs:isDefinedBy ; 55 | rdfs:label "aggregation"@en ; 56 | rdfs:range qb:DataSet . 57 | 58 | disco:Universe 59 | a owl:Class , rdfs:Class ; 60 | rdfs:comment "A Universe is the total membership or population of a defined class of people, objects or events."@en ; 61 | rdfs:isDefinedBy ; 62 | rdfs:label "Universe"@en , "Univers"@fr ; 63 | rdfs:subClassOf skos:Concept . 64 | 65 | disco:DataFile 66 | a owl:Class , rdfs:Class ; 67 | rdfs:comment "The class DataFile, which is also a /, represents all the data files containing the microdata datasets."@en ; 68 | rdfs:isDefinedBy ; 69 | rdfs:label "Fichier de données"@fr , "Data file"@en ; 70 | rdfs:subClassOf dcat:Distribution . 71 | 72 | disco:concept 73 | a rdf:Property , owl:ObjectProperty ; 74 | rdfs:comment "points to the DDI concept of a RepresentedVariable, a Variable, or a Question"@en ; 75 | rdfs:domain 76 | [ a owl:Class ; 77 | owl:unionOf (disco:RepresentedVariable disco:Question disco:Variable) 78 | ] ; 79 | rdfs:isDefinedBy ; 80 | rdfs:label "concept"@en , "a pour concept"@fr ; 81 | rdfs:range skos:Concept . 82 | 83 | disco:Variable 84 | a owl:Class , rdfs:Class ; 85 | rdfs:comment "Variables provide a definition of the column in a rectangular data file. Variable is a characteristic of a unit being observed. A variable might be the answer of a question, have an administrative source, or be derived from other variables."@en ; 86 | rdfs:isDefinedBy ; 87 | rdfs:label "Variable"@en , "Variable"@fr . 88 | 89 | disco:inputVariable 90 | a rdf:Property , owl:ObjectProperty ; 91 | rdfs:comment "Indicates the original Variable of an aggregated qb:DataSet."@en ; 92 | rdfs:domain qb:DataSet ; 93 | rdfs:isDefinedBy ; 94 | rdfs:label "input variable"@en , "variable en entrée"@fr ; 95 | rdfs:range disco:Variable . 96 | 97 | disco:ddifile 98 | a rdf:Property , owl:ObjectProperty ; 99 | rdfs:comment "points from a Study or a StudyGroup to the original DDI file which is a foaf:Document."@en ; 100 | rdfs:domain 101 | [ a owl:Class ; 102 | owl:unionOf (disco:Study disco:StudyGroup) 103 | ] ; 104 | rdfs:isDefinedBy ; 105 | rdfs:label "DDI-Datei"@de , "DDI file"@en ; 106 | rdfs:range foaf:Document . 107 | 108 | disco:collectionMode 109 | a rdf:Property , owl:ObjectProperty ; 110 | rdfs:comment "mode of collection of a Questionnaire"@en ; 111 | rdfs:domain disco:Questionnaire ; 112 | rdfs:isDefinedBy ; 113 | rdfs:label "collection mode"@en , "Datenerfassungsmodus"@de ; 114 | rdfs:range skos:Concept . 115 | 116 | disco:CategoryStatistics 117 | a owl:Class , rdfs:Class ; 118 | rdfs:comment "For CategoryStatistics, frequencies, percentages, and weighted percentages can be defined."@en ; 119 | rdfs:isDefinedBy ; 120 | rdfs:label "Category statistics"@en ; 121 | rdfs:subClassOf disco:DescriptiveStatistics . 122 | 123 | disco:question 124 | a rdf:Property , owl:ObjectProperty ; 125 | rdfs:comment "Indicates the Questions associated to Variables or contained in Questionnaires."@en ; 126 | rdfs:domain 127 | [ a owl:Class ; 128 | owl:unionOf (disco:Variable disco:Questionnaire) 129 | ] ; 130 | rdfs:isDefinedBy ; 131 | rdfs:label "question"@en , "a comme question"@fr ; 132 | rdfs:range disco:Question . 133 | 134 | disco:percentage 135 | a rdf:Property , owl:DatatypeProperty ; 136 | rdfs:comment "percentage"@en ; 137 | rdfs:domain disco:CategoryStatistics ; 138 | rdfs:isDefinedBy ; 139 | rdfs:label "pourcentage"@fr , "percentage"@en ; 140 | rdfs:range xsd:decimal . 141 | 142 | disco:basedOn 143 | a rdf:Property , owl:ObjectProperty ; 144 | rdfs:comment "points to the RepresentedVariable the Variable is based on."@en ; 145 | rdfs:domain disco:Variable ; 146 | rdfs:isDefinedBy ; 147 | rdfs:label "utilise l'élément de donnée"@fr , "based on"@en ; 148 | rdfs:range disco:RepresentedVariable . 149 | 150 | disco:analysisUnit 151 | a rdf:Property , owl:ObjectProperty ; 152 | rdfs:comment "analysis unit of a Study, a StudyGroup, or a Variable."@en ; 153 | rdfs:domain 154 | [ a owl:Class ; 155 | owl:unionOf (disco:Study disco:StudyGroup disco:Variable) 156 | ] ; 157 | rdfs:isDefinedBy ; 158 | rdfs:label "analysis unit"@en , "Analyseeinheit"@de ; 159 | rdfs:range disco:AnalysisUnit . 160 | 161 | disco:containsVariable 162 | a rdf:Property , owl:ObjectProperty ; 163 | rdfs:comment "points to Variable contained in the LogicalDataSet"@en ; 164 | rdfs:domain disco:LogicalDataSet ; 165 | rdfs:isDefinedBy ; 166 | rdfs:label "contient la variable"@fr , "contains variable"@en ; 167 | rdfs:range disco:Variable . 168 | 169 | disco:caseQuantity 170 | a rdf:Property , owl:DatatypeProperty ; 171 | rdfs:comment "case quantity of a DataFile."@en ; 172 | rdfs:domain disco:DataFile ; 173 | rdfs:isDefinedBy ; 174 | rdfs:label "nombre d'observations"@fr , "number of cases"@en ; 175 | rdfs:range xsd:nonNegativeInteger . 176 | 177 | disco:Study 178 | a owl:Class , rdfs:Class ; 179 | rdfs:comment "A Study represents the process by which a data set was generated or collected."@en ; 180 | rdfs:isDefinedBy ; 181 | rdfs:label "Étude"@fr , "Study"@en . 182 | 183 | disco:questionText 184 | a rdf:Property , owl:DatatypeProperty ; 185 | rdfs:comment "question text"@en ; 186 | rdfs:domain disco:Question ; 187 | rdfs:isDefinedBy ; 188 | rdfs:label "Fragetext"@de , "question text"@en ; 189 | rdfs:range rdf:langString . 190 | 191 | disco:endDate 192 | a rdf:Property , owl:DatatypeProperty ; 193 | rdfs:comment "end date"@en ; 194 | rdfs:domain dcterms:PeriodOfTime ; 195 | rdfs:isDefinedBy ; 196 | rdfs:label "end date"@en ; 197 | rdfs:range xsd:date . 198 | 199 | disco:Question 200 | a owl:Class , rdfs:Class ; 201 | rdfs:comment "A Question is designed to get information upon a subject, or sequence of subjects, from a respondent."@en ; 202 | rdfs:isDefinedBy ; 203 | rdfs:label "Question"@en , "Question"@fr . 204 | 205 | disco:isValid 206 | a rdf:Property , owl:DatatypeProperty ; 207 | rdfs:comment "Indicates if the code (represented by skos:Concept) is valid or missing."@en ; 208 | rdfs:domain skos:Concept ; 209 | rdfs:isDefinedBy ; 210 | rdfs:label "is valid"@en ; 211 | rdfs:range xsd:boolean . 212 | 213 | disco:subtitle 214 | a rdf:Property , owl:DatatypeProperty ; 215 | rdfs:comment "The sub-title of a Study of a StudyGroup."@en ; 216 | rdfs:domain 217 | [ a owl:Class ; 218 | owl:unionOf (disco:Study disco:StudyGroup) 219 | ] ; 220 | rdfs:isDefinedBy ; 221 | rdfs:label "subtitle"@en , "Untertitel"@de ; 222 | rdfs:range rdf:langString . 223 | 224 | disco:kindOfData 225 | a rdf:Property , owl:ObjectProperty ; 226 | rdfs:comment "The general kind of data (e.g. geospatial, register, survey) collected in this study, given either as a skos:Concept, or as a blank node with attached free-text rdfs:label." ; 227 | rdfs:domain 228 | [ a owl:Class ; 229 | owl:unionOf (disco:Study disco:StudyGroup) 230 | ] ; 231 | rdfs:isDefinedBy ; 232 | rdfs:label "kind of data"@en ; 233 | rdfs:range skos:Concept . 234 | 235 | disco:weightedBy 236 | a rdf:Property , owl:ObjectProperty ; 237 | rdfs:comment "SummaryStatistics or CategoryStatistics resources may be weighted by a specific Variable."@en ; 238 | rdfs:domain 239 | [ a owl:Class ; 240 | owl:unionOf (disco:SummaryStatistics disco:CategoryStatistics) 241 | ] ; 242 | rdfs:isDefinedBy ; 243 | rdfs:label ""@fr , "weighted by"@en ; 244 | rdfs:range disco:Variable . 245 | 246 | disco:statisticsVariable 247 | a rdf:Property , owl:ObjectProperty ; 248 | rdfs:comment "Indicates the Variable of a specific SummaryStatistics individual."@en ; 249 | rdfs:domain disco:SummaryStatistics ; 250 | rdfs:isDefinedBy ; 251 | rdfs:label "statistics variable"@en , "a pour variable statistique"@fr ; 252 | rdfs:range disco:Variable . 253 | 254 | disco:inGroup 255 | a rdf:Property , owl:ObjectProperty ; 256 | rdfs:comment "points from a Study to the StudyGroup which contains the Study."@en ; 257 | rdfs:domain disco:Study ; 258 | rdfs:isDefinedBy ; 259 | rdfs:label "in group"@en ; 260 | rdfs:range disco:StudyGroup . 261 | 262 | disco:LogicalDataSet 263 | a owl:Class , rdfs:Class ; 264 | rdfs:comment "Each study has a set of logical metadata associated with the processing of data, at the time of collection or later during cleaning, and re-coding. LogicalDataSet represents the microdata dataset."@en ; 265 | rdfs:isDefinedBy ; 266 | rdfs:label "LogicalDataSet"@en , "Ensemble de données"@fr ; 267 | rdfs:subClassOf dcat:Dataset . 268 | 269 | disco:fundedBy 270 | a rdf:Property , owl:ObjectProperty ; 271 | rdfs:comment "points from a Study or a StudyGroup to the funding foaf:Agent which is either a foaf:Person or a org:Organization."@en ; 272 | rdfs:domain 273 | [ a owl:Class ; 274 | owl:unionOf (disco:Study disco:StudyGroup) 275 | ] ; 276 | rdfs:isDefinedBy ; 277 | rdfs:label "funded by"@en ; 278 | rdfs:range foaf:Agent ; 279 | rdfs:subPropertyOf dcterms:contributor . 280 | 281 | disco:startDate 282 | a rdf:Property , owl:DatatypeProperty ; 283 | rdfs:comment "start date"@en ; 284 | rdfs:domain dcterms:PeriodOfTime ; 285 | rdfs:isDefinedBy ; 286 | rdfs:label "start date"@en ; 287 | rdfs:range xsd:date . 288 | 289 | disco:product 290 | a rdf:Property , owl:ObjectProperty ; 291 | rdfs:comment "Indicates the LogicalDataSets of a Studies."@en ; 292 | rdfs:domain disco:Study ; 293 | rdfs:isDefinedBy ; 294 | rdfs:label "product"@en , "Produkt"@de ; 295 | rdfs:range qb:LogicalDataSet . 296 | 297 | disco:StudyGroup 298 | a owl:Class , rdfs:Class ; 299 | rdfs:comment "In some cases, where data collection is cyclic or on-going, data sets may be released as a StudyGroup, where each cycle or wave of the data collection activity produces one or more data sets. This is typical for longitudinal studies, panel studies, and other types of series (to use the DDI term). In this case, a number of Study objects would be collected into a single StudyGroup."@en ; 300 | rdfs:isDefinedBy ; 301 | rdfs:label "Study Group"@en , "Studiengruppe"@de . 302 | 303 | disco:universe 304 | a rdf:Property , owl:ObjectProperty ; 305 | rdfs:comment "Indicates the Universe(s) of Studies, StudyGrous, RepresentedVariables, Variables, Questions, and LogicalDataSets."@en ; 306 | rdfs:domain 307 | [ a owl:Class ; 308 | owl:unionOf (disco:Study disco:StudyGroup disco:RepresentedVariable disco:Variable disco:Question disco:LogicalDataSet) 309 | ] ; 310 | rdfs:isDefinedBy ; 311 | rdfs:label "universe"@en , "a comme univers"@fr ; 312 | rdfs:range disco:Universe . 313 | 314 | disco:AnalysisUnit 315 | a owl:Class , rdfs:Class ; 316 | rdfs:comment "The process collecting data is focusing on the analysis of a particular type of subject. If, for example, the adult population of Finland is being studied, the AnalysisUnit would be individuals or persons."@en ; 317 | rdfs:isDefinedBy ; 318 | rdfs:label "Analysis Unit"@en , "Analyseeinheit"@de ; 319 | rdfs:subClassOf skos:Concept . 320 | 321 | disco:cumulativePercentage 322 | a rdf:Property , owl:DatatypeProperty ; 323 | rdfs:comment "cumulative percentage"@en ; 324 | rdfs:domain disco:CategoryStatistics ; 325 | rdfs:isDefinedBy ; 326 | rdfs:label "cumulative percentage"@en ; 327 | rdfs:range xsd:decimal . 328 | 329 | disco:DescriptiveStatistics 330 | a owl:Class , rdfs:Class ; 331 | rdfs:comment "SummaryStatistics pointing to variables and CategoryStatistics pointing to categories and codes are both DescriptiveStatistics."@en ; 332 | rdfs:isDefinedBy ; 333 | rdfs:label "Descriptive statistics"@en , "Statistique descriptive"@fr . 334 | 335 | disco:context 336 | a rdf:Property , owl:DatatypeProperty ; 337 | rdfs:comment "context specifies conditions which have to be fulfilled for specific mappings"@en ; 338 | rdfs:domain disco:Mapping ; 339 | rdfs:isDefinedBy ; 340 | rdfs:label "context specifies conditions which have to be fulfilled for specific mappings"@en ; 341 | rdfs:range rdf:langString . 342 | 343 | disco:purpose 344 | a rdf:Property , owl:DatatypeProperty ; 345 | rdfs:comment "The purpose of a Study of a StudyGroup."@en ; 346 | rdfs:domain 347 | [ a owl:Class ; 348 | owl:unionOf (disco:Study disco:StudyGroup) 349 | ] ; 350 | rdfs:isDefinedBy ; 351 | rdfs:label "Grund"@de , "purpose"@en ; 352 | rdfs:range rdf:langString . 353 | 354 | disco:Mapping 355 | a owl:Class , rdfs:Class ; 356 | rdfs:comment "Mappings betwenn DDI-RDF and DDI-XML"@en ; 357 | rdfs:isDefinedBy ; 358 | rdfs:label "Mapping"@en . 359 | 360 | disco:instrument 361 | a rdf:Property , owl:ObjectProperty ; 362 | rdfs:comment "Indicates the Instrument of a Study or a LogicalDataSet."@en ; 363 | rdfs:domain 364 | [ a owl:Class ; 365 | owl:unionOf (disco:Study disco:LogicalDataSet) 366 | ] ; 367 | rdfs:isDefinedBy ; 368 | rdfs:label "instrument"@en , "a comme instrument"@fr ; 369 | rdfs:range disco:Instrument . 370 | 371 | disco:Instrument 372 | a owl:Class , rdfs:Class ; 373 | rdfs:comment "The data for the study are collected by an Instrument. The purpose of an Instrument, i.e. an interview, a questionnaire or another entity used as a means of data collection, is in the case of a survey to record the flow of a questionnaire, its use of questions, and additional component parts. A questionnaire contains a flow of questions."@en ; 374 | rdfs:isDefinedBy ; 375 | rdfs:label "Instrument de collecte"@fr , "Instrument"@en . 376 | 377 | disco:isPublic 378 | a rdf:Property , owl:DatatypeProperty ; 379 | rdfs:comment "The value true indicates that the dataset can be accessed (usually downloaded) by anyone."@en ; 380 | rdfs:domain disco:LogicalDataSet ; 381 | rdfs:isDefinedBy ; 382 | rdfs:label "ist öffentlich"@de , "is public"@en ; 383 | rdfs:range xsd:boolean . 384 | 385 | disco:computationBase 386 | a rdf:Property , owl:DatatypeProperty ; 387 | rdfs:comment "computation base"@en ; 388 | rdfs:domain disco:CategoryStatistics ; 389 | rdfs:isDefinedBy ; 390 | rdfs:label "computation base"@en , "pourcentage"@fr ; 391 | rdfs:range rdf:langString . 392 | 393 | 394 | a owl:Ontology ; 395 | rdfs:comment "This specification defines the DDI Discovery Vocabulary, an RDF Schema vocabulary that enables discovery of research and survey data on the Web. It is based on DDI (Data Documentation Initiative) XML formats."@en ; 396 | dc:contributor "Benjamin Zapilko" , "Thomas Bosch" , "Richard Cyganiak" , "Joachim Wackerow" ; 397 | dc:creator "Benjamin Zapilko" , "Arofan Gregory" , "Heiko Paulheim" , "Franck Cotton" , "Thomas Bosch" , "Olof Olsson" , "Richard Cyganiak" , "Joachim Wackerow" , "Benedikt Kämpgen" ; 398 | dc:title "DDI-RDF Discovery Vocabulary"@en ; 399 | owl:versionInfo "Version 0.6 - 2013-09-30" . 400 | 401 | disco:variable 402 | a rdf:Property , owl:ObjectProperty ; 403 | rdfs:comment "Indicates the Variable of a Study."@en ; 404 | rdfs:domain disco:Study ; 405 | rdfs:isDefinedBy ; 406 | rdfs:label "Variable"@de , "variable"@en ; 407 | rdfs:range disco:Variable . 408 | 409 | disco:statisticsCategory 410 | a rdf:Property , owl:ObjectProperty ; 411 | rdfs:comment "Indicates the skos:Concept (representing codes and categories) of a specific CategoryStatistics individual."@en ; 412 | rdfs:domain disco:CategoryStatistics ; 413 | rdfs:isDefinedBy ; 414 | rdfs:label "statistics category"@en , "a pour concept statistique"@fr ; 415 | rdfs:range skos:Concept . 416 | 417 | disco:SummaryStatistics 418 | a owl:Class , rdfs:Class ; 419 | rdfs:comment "For SummaryStatistics, maximum values, minimum values, and standard deviations can be defined."@en ; 420 | rdfs:isDefinedBy ; 421 | rdfs:label "Summary statistics"@en ; 422 | rdfs:subClassOf disco:DescriptiveStatistics . 423 | 424 | disco:representation 425 | a rdf:Property , owl:ObjectProperty ; 426 | rdfs:comment "RepresentedVariables and Variables can have a Representation whose individuals are either of the class rdfs:Datatype (to represent values) or skos:ConceptScheme (to represent code lists)."@en ; 427 | rdfs:domain 428 | [ a owl:Class ; 429 | owl:unionOf (disco:RepresentedVariable disco:Variable disco:Question) 430 | ] ; 431 | rdfs:isDefinedBy ; 432 | rdfs:label "representation"@en , "a pour représentation"@fr ; 433 | rdfs:range 434 | [ a owl:Class ; 435 | owl:unionOf (skos:ConceptScheme rdfs:Datatype) 436 | ] . 437 | 438 | disco:dataFile 439 | a rdf:Property , owl:ObjectProperty ; 440 | rdfs:comment "points to the DataFile of a Study or a LogicalDataSet."@en ; 441 | rdfs:domain 442 | [ a owl:Class ; 443 | owl:unionOf (disco:Study disco:LogicalDataSet) 444 | ] ; 445 | rdfs:isDefinedBy ; 446 | rdfs:label "data file"@en , "a pour fichier de données"@fr ; 447 | rdfs:range disco:DataFile . 448 | 449 | disco:Questionnaire 450 | a owl:Class , rdfs:Class ; 451 | rdfs:comment "A questionnaire contains a flow of questions. "@en ; 452 | rdfs:isDefinedBy ; 453 | rdfs:label "Fragebogen"@de , "Questionnaire"@en ; 454 | rdfs:subClassOf disco:Instrument . 455 | 456 | disco:frequency 457 | a rdf:Property , owl:DatatypeProperty ; 458 | rdfs:comment "frequency"@en ; 459 | rdfs:domain disco:CategoryStatistics ; 460 | rdfs:isDefinedBy ; 461 | rdfs:label "fréquence"@fr , "frequency"@en ; 462 | rdfs:range xsd:nonNegativeInteger . 463 | 464 | disco:RepresentedVariable 465 | a owl:Class , rdfs:Class ; 466 | rdfs:comment "RepresentedVariables encompasse study-independent, re-usable parts of variables like occupation classification."@en ; 467 | rdfs:isDefinedBy ; 468 | rdfs:label "Élément de donnée"@fr , "Data element"@en . 469 | 470 | disco:summaryStatisticsType 471 | a rdf:Property , owl:ObjectProperty ; 472 | rdfs:comment "summary statistics type"@en ; 473 | rdfs:domain disco:SummaryStatistics ; 474 | rdfs:isDefinedBy ; 475 | rdfs:label "summary statistics type"@en ; 476 | rdfs:range skos:Concept . 477 | 478 | disco:statisticsDataFile 479 | a rdf:Property , owl:ObjectProperty ; 480 | rdfs:comment "Indicates the DataFile of a specific DesciptiveStatistics individual."@en ; 481 | rdfs:domain disco:DescriptiveStatistics ; 482 | rdfs:isDefinedBy ; 483 | rdfs:label "statistics data file"@en , "a pour fichier statistique"@fr ; 484 | rdfs:range disco:DataFile . 485 | 486 | disco:hadRole 487 | a rdf:Property , owl:ObjectProperty ; 488 | rdfs:comment "This property indicates the role of an Agent, e.g. analyst, data modeler, programmer, co-investigator or others."@en ; 489 | rdfs:domain foaf:Agent ; 490 | rdfs:isDefinedBy ; 491 | rdfs:label "had role"@en ; 492 | rdfs:range skos:Concept . -------------------------------------------------------------------------------- /discovery.ttl: -------------------------------------------------------------------------------- 1 | @prefix rdf: . 2 | @prefix rdfs: . 3 | @prefix xsd: . 4 | @prefix dc: . 5 | @prefix dcterms: . 6 | @prefix dcmitype: . 7 | @prefix dcat: . 8 | @prefix skos: . 9 | @prefix qb: . 10 | @prefix owl: . 11 | @prefix disco: . 12 | @prefix foaf: . 13 | @prefix adms: . 14 | @prefix org: . 15 | @prefix prov: . 16 | @prefix xkos: . 17 | 18 | 19 | ################################################################# 20 | # Ontology 21 | # 22 | # Notes 23 | # - dc:related used for extra material 24 | ################################################################# 25 | 26 | a owl:Ontology; 27 | dc:title 28 | "DDI-RDF Discovery Vocabulary"@en; 29 | rdfs:comment 30 | "This specification defines the DDI Discovery Vocabulary, an RDF Schema vocabulary that enables discovery of research and survey data on the Web. It is based on DDI (Data Documentation Initiative) XML formats."@en; 31 | dc:description 32 | "This specification defines the DDI Discovery Vocabulary, an RDF Schema vocabulary that enables discovery of research and survey data on the Web. It is based on DDI (Data Documentation Initiative) XML formats."@en; 33 | dc:contributor 34 | "Thomas Bosch", 35 | "Richard Cyganiak", 36 | "Joachim Wackerow", 37 | "Benjamin Zapilko"; 38 | dc:creator 39 | "Thomas Bosch", 40 | "Sarven Capadisli", 41 | "Franck Cotton", 42 | "Richard Cyganiak", 43 | "Arofan Gregory", 44 | "Benedikt Kämpgen", 45 | "Olof Olsson", 46 | "Heiko Paulheim", 47 | "Joachim Wackerow", 48 | "Benjamin Zapilko"; 49 | owl:versionInfo "Version 0.6 - 2013-09-30". 50 | 51 | ################################################################# 52 | # Classes 53 | # 54 | # Possibly additional classes to be used: org:Organisation, foaf:Agent 55 | ################################################################# 56 | 57 | # AnalysisUnit class 58 | # DDI3.1 r:AnalysisUnit 59 | disco:AnalysisUnit a rdfs:Class, owl:Class; 60 | rdfs:label "Analysis Unit"@en, "Analyseeinheit"@de; 61 | rdfs:comment "The process collecting data is focusing on the analysis of a particular type of subject. If, for example, the adult population of Finland is being studied, the AnalysisUnit would be individuals or persons."@en; 62 | rdfs:isDefinedBy ; 63 | rdfs:subClassOf skos:Concept. 64 | 65 | # RepresentedVariable class 66 | disco:RepresentedVariable a rdfs:Class, owl:Class; 67 | rdfs:label "Data element"@en, "Élément de donnée"@fr; 68 | rdfs:comment "RepresentedVariables encompasse study-independent, re-usable parts of variables like occupation classification."@en; 69 | rdfs:isDefinedBy . 70 | 71 | # DataFile class 72 | disco:DataFile a rdfs:Class, owl:Class; 73 | rdfs:label "Data file"@en, "Fichier de données"@fr; 74 | rdfs:comment "The class DataFile, which is also a dcmitype:Dataset, represents all the data files containing the microdata datasets."@en ; 75 | rdfs:subClassOf dcat:Distribution, dcmitype:Dataset; 76 | rdfs:isDefinedBy . 77 | 78 | # DescriptiveStatistics class 79 | disco:DescriptiveStatistics a rdfs:Class, owl:Class; 80 | rdfs:label "Descriptive statistics"@en, "Statistique descriptive"@fr; 81 | rdfs:comment "SummaryStatistics pointing to variables and CategoryStatistics pointing to categories and codes are both DescriptiveStatistics."@en; 82 | rdfs:isDefinedBy . 83 | 84 | # SummaryStatistics class 85 | disco:SummaryStatistics a rdfs:Class, owl:Class; 86 | rdfs:label "Summary statistics"@en; 87 | rdfs:comment "For SummaryStatistics, maximum values, minimum values, and standard deviations can be defined."@en; 88 | rdfs:subClassOf disco:DescriptiveStatistics; 89 | rdfs:isDefinedBy . 90 | 91 | # CategoryStatistics class 92 | # DDI3.1 p:CategoryStatistics 93 | disco:CategoryStatistics a rdfs:Class, owl:Class; 94 | rdfs:label "Category statistics"@en; 95 | rdfs:comment "For CategoryStatistics, frequencies, percentages, and weighted percentages can be defined."@en; 96 | rdfs:subClassOf disco:DescriptiveStatistics; 97 | rdfs:isDefinedBy . 98 | 99 | # Instrument class (e.g., questionnaire, sensors, registers) 100 | # XXX: Additional subclasses to be discussed. 101 | # DDI3.1 d:Instrument 102 | disco:Instrument a rdfs:Class, owl:Class; 103 | rdfs:label "Instrument"@en; 104 | rdfs:label "Instrument de collecte"@fr; 105 | rdfs:comment "The data for the study are collected by an Instrument. The purpose of an Instrument, i.e. an interview, a questionnaire or another entity used as a means of data collection, is in the case of a survey to record the flow of a questionnaire, its use of questions, and additional component parts. A questionnaire contains a flow of questions."@en; 106 | rdfs:isDefinedBy . 107 | 108 | # LogicalDataSet class 109 | disco:LogicalDataSet a rdfs:Class, owl:Class; 110 | rdfs:label "LogicalDataSet"@en, "Ensemble de données"@fr; 111 | rdfs:comment "Each study has a set of logical metadata associated with the processing of data, at the time of collection or later during cleaning, and re-coding. LogicalDataSet represents the microdata dataset."@en; 112 | rdfs:subClassOf dcat:Dataset, skos:Concept; 113 | rdfs:isDefinedBy . 114 | 115 | # Question class 116 | # skos:prefLabel represents question name 117 | # DDI3.1 d:QuestionItem|d:MultipleQuestionItem 118 | disco:Question a rdfs:Class, owl:Class; 119 | rdfs:label "Question"@en, "Question"@fr; 120 | rdfs:comment "A Question is designed to get information upon a subject, or sequence of subjects, from a respondent."@en; 121 | rdfs:subClassOf skos:Concept; 122 | rdfs:isDefinedBy . 123 | 124 | # disco:responseDomain 125 | # cardinality at disco:Question: 0..n 126 | # cardinality at disco:Representation: 1..n 127 | disco:responseDomain a rdf:Property, owl:ObjectProperty; 128 | rdfs:label "responseDomain"@en; 129 | rdfs:comment "The response domain of questions. The response domain has to be an instance of the class Representation."@en; 130 | rdfs:domain disco:Question; 131 | rdfs:range disco:Representation; 132 | rdfs:isDefinedBy . 133 | 134 | # Questionnaire class 135 | disco:Questionnaire a rdfs:Class, owl:Class; 136 | rdfs:label "Questionnaire"@en, "Fragebogen"@de; 137 | rdfs:comment "A questionnaire contains a flow of questions. Questionnaires must contain 1 to n questions using the object property question. Particular questions may be contained in 0 to n questionnaires."@en; 138 | rdfs:isDefinedBy ; 139 | rdfs:subClassOf disco:Instrument. 140 | 141 | # Study class 142 | # DDI3.1 s:StudyUnit 143 | disco:Study a rdfs:Class, owl:Class; 144 | rdfs:label "Study"@en, "Étude"@fr; 145 | rdfs:comment "A Study represents the process by which a data set was generated or collected."@en; 146 | rdfs:isDefinedBy . 147 | 148 | # Study group class 149 | disco:StudyGroup a rdfs:Class, owl:Class; 150 | rdfs:label "Study Group"@en, "Studiengruppe"@de; 151 | rdfs:comment "In some cases, where data collection is cyclic or on-going, data sets may be released as a StudyGroup, where each cycle or wave of the data collection activity produces one or more data sets. This is typical for longitudinal studies, panel studies, and other types of series (to use the DDI term). In this case, a number of Study objects would be collected into a single StudyGroup."@en; 152 | rdfs:isDefinedBy . 153 | 154 | # Variable class 155 | # DDI3.1 l:Variable 156 | disco:Variable a rdfs:Class, owl:Class; 157 | rdfs:label "Variable"@en, "Variable"@fr; 158 | rdfs:comment "Variables provide a definition of the column in a rectangular data file. Variable is a characteristic of a unit being observed. A variable might be the answer of a question, have an administrative source, or be derived from other variables."@en; 159 | rdfs:subClassOf skos:Concept; 160 | rdfs:isDefinedBy . 161 | 162 | # Universe class 163 | # skos:Concept/skos:notation represents universe name 164 | # skos:Concept/skos:prefLabel represents universe label 165 | # DDI3.1 c:Universe 166 | disco:Universe a rdfs:Class, owl:Class; 167 | rdfs:label "Universe"@en, "Univers"@fr; 168 | rdfs:comment "A Universe is the total membership or population of a defined class of people, objects or events."@en; 169 | rdfs:isDefinedBy ; 170 | rdfs:subClassOf skos:Concept. 171 | 172 | disco:Mapping 173 | a rdfs:Class, owl:Class; 174 | rdfs:label "Mapping"@en; 175 | rdfs:comment "This class is for representing mappings betwenn DDI-RDF and DDI-XML. See Section 10 in the specification for more details and examples."@en; 176 | rdfs:isDefinedBy . 177 | 178 | disco:Representation 179 | a rdfs:Class, owl:Class; 180 | rdfs:subClassOf [ a owl:Class; owl:unionOf (rdfs:Datatype skos:ConceptScheme skos:OrderedCollection)]; 181 | rdfs:label "Representation of a variable or question definition."@en; 182 | rdfs:comment "Representation of a variable or question definition."@en; 183 | rdfs:isDefinedBy . 184 | 185 | 186 | ################################################################# 187 | # Datatype properties 188 | ################################################################# 189 | 190 | 191 | # caseQuantity property 192 | # DDI3.1 p:CaseQuantity 193 | disco:caseQuantity a rdf:Property, owl:DatatypeProperty; 194 | rdfs:label "number of cases"@en, "nombre d'observations"@fr; 195 | rdfs:comment "This property is used for representing the case quantity of a DataFile."@en; 196 | rdfs:domain disco:DataFile; 197 | rdfs:range xsd:nonNegativeInteger; 198 | rdfs:isDefinedBy . 199 | 200 | # frequency property 201 | disco:frequency a rdf:Property, owl:DatatypeProperty; 202 | rdfs:label "frequency"@en, "fréquence"@fr; 203 | rdfs:comment "This property is used to describe the frequencies within category statistics. See Sections 6 and 7 more more details and examples."@en; 204 | rdfs:domain disco:CategoryStatistics; 205 | rdfs:range xsd:nonNegativeInteger; 206 | rdfs:isDefinedBy . 207 | 208 | # isPublic property 209 | disco:isPublic a rdf:Property, owl:DatatypeProperty; 210 | rdfs:label "is public"@en, "ist öffentlich"@de; 211 | rdfs:domain disco:LogicalDataSet; 212 | rdfs:comment "This property is used as a flag indicating if the microdata dataset is publicly available. The value true indicates that the dataset can be accessed (usually downloaded) by anyone."@en; 213 | rdfs:range xsd:boolean; 214 | rdfs:isDefinedBy . 215 | 216 | # isValid property 217 | #Please note that this property is a feature at risk, since the domain is not a class of Disco. Maintainers of the domain ontology may define their own property. 218 | disco:isValid a rdf:Property, owl:DatatypeProperty; 219 | rdfs:label "is valid"@en; 220 | rdfs:domain skos:Concept; 221 | rdfs:comment "Indicates if the code (represented by skos:Concept) is valid or missing. Please note that this property is a feature at risk, since the domain is not a class of Disco. Maintainers of the domain ontology may define their own property."@en; 222 | rdfs:range xsd:boolean; 223 | rdfs:isDefinedBy . 224 | 225 | # questionText property 226 | # DDI3.1 d:QuestionText 227 | disco:questionText a rdf:Property, owl:DatatypeProperty; 228 | rdfs:label "question text"@en, "Fragetext"@de; 229 | rdfs:comment "This property contains the actual text of a question as string. See Section 8.2 for examples."@en; 230 | rdfs:domain disco:Question; 231 | rdfs:range rdf:langString; 232 | rdfs:isDefinedBy . 233 | 234 | # percentage property 235 | disco:percentage a rdf:Property, owl:DatatypeProperty; 236 | rdfs:label "percentage"@en, "pourcentage"@fr; 237 | rdfs:comment "This property is used to describe the percentages within category statistics. See Sections 6 and 7 more more details and examples."@en; 238 | rdfs:domain disco:CategoryStatistics; 239 | rdfs:range xsd:double; 240 | rdfs:isDefinedBy . 241 | 242 | # computationBase property 243 | disco:computationBase a rdf:Property, owl:DatatypeProperty; 244 | rdfs:label "computation base"@en, "pourcentage"@fr; 245 | rdfs:comment "computationBase expresses if the cases - which are the basis of the computation of a statistics value - are valid, invalid or the total of both. The usage of computationBase for frequency differs from the usage for the percentage statistics and the summary statistics. A distinction regarding computationBase doesn’t apply to frequency as category statistic. Please find more details in Section 6.3 of the specification."@en; 246 | rdfs:domain disco:CategoryStatistics; 247 | rdfs:range rdf:langString; 248 | rdfs:isDefinedBy . 249 | 250 | # cumulativePercentage property 251 | disco:cumulativePercentage a rdf:Property, owl:DatatypeProperty; 252 | rdfs:label "cumulative percentage"@en; 253 | rdfs:comment "This property is used to describe the cumulative percentages within category statistics. See Sections 6 and 7 more more details and examples."@en; 254 | rdfs:domain disco:CategoryStatistics; 255 | rdfs:range xsd:double; 256 | rdfs:isDefinedBy . 257 | 258 | # purpose property 259 | # DDI3.1 s:Purpose 260 | disco:purpose a rdf:Property, owl:DatatypeProperty; 261 | rdfs:label "purpose"@en, "Grund"@de; 262 | rdfs:comment "The purpose of a Study of a StudyGroup."@en; 263 | rdfs:domain [ a owl:Class; owl:unionOf (disco:Study disco:StudyGroup)]; 264 | rdfs:range rdf:langString; 265 | rdfs:isDefinedBy . 266 | 267 | # subtitle property 268 | # DDI3.1 r:SubTitle 269 | disco:subtitle a rdf:Property, owl:DatatypeProperty; 270 | rdfs:label "subtitle"@en, "Untertitel"@de; 271 | rdfs:comment "The sub-title of a Study of a StudyGroup."@en; 272 | rdfs:domain [ a owl:Class; owl:unionOf (disco:Study disco:StudyGroup)]; 273 | rdfs:range rdf:langString; 274 | rdfs:isDefinedBy . 275 | 276 | #Please note that this property is a feature at risk, since the domain is not a class of Disco. Maintainers of the domain ontology may define their own property. 277 | disco:startDate a rdf:Property, owl:DatatypeProperty; 278 | rdfs:label "start date"@en; 279 | rdfs:comment "Defines the start date of a period of time. Please note that this property is a feature at risk, since the domain is not a class of Disco. Maintainers of the domain ontology may define their own property."@en; 280 | rdfs:domain dcterms:PeriodOfTime; 281 | rdfs:range xsd:date; 282 | rdfs:isDefinedBy . 283 | 284 | #Please note that this property is a feature at risk, since the domain is not a class of Disco. Maintainers of the domain ontology may define their own property. 285 | disco:endDate a rdf:Property, owl:DatatypeProperty; 286 | rdfs:label "end date"@en; 287 | rdfs:comment "Defines the end date of a period of time. Please note that this property is a feature at risk, since the domain is not a class of Disco. Maintainers of the domain ontology may define their own property."@en; 288 | rdfs:domain dcterms:PeriodOfTime; 289 | rdfs:range xsd:date; 290 | rdfs:isDefinedBy . 291 | 292 | disco:mappingDDI-L a rdf:Property, owl:DatatypeProperty; 293 | rdfs:label "Mapping from and to DDI-L"@en; 294 | rdfs:comment "Mapping from and to DDI-L. See Section 10 in the specification for more details and examples."@en; 295 | rdfs:domain disco:Mapping; 296 | rdfs:range rdf:langString; 297 | rdfs:isDefinedBy . 298 | 299 | disco:mappingDDI-C a rdf:Property, owl:DatatypeProperty; 300 | rdfs:label "Mapping from and to DDI-C"@en; 301 | rdfs:comment "Mapping from and to DDI-C. See Section 10 in the specification for more details and examples."@en; 302 | rdfs:domain disco:Mapping; 303 | rdfs:range rdf:langString; 304 | rdfs:isDefinedBy . 305 | 306 | disco:context a rdf:Property, owl:DatatypeProperty; 307 | rdfs:label "context specifies conditions which have to be fulfilled for specific mappings"@en; 308 | rdfs:comment "context specifies conditions which have to be fulfilled for particular mappings. Context information can be either a SPARQL query or an informal description as plain literal."@en; 309 | rdfs:domain disco:Mapping; 310 | rdfs:range rdf:langString; 311 | rdfs:isDefinedBy . 312 | 313 | disco:variableQuantity a rdf:Property, owl:DatatypeProperty; 314 | rdfs:label "variable quantity"@en; 315 | rdfs:comment "This property can be used when (1) no variable level information is available and when (2) only a stub of the RDF is requested e.g when returning basic information on a study of file, no information on potentially hundreds or thousands of variables references or metadata has to be returned."@en; 316 | rdfs:domain [ a owl:Class; owl:unionOf (disco:LogicalDataSet disco:DataFile)]; 317 | rdfs:range xsd:nonNegativeInteger; 318 | rdfs:isDefinedBy . 319 | 320 | ################################################################# 321 | # Object properties 322 | # 323 | # Cardinalities are noted: 324 | # Notation: Study -> Universe 1,...,n / 0,...,n 325 | # Meaning: Study has 1,...,n universes; Universe has 0,...,n studies. 326 | # 327 | ################################################################# 328 | 329 | # analysisUnit property (different meaning than concept property) 330 | # Variable -> AnalysisUnit 0,1 / 0,...,n 331 | # Study -> AnalysisUnit 0,1 / 0,...,n 332 | disco:analysisUnit a rdf:Property, owl:ObjectProperty; 333 | rdfs:label "analysis unit"@en, "Analyseeinheit"@de; 334 | rdfs:comment "This property links to the analysis unit of a Study, a StudyGroup, or a Variable."@en; 335 | rdfs:domain [a owl:Class; owl:unionOf ( disco:Study disco:StudyGroup disco:Variable)]; 336 | rdfs:range disco:AnalysisUnit; 337 | rdfs:isDefinedBy . 338 | 339 | # basedOn property 340 | # * Variable -> RepresentedVariable 0,1 / 0,...,n 341 | disco:basedOn a rdf:Property, owl:ObjectProperty; 342 | rdfs:label "based on"@en, "utilise l'élément de donnée"@fr; 343 | rdfs:comment "This property points to the RepresentedVariable the Variable is based on."@en; 344 | rdfs:domain disco:Variable; 345 | rdfs:range disco:RepresentedVariable; 346 | rdfs:isDefinedBy . 347 | 348 | # collectionMode property 349 | disco:collectionMode a rdf:Property, owl:ObjectProperty; 350 | rdfs:label "collection mode"@en, "Datenerfassungsmodus"@de; 351 | rdfs:comment "This property points to the mode of collection of a Questionnaire which is a skos:Concept."@en; 352 | rdfs:domain disco:Questionnaire; 353 | rdfs:range skos:Concept; 354 | rdfs:isDefinedBy . 355 | 356 | # concept property 357 | # * RepresentedVariable -> Concept 1 / 0,...,n 358 | # * Question -> Concept 1,...,n / 0,...,n 359 | # * Variable -> Concept 1 / 0,...,n 360 | disco:concept a rdf:Property, owl:ObjectProperty; 361 | rdfs:label "concept"@en, "a pour concept"@fr; 362 | rdfs:comment "This property points to the DDI concept of a RepresentedVariable, a Variable, or a Question"@en; 363 | rdfs:domain [a owl:Class; owl:unionOf (disco:RepresentedVariable disco:Question disco:Variable)]; 364 | rdfs:range skos:Concept; 365 | rdfs:isDefinedBy . 366 | 367 | # aggregation property 368 | # * LogicalDataSet -> qb:DataSet 0,...,n / 0,...,n (Use Case: Look whether a LogicalDataSet exists for a qb:DataSet) 369 | disco:aggregation a rdf:Property, owl:ObjectProperty; 370 | rdfs:label "aggregation"@en; 371 | rdfs:comment "This property points to the aggregated data set of a microdata data set. The aggregated data set is a qb:DataSet of the RDF Data Cube Vocabulary."@en; 372 | rdfs:domain disco:LogicalDataSet; 373 | rdfs:range qb:DataSet; 374 | rdfs:isDefinedBy . 375 | 376 | # dataFile property 377 | # * LogicalDataSet -> DataFile 0,...,n / 0,...,n 378 | disco:dataFile a rdf:Property, owl:ObjectProperty; 379 | rdfs:label "data file"@en, "a pour fichier de données"@fr; 380 | rdfs:comment "This property points to the DataFile of a Study or a LogicalDataSet."@en; 381 | rdfs:domain [a owl:Class; owl:unionOf (disco:Study disco:LogicalDataSet)]; 382 | rdfs:range disco:DataFile; 383 | rdfs:isDefinedBy . 384 | 385 | # ddifile property 386 | # (disco:Study disco:StudyGroup) -> foaf:Document 0,* / 0,* 387 | disco:ddifile a rdf:Property, owl:ObjectProperty; 388 | rdfs:label "DDI file"@en, "DDI-Datei"@de; 389 | rdfs:comment "This property points from a Study or a StudyGroup to the original DDI file which is a foaf:Document."@en; 390 | rdfs:domain [a owl:Class; owl:unionOf (disco:Study disco:StudyGroup)]; 391 | rdfs:range foaf:Document; 392 | rdfs:isDefinedBy . 393 | 394 | # externalDocumentation property 395 | # XXX: check whether skos:Concept is ok and cardinality 396 | disco:externalDocumentation a rdf:Property, owl:ObjectProperty; 397 | rdfs:label "external documentation"@en, "externe Dokumentation"@de; 398 | rdfs:comment "This property points from an Instrument to a foaf:Document which is the external documentation of the Instrument."@en; 399 | rdfs:domain disco:Instrument; 400 | rdfs:range foaf:Document; 401 | rdfs:isDefinedBy . 402 | 403 | # fundedBy property 404 | disco:fundedBy a rdf:Property, owl:ObjectProperty; 405 | rdfs:label "funded by"@en; 406 | rdfs:comment "This property points from a Study or a StudyGroup to the funding foaf:Agent which is either a foaf:Person or a org:Organization."@en; 407 | rdfs:domain [a owl:Class; owl:unionOf (disco:Study disco:StudyGroup)]; 408 | rdfs:range foaf:Agent; 409 | rdfs:subPropertyOf dcterms:contributor; 410 | rdfs:isDefinedBy . 411 | 412 | # inGroup property 413 | # Study -> StudyGroup 0,1 / 0...* 414 | disco:inGroup a rdf:Property, owl:ObjectProperty; 415 | rdfs:label "in group"@en; 416 | rdfs:comment "This property points from a Study to the StudyGroup which contains the Study."@en; 417 | rdfs:domain disco:Study; 418 | rdfs:range disco:StudyGroup; 419 | rdfs:isDefinedBy . 420 | 421 | # inputVariable property (links DataSets to DDI variables) 422 | # * qb:DataSet -> Variable 0,...,n / 0,...,n 423 | #Please note that this property is a feature at risk, since the domain is not a class of Disco. Maintainers of the domain ontology may define their own property. 424 | disco:inputVariable a rdf:Property, owl:ObjectProperty; 425 | rdfs:label "input variable"@en, "variable en entrée"@fr; 426 | rdfs:comment "This property indicates the original Variable of an aggregated qb:DataSet. Please note that this property is a feature at risk, since the domain is not a class of Disco. Maintainers of the domain ontology may define their own property."@en; 427 | rdfs:domain qb:DataSet; 428 | rdfs:range disco:Variable; 429 | rdfs:isDefinedBy . 430 | 431 | # instrument property 432 | # * Study -> Instrument 1 / 0,...,n (cardinality might have to be changed if we want to have reusable instruments in the future) 433 | disco:instrument a rdf:Property, owl:ObjectProperty; 434 | rdfs:label "instrument"@en, "a comme instrument"@fr; 435 | rdfs:comment "This property indicates the Instrument of a Study or a LogicalDataSet."@en; 436 | rdfs:domain [a owl:Class; owl:unionOf (disco:Study disco:LogicalDataSet)]; 437 | rdfs:range disco:Instrument; 438 | rdfs:isDefinedBy . 439 | 440 | # kindOfData property 441 | # (disco:Study disco:StudyGroup) -> skos:Concept 0,* / 0,1 442 | disco:kindOfData a rdf:Property, owl:ObjectProperty; 443 | rdfs:label "kind of data"@en; 444 | rdfs:domain [a owl:Class; owl:unionOf (disco:Study disco:StudyGroup)]; 445 | rdfs:range skos:Concept; 446 | rdfs:comment "The general kind of data (e.g. geospatial, register, survey) collected in this study, given either as a skos:Concept, or as a blank node with attached free-text rdfs:label."; 447 | rdfs:isDefinedBy . 448 | 449 | # product property 450 | # * Study -> LogicalDataSet 0,...,n / 1,...,n 451 | disco:product a rdf:Property, owl:ObjectProperty; 452 | rdfs:label "product"@en, "Produkt"@de; 453 | rdfs:comment "This property indicates the LogicalDataSets of a Study."@en; 454 | rdfs:domain disco:Study; 455 | rdfs:range qb:LogicalDataSet; 456 | rdfs:isDefinedBy . 457 | 458 | # question property 459 | # * Variable -> Question 0,...,n / 0,...,n 460 | # * Questionnaire -> Question 1,...,n / 0,...,n 461 | disco:question a rdf:Property, owl:ObjectProperty; 462 | rdfs:label "question"@en, "a comme question"@fr; 463 | rdfs:comment "This property indicates the Questions associated to Variables or contained in Questionnaires."@en; 464 | rdfs:domain [a owl:Class; owl:unionOf (disco:Variable disco:Questionnaire)]; 465 | rdfs:range disco:Question; 466 | rdfs:isDefinedBy . 467 | 468 | # representation property 469 | # * Variable -> Representation 1 / 0,...,n 470 | disco:representation a rdf:Property, owl:ObjectProperty; 471 | rdfs:label "representation"@en, "a pour représentation"@fr; 472 | rdfs:comment "RepresentedVariables and Variables can have a Representation whose individuals are either of the class rdfs:Datatype (to represent values) or skos:ConceptScheme (to represent code lists)."@en; 473 | rdfs:domain [a owl:Class; owl:unionOf (disco:RepresentedVariable disco:Variable disco:Question)]; 474 | rdfs:range [a owl:Class; owl:unionOf (skos:ConceptScheme rdfs:Datatype)]; 475 | rdfs:isDefinedBy . 476 | 477 | # statisticsCategory property 478 | # * DescriptiveStatistics -> Concept 0,...,n / 0,...,n 479 | disco:statisticsCategory a rdf:Property, owl:ObjectProperty; 480 | rdfs:label "statistics category"@en, "a pour concept statistique"@fr; 481 | rdfs:comment "This property points to the skos:Concept (representing codes and categories) of a specific CategoryStatistics individual."@en; 482 | rdfs:domain disco:CategoryStatistics; 483 | rdfs:range skos:Concept; 484 | rdfs:isDefinedBy . 485 | 486 | # statisticsDataFile property 487 | # * DescriptiveStatistics -> DataFile 0,...,n / 0,...,n 488 | disco:statisticsDataFile a rdf:Property, owl:ObjectProperty; 489 | rdfs:label "statistics data file"@en, "a pour fichier statistique"@fr; 490 | rdfs:comment "This property indicates the DataFile of a specific DesciptiveStatistics individual. DescriptiveStatistics may have statisticsDataFile relations to 0 to n data files (DataFile) and data files (DataFile) may be in 0 to n statisticsDataFile relations to DescriptiveStatistics individuals."@en; 491 | rdfs:domain disco:DescriptiveStatistics; 492 | rdfs:range disco:DataFile; 493 | rdfs:isDefinedBy . 494 | 495 | # statisticsVariable property 496 | # * DescriptiveStatistics -> Variable 0,...,n / 0,...,n 497 | disco:statisticsVariable a rdf:Property, owl:ObjectProperty; 498 | rdfs:label "statistics variable"@en, "a pour variable statistique"@fr; 499 | rdfs:comment "This property indicates the Variable of a specific SummaryStatistics individual. SummaryStatistics point to 0 to n variables (Variable) using the object property statisticsVariable."@en; 500 | rdfs:domain disco:SummaryStatistics; 501 | rdfs:range disco:Variable; 502 | rdfs:isDefinedBy . 503 | 504 | # weightedBy property 505 | # * SummaryStatistics, CategoryStatistics -> Variable 0,...,n / 0 .. 1 506 | disco:weightedBy a rdf:Property, owl:ObjectProperty; 507 | rdfs:label "weighted by"@en, ""@fr; 508 | rdfs:comment "SummaryStatistics or CategoryStatistics resources may be weighted by a specific Variable."@en; 509 | rdfs:domain [a owl:Class; owl:unionOf (disco:SummaryStatistics disco:CategoryStatistics)]; 510 | rdfs:range disco:Variable; 511 | rdfs:isDefinedBy . 512 | 513 | # universe property 514 | # * Study/Study -> Universe 1,...,n / 0,...,n 515 | # * RepresentedVariable -> Universe 0,...,n / 0,...,n (Note: RepresentedVariable and Variable are the same thing in different states) 516 | # * Variable -> Universe 1 / 0,...,n 517 | # * Question -> Universe 1 / 0,...,n 518 | # * LogicalDataSet -> Universe 1 / 0,...,n (Property: dataSetUniverse) 519 | disco:universe a rdf:Property, owl:ObjectProperty; 520 | rdfs:label "universe"@en, "a comme univers"@fr; 521 | rdfs:comment "This property indicates the Universe(s) of Studies, StudyGrous, RepresentedVariables, Variables, Questions, and LogicalDataSets."@en; 522 | rdfs:domain [a owl:Class; owl:unionOf (disco:Study disco:StudyGroup disco:RepresentedVariable disco:Variable disco:Question disco:LogicalDataSet)]; 523 | rdfs:range disco:Universe; 524 | rdfs:isDefinedBy . 525 | 526 | # variable property 527 | # * Study -> Variable 0,...,n / 1,...,n 528 | # * LogicalDataSet -> Variable 0,...,n / 1,...,n 529 | disco:variable a rdf:Property, owl:ObjectProperty; 530 | rdfs:label "variable"@en, "Variable"@de; 531 | rdfs:comment "This property indicates the Variable of a Study and points to Variable contained in the LogicalDataSet."@en; 532 | rdfs:domain [a owl:Class; owl:unionOf (disco:Study disco:LogicalDataSet)]; 533 | rdfs:range disco:Variable; 534 | rdfs:isDefinedBy . 535 | 536 | disco:summaryStatisticsType a rdf:Property, owl:ObjectProperty; 537 | rdfs:label "summary statistics type"@en; 538 | rdfs:comment "This property points to the summary statistics type of a Questionnaire which is a skos:Concept."@en; 539 | rdfs:domain disco:SummaryStatistics; 540 | rdfs:range skos:Concept; 541 | rdfs:isDefinedBy . 542 | 543 | disco:hadRole a rdf:Property, owl:ObjectProperty ; 544 | rdfs:comment "This property indicates the role of an Agent, e.g. analyst, data modeler, programmer, co-investigator or others."@en ; 545 | rdfs:domain foaf:Agent ; 546 | rdfs:isDefinedBy ; 547 | rdfs:label "had role"@en ; 548 | rdfs:range skos:Concept . 549 | 550 | # Ontology mappings 551 | # XXX: Temporarily listed here 552 | disco:Variable owl:equivalentClass . 553 | -------------------------------------------------------------------------------- /documentation/classes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Classes 69 | 70 |

1. Studies and StudyGroups

71 |
72 |
Class: disco:Study
73 |
A Study represents the process by which a data set was generated or collected.
74 |
Object Property: disco:variable 75 | (Domain:disco:Study -> Range: disco:Variable 76 | ) 77 | 78 |
79 |
Indicates the Variable of a Study.
80 |
Object Property: disco:inGroup 81 | (Domain:disco:Study -> Range: disco:StudyGroup 82 | ) 83 | 84 |
85 |
points from a Study to the StudyGroup which contains the Study.
86 |
Object Property: disco:product 87 | (Domain:disco:Study -> Range: http://purl.org/linked-data/cube#LogicalDataSet 88 | ) 89 | 90 |
91 |
Indicates the LogicalDataSets of a Studies.
92 |
Class: disco:StudyGroup
93 |
In some cases, where data collection is cyclic or on-going, data sets may be released 94 | as a StudyGroup, where each cycle or wave of the data collection activity produces 95 | one or more data sets. This is typical for longitudinal studies, panel studies, and 96 | other types of series (to use the DDI term). In this case, a number of Study objects 97 | would be collected into a single StudyGroup. 98 |
99 |
Class: disco:AnalysisUnit 100 | Sub Class of: skos:Concept
101 |
The process collecting data is focusing on the analysis of a particular type of subject. 102 | If, for example, the adult population of Finland is being studied, the AnalysisUnit 103 | would be individuals or persons. 104 |
105 |
Class: disco:Universe 106 | Sub Class of: skos:Concept
107 |
A Universe is the total membership or population of a defined class of people, objects 108 | or events. 109 |
110 |
111 |

2. Data Sets, Data Files, and Descriptive Statistics

112 |
113 |
Class: disco:LogicalDataSet 114 | Sub Class of: http://www.w3.org/ns/dcat#Dataset
115 |
Each study has a set of logical metadata associated with the processing of data, at 116 | the time of collection or later during cleaning, and re-coding. LogicalDataSet represents 117 | the microdata dataset. 118 |
119 |
Object Property: disco:containsVariable 120 | (Domain:disco:LogicalDataSet -> Range: disco:Variable 121 | ) 122 | 123 |
124 |
points to Variable contained in the LogicalDataSet
125 |
Object Property: disco:aggregation 126 | (Domain:disco:LogicalDataSet -> Range: http://purl.org/linked-data/cube#DataSet 127 | ) 128 | 129 |
130 |
points to the aggregated data set of a microdata data set.
131 |
Datatype Property: disco:isPublic 132 | (Domain:disco:LogicalDataSet -> Range: xsd:boolean 133 | ) 134 | 135 |
136 |
The value true indicates that the dataset can be accessed (usually downloaded) by 137 | anyone. 138 |
139 |
Class: disco:DataFile 140 | Sub Class of: http://www.w3.org/ns/dcat#Distribution
141 |
The class DataFile, which is also a dcterms:Dataset, represents all the data files 142 | containing the microdata datasets. 143 |
144 |
Datatype Property: disco:caseQuantity 145 | (Domain:disco:DataFile -> Range: xsd:nonNegativeInteger 146 | ) 147 | 148 |
149 |
case quantity of a DataFile.
150 |
Class: disco:DescriptiveStatistics
151 |
SummaryStatistics pointing to variables and CategoryStatistics pointing to categories 152 | and codes are both DescriptiveStatistics. 153 |
154 |
Object Property: disco:statisticsDataFile 155 | (Domain:disco:DescriptiveStatistics -> Range: disco:DataFile 156 | ) 157 | 158 |
159 |
Indicates the DataFile of a specific DesciptiveStatistics individual.
160 |
Class: disco:SummaryStatistics 161 | Sub Class of: disco:DescriptiveStatistics
162 |
For SummaryStatistics, maximum values, minimum values, and standard deviations can 163 | be defined. 164 |
165 |
Object Property: disco:statisticsVariable 166 | (Domain:disco:SummaryStatistics -> Range: disco:Variable 167 | ) 168 | 169 |
170 |
Indicates the Variable of a specific SummaryStatistics individual.
171 |
Object Property: disco:summaryStatisticsType 172 | (Domain:disco:SummaryStatistics -> Range: skos:Concept 173 | ) 174 | 175 |
176 |
summary statistics type
177 |
Class: disco:CategoryStatistics 178 | Sub Class of: disco:DescriptiveStatistics
179 |
For CategoryStatistics, frequencies, percentages, and weighted percentages can be 180 | defined. 181 |
182 |
Object Property: disco:statisticsCategory 183 | (Domain:disco:CategoryStatistics -> Range: skos:Concept 184 | ) 185 | 186 |
187 |
Indicates the skos:Concept (representing codes and categories) of a specific CategoryStatistics 188 | individual. 189 |
190 |
Datatype Property: disco:frequency 191 | (Domain:disco:CategoryStatistics -> Range: xsd:nonNegativeInteger 192 | ) 193 | 194 |
195 |
frequency
196 |
Datatype Property: disco:percentage 197 | (Domain:disco:CategoryStatistics -> Range: xsd:decimal 198 | ) 199 | 200 |
201 |
percentage
202 |
Datatype Property: disco:computationBase 203 | (Domain:disco:CategoryStatistics -> Range: rdf:langString 204 | ) 205 | 206 |
207 |
computation base
208 |
Datatype Property: disco:cumulativePercentage 209 | (Domain:disco:CategoryStatistics -> Range: xsd:decimal 210 | ) 211 | 212 |
213 |
cumulative percentage
214 |
215 |

3. Variables, Variable Definitions, Representations, and Concepts

216 |
217 |
Class: disco:Variable
218 |
Variables provide a definition of the column in a rectangular data file. Variable 219 | is a characteristic of a unit being observed. A variable might be the answer of a 220 | question, have an administrative source, or be derived from other variables. 221 |
222 |
Object Property: disco:basedOn 223 | (Domain:disco:Variable -> Range: disco:RepresentedVariable 224 | ) 225 | 226 |
227 |
points to the RepresentedVariable the Variable is based on.
228 |
229 |

4. Data Collection

230 |
231 |
Class: disco:Question
232 |
A Question is designed to get information upon a subject, or sequence of subjects, 233 | from a respondent. 234 |
235 |
Object Property: disco:responseDomain 236 | (Domain:disco:Question -> Range: disco:Representation 237 | ) 238 | 239 |
240 |
The response domain of questions.
241 |
Datatype Property: disco:questionText 242 | (Domain:disco:Question -> Range: rdf:langString 243 | ) 244 | 245 |
246 |
question text
247 |
Class: disco:Instrument
248 |
The data for the study are collected by an Instrument. The purpose of an Instrument, 249 | i.e. an interview, a questionnaire or another entity used as a means of data collection, 250 | is in the case of a survey to record the flow of a questionnaire, its use of questions, 251 | and additional component parts. A questionnaire contains a flow of questions. 252 |
253 |
Object Property: disco:externalDocumentation 254 | (Domain:disco:Instrument -> Range: foaf:Document 255 | ) 256 | 257 |
258 |
points from an Instrument to a foaf:Document which is the external documentation of 259 | the Instrument. 260 |
261 |
Class: disco:Questionnaire 262 | Sub Class of: disco:Instrument
263 |
A questionnaire contains a flow of questions.
264 |
Object Property: disco:collectionMode 265 | (Domain:disco:Questionnaire -> Range: skos:Concept 266 | ) 267 | 268 |
269 |
mode of collection of a Questionnaire
270 |
271 |

5. Other properties

272 |
273 |
Datatype Property: disco:endDate 274 | (Domain:http://purl.org/dc/terms/PeriodOfTime -> Range: xsd:date 275 | ) 276 | 277 |
278 |
end date
279 |
Datatype Property: disco:startDate 280 | (Domain:http://purl.org/dc/terms/PeriodOfTime -> Range: xsd:date 281 | ) 282 | 283 |
284 |
start date
285 |
Datatype Property: disco:isValid 286 | (Domain:http://www.w3.org/2004/02/skos/core#Concept -> Range: xsd:boolean 287 | ) 288 | 289 |
290 |
Indicates if the code (represented by skos:Concept) is valid or missing.
291 |
Datatype Property: disco:subtitle 292 | (Domain:, disco:Study, disco:StudyGroup -> Range: rdf:langString 293 | ) 294 | 295 |
296 |
The sub-title of a Study of a StudyGroup.
297 |
Datatype Property: disco:purpose 298 | (Domain:, disco:Study, disco:StudyGroup -> Range: rdf:langString 299 | ) 300 | 301 |
302 |
The purpose of a Study of a StudyGroup.
303 |
304 | 305 | -------------------------------------------------------------------------------- /images/Example_ISSP2011_PARTLIV_Frequencies.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/images/Example_ISSP2011_PARTLIV_Frequencies.png -------------------------------------------------------------------------------- /images/Example_ISSP2011_WRKHRS_Frequencies.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/images/Example_ISSP2011_WRKHRS_Frequencies.png -------------------------------------------------------------------------------- /images/Example_ISSP2011_WRKHRS_SummaryStatistics.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/images/Example_ISSP2011_WRKHRS_SummaryStatistics.png -------------------------------------------------------------------------------- /images/example-access-policy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/images/example-access-policy.png -------------------------------------------------------------------------------- /images/example-anzsic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/images/example-anzsic.png -------------------------------------------------------------------------------- /images/example-concept.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/images/example-concept.png -------------------------------------------------------------------------------- /images/example-general-data-file-info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/images/example-general-data-file-info.png -------------------------------------------------------------------------------- /images/example-overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/images/example-overview.png -------------------------------------------------------------------------------- /images/example-questionnaires.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/images/example-questionnaires.png -------------------------------------------------------------------------------- /images/example-universe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/images/example-universe.png -------------------------------------------------------------------------------- /images/example-variable-detail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/images/example-variable-detail.png -------------------------------------------------------------------------------- /images/example-variable-list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/images/example-variable-list.png -------------------------------------------------------------------------------- /images/missy-categoryStatistics.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/images/missy-categoryStatistics.jpg -------------------------------------------------------------------------------- /images/missy-summaryStatistics.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linked-statistics/disco-spec/669dfd656938b05aec4634e36dcf72a2b8e13256/images/missy-summaryStatistics.jpg -------------------------------------------------------------------------------- /mapping.ttl: -------------------------------------------------------------------------------- 1 | @prefix rdf: . 2 | @prefix rdfs: . 3 | @prefix xsd: . 4 | @prefix dc: . 5 | @prefix dcterms: . 6 | @prefix dcat: . 7 | @prefix skos: . 8 | @prefix qb: . 9 | @prefix owl: . 10 | @prefix disco: . 11 | @prefix foaf: . 12 | @prefix adms: . 13 | @prefix org: . 14 | @prefix prov: . 15 | @prefix schema: . 16 | @prefix swrc: . 17 | @prefix xkos: . 18 | 19 | ################# 20 | # mappings from disco-classes.csv 21 | 22 | disco:AnalysisUnit a rdfs:Class, owl:Class; 23 | disco:mapping [ 24 | a disco:Mapping ; 25 | disco:ddi-L-XPath 'r:AnalysisUnit' ; 26 | ] 27 | disco:CategoryStatistics a rdfs:Class, owl:Class; 28 | disco:mapping [ 29 | a disco:Mapping ; 30 | disco:ddi-L-XPath 'p:CategoryStatistics' ; 31 | ] 32 | disco:Instrument a rdfs:Class, owl:Class; 33 | disco:mapping [ 34 | a disco:Mapping ; 35 | disco:ddi-L-XPath 'd:Instrument' ; 36 | ] 37 | disco:Question a rdfs:Class, owl:Class; 38 | disco:mapping [ 39 | a disco:Mapping ; 40 | disco:ddi-L-XPath 'd:QuestionItem | d:MultipleQuestionItem' ; 41 | ] 42 | disco:Questionnaire a rdfs:Class, owl:Class; 43 | disco:mapping [ 44 | a disco:Mapping ; 45 | disco:ddi-L-XPath 'd:Instrument' ; 46 | disco:context 'The instument of the study'; 47 | ] 48 | disco:Study a rdfs:Class, owl:Class; 49 | disco:mapping [ 50 | a disco:Mapping ; 51 | disco:ddi-L-XPath 's:StudyUnit' ; 52 | ] 53 | disco:Variable a rdfs:Class, owl:Class; 54 | disco:mapping [ 55 | a disco:Mapping ; 56 | disco:ddi-L-XPath '//l:Variable' ; 57 | ] 58 | 59 | ################# 60 | # mappings from disco-datatype-properties.csv 61 | 62 | skos:notation a rdfs:Class, owl:Class; 63 | disco:mapping [ 64 | a disco:Mapping ; 65 | disco:ddi-L-XPath '//l:Variable/l:VariableName' ; 66 | disco:ddi-L-Documentation 'http://www.ddialliance.org/Specification/DDI-Lifecycle/3.1/XMLSchema/FieldLevelDocumentation/logicalproduct_xsd/elements/Variable.html' ; 67 | disco:context 'skos:notation represents variable label'; 68 | disco:context 'SELECT ?notation WHERE { ?notation rdfs:domain ?variable. ?variable a disco:Variable. }'; 69 | ] 70 | disco:frequency a rdfs:Class, owl:Class; 71 | disco:mapping [ 72 | a disco:Mapping ; 73 | disco:ddi-L-XPath 'p:CaseQuantity' ; 74 | ] 75 | disco:questionText a rdfs:Class, owl:Class; 76 | disco:mapping [ 77 | a disco:Mapping ; 78 | disco:ddi-L-XPath 'd:QuestionText' ; 79 | ] 80 | disco:purpose a rdfs:Class, owl:Class; 81 | disco:mapping [ 82 | a disco:Mapping ; 83 | disco:ddi-L-XPath 's:Purpose' ; 84 | ] 85 | disco:subtitle a rdfs:Class, owl:Class; 86 | disco:mapping [ 87 | a disco:Mapping ; 88 | disco:ddi-L-XPath 'r:SubTitle' ; 89 | ] 90 | 91 | ################# 92 | # mappings from disco-object-properties.csv 93 | 94 | disco:concept a rdfs:Class, owl:Class; 95 | disco:mapping [ 96 | a disco:Mapping ; 97 | disco:ddi-L-XPath '//l:Vaiable/l:ConceptReference' ; 98 | disco:context 'Varialbe has a concept'; 99 | disco:context 'SELECT ?concept WHERE{?variable a disco:Variable . ?variable disco:concept ?concept.}'; 100 | ] 101 | disco:concept a rdfs:Class, owl:Class; 102 | disco:mapping [ 103 | a disco:Mapping ; 104 | disco:ddi-L-XPath '//d:QuestionItem/r:ConceptReference' ; 105 | disco:context 'Question is defined by concept'; 106 | disco:context '"SELECT ?concept WHERE{?question a disco:Question . ?question disco:concept ?concept.}'; 107 | ] 108 | disco:instrument a rdfs:Class, owl:Class; 109 | disco:mapping [ 110 | a disco:Mapping ; 111 | disco:ddi-L-XPath '//d:DataCollection/[d:QuestionItem d:MultipleQuestionItem]' ; 112 | disco:context 'The instrument of the study questionaire '; 113 | disco:context 'SELECT ?instrument WHERE{?study a disco:Study . ?study disco:instrument ?instrument.}'; 114 | ] 115 | disco:question a rdfs:Class, owl:Class; 116 | disco:mapping [ 117 | a disco:Mapping ; 118 | disco:ddi-L-XPath '//l:Variable/l:QuestionReference' ; 119 | disco:context 'Variable can have a question'; 120 | disco:context 'SELECT ?question WHERE{?variable a disco:Variable . ?variable disco:question ?question.}'; 121 | ] 122 | disco:question a rdfs:Class, owl:Class; 123 | disco:mapping [ 124 | a disco:Mapping ; 125 | disco:ddi-L-XPath '//[d:QuestionItem d:MultipleQuestionItem]' ; 126 | disco:context 'Questions in a questionaire'; 127 | disco:context 'SELECT ?question WHERE{?study a disco:Study . ?study disco:instrument ?instrument. ?instrument disco:question ?question.}'; 128 | ] 129 | disco:representation a rdfs:Class, owl:Class; 130 | disco:mapping [ 131 | a disco:Mapping ; 132 | disco:ddi-L-XPath '//l:Variable/l:Representation/l:CodeRepresentation/[r:CodeSchemeReference l:NumericRepresentation l:TextRepresentation l:DateTimeRepresentation]' ; 133 | disco:context 'Variables can have a representation'; 134 | disco:context 'SELECT ?representation WHERE{?variable a disco:Variable . ?variable disco:representation ?representation.}'; 135 | ] 136 | disco:universe a rdfs:Class, owl:Class; 137 | disco:mapping [ 138 | a disco:Mapping ; 139 | disco:ddi-L-XPath 'disco:universe' ; 140 | disco:context 'Variable can have a concept'; 141 | disco:context 'SELECT ?universe WHERE{?variable a disco:Variable . ?variable disco:universe ?universe.}'; 142 | ] 143 | 144 | ################# 145 | # mappings from external-classes.csv 146 | 147 | skos:ConceptScheme a rdfs:Class, owl:Class; 148 | disco:mapping [ 149 | a disco:Mapping ; 150 | disco:ddi-L-XPath '//l:Variable/l:CodeScheme' ; 151 | disco:context 'Variables can have a coded representaion'; 152 | disco:context 'SELECT ?codeScheme WHERE{?variable a disco:Variable . ?variable disco:representation ?representation. ?representation skos:ConceptScheme ?codeScheme.}'; 153 | ] 154 | 155 | ################# 156 | # mappings from external-datatype-properties.csv 157 | 158 | skos:notation a rdfs:Class, owl:Class; 159 | disco:mapping [ 160 | a disco:Mapping ; 161 | disco:ddi-L-XPath '//l:Variable/l:VariableName' ; 162 | disco:ddi-L-Documentation 'http://www.ddialliance.org/Specification/DDI-Lifecycle/3.1/XMLSchema/FieldLevelDocumentation/logicalproduct_xsd/elements/Variable.html' ; 163 | disco:context 'skos:notation represents variable label'; 164 | disco:context 'SELECT ?notation WHERE { ?notation rdfs:domain ?variable. ?variable a disco:Variable. }'; 165 | ] 166 | 167 | ################# 168 | # mappings from external-object-properties.csv 169 | 170 | dcterms:identifier a rdfs:Class, owl:Class; 171 | disco:mapping [ 172 | a disco:Mapping ; 173 | disco:ddi-L-XPath '//l:Variable/l:VariableName' ; 174 | disco:context 'dcterms:identifier represents variable label'; 175 | disco:context 'SELECT ?identifier WHERE { ?variable a disco:Variable . ?variable dcterms:identifier ?identifier. }'; 176 | ] 177 | skos:prefLabel a rdfs:Class, owl:Class; 178 | disco:mapping [ 179 | a disco:Mapping ; 180 | disco:ddi-L-XPath '//l:Variable/r:Label' ; 181 | disco:context 'skos:prefLabel represents the label of the variable'; 182 | disco:context 'SELECT ?label WHERE{?variable a disco:Variable . ?variable skos:prefLabel ?label.}'; 183 | ] 184 | skos:prefLabel a rdfs:Class, owl:Class; 185 | disco:mapping [ 186 | a disco:Mapping ; 187 | disco:ddi-L-XPath '//d:QuestionItem/d:QuestionItemName' ; 188 | disco:context 'Name of question'; 189 | disco:context 'SELECT ?label WHERE{?question a disco:Question . ?question skos:prefLabel ?label.}'; 190 | ] 191 | -------------------------------------------------------------------------------- /mappings.ttl: -------------------------------------------------------------------------------- 1 | @prefix rdf: . 2 | @prefix rdfs: . 3 | @prefix xsd: . 4 | @prefix dc: . 5 | @prefix dcterms: . 6 | @prefix dcat: . 7 | @prefix skos: . 8 | @prefix qb: . 9 | @prefix owl: . 10 | @prefix disco: . 11 | @prefix foaf: . 12 | @prefix adms: . 13 | @prefix org: . 14 | @prefix prov: . 15 | @prefix schema: . 16 | @prefix swrc: . 17 | @prefix xkos: . 18 | 19 | ################################################################# 20 | # Classes ( disco ) 21 | ################################################################# 22 | 23 | ################################################################# 24 | # Classes ( external vocabularies ) 25 | ################################################################# 26 | 27 | ################################################################# 28 | # Datatype properties ( disco ) 29 | ################################################################# 30 | 31 | ################################################################# 32 | # Datatype properties ( external vocabularies ) 33 | ################################################################# 34 | 35 | skos:notation 36 | a rdf:Property, owl:DatatypeProperty; 37 | disco:mapping [ 38 | a disco:Mapping; 39 | disco:mappingDDI-L "//l:Variable/l:VariableName"; 40 | disco:context "skos:notation represents variable label"; 41 | disco:context "SELECT ?notation WHERE { ?notation rdfs:domain ?variable. ?variable a disco:Variable. }" 42 | ]. 43 | 44 | skos:notation 45 | a rdf:Property, owl:DatatypeProperty; 46 | disco:mapping [ 47 | a disco:Mapping; 48 | disco:mappingDDI-L "XXXXX"; 49 | disco:context "skos:notation represents code"; 50 | disco:context "SELECT ?notation WHERE { ?notation rdfs:domain ?concept. ?concept a skos:Concept. ?concept disco:isValid ?isValid. FILTER ( ?isValid != '' )" 51 | ]. 52 | 53 | ################################################################# 54 | # Object properties ( disco ) 55 | ################################################################# 56 | 57 | ################################################################# 58 | # Object properties ( external vocabularies ) 59 | ################################################################# 60 | 61 | -------------------------------------------------------------------------------- /test/test_rdf-vocabulary_ddialliance_org.cmd: -------------------------------------------------------------------------------- 1 | set LANGUAGE=en_EN 2 | wget --output-file=wget_response.txt --output-document=result_root.html --server-response http://rdf-vocabulary.ddialliance.org/ 3 | wget --append-output=wget_response.txt --output-document=result_default.html --server-response http://rdf-vocabulary.ddialliance.org/discovery 4 | wget --header="Accept: text/html" --append-output=wget_response.txt --output-document=result_text_html.html --server-response http://rdf-vocabulary.ddialliance.org/discovery 5 | wget --header="Accept: application/xhtml+xml" --append-output=wget_response.txt --output-document=result_application_xhtml_xml.html --server-response http://rdf-vocabulary.ddialliance.org/discovery 6 | wget --header="Accept: text/n3" --append-output=wget_response.txt --output-document=result_text_n3.n3 --server-response http://rdf-vocabulary.ddialliance.org/discovery 7 | wget --header="Accept: text/rdf+n3" --append-output=wget_response.txt --output-document=result_text_rdf_n3.n3 --server-response http://rdf-vocabulary.ddialliance.org/discovery 8 | wget --header="Accept: application/rdf+xml" --append-output=wget_response.txt --output-document=result_application_rdf_xml.rdf --server-response http://rdf-vocabulary.ddialliance.org/discovery 9 | wget --header="Accept: text/turtle" --append-output=wget_response.txt --output-document=result_text_turtle.ttl --server-response http://rdf-vocabulary.ddialliance.org/discovery 10 | wget --header="Accept: application/x-turtle" --append-output=wget_response.txt --output-document=result_application_x_turtle.ttl --server-response http://rdf-vocabulary.ddialliance.org/discovery 11 | --------------------------------------------------------------------------------