-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcorrespondencias.html
More file actions
187 lines (172 loc) · 11.2 KB
/
Copy pathcorrespondencias.html
File metadata and controls
187 lines (172 loc) · 11.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Catálogo de Datos Semánticos Estadísticos </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Este catálogo contiene los conjuntos de datos generados en el contexto de la colaboración entre el Ontology Engineering Group de la Universidad Politécnica y el Instituto Nacional de Estadística.">
<meta name="language" content="Spanish">
<meta name="author" content="Diego Conde">
<link rel="stylesheet" href="vocab/themes/blue/style.css" type="text/css" media="print, projection, screen" />
<script src="vocab/js/jquery-1.11.0.js"></script>
<script type="text/javascript" src="vocab/js/jquery.tablesorter.min.js"></script>
<script type="text/javascript" src="vocab/js/jquery.stickytableheaders.js"></script>
<script type="text/javascript" src="vocab/js/jquery-ui.js"></script>
<script type="text/javascript" src="vocab/js/bootstrap.js"></script>
<link rel="stylesheet" href="vocab/css/jquery-ui.css"/>
<script type="text/javascript" id="js">
$(document).ready(function()
{
$("#tablesorter-demo").tablesorter();
$("#tablesorter-demo").stickyTableHeaders();
$('[data-toggle="tooltip"]').tooltip();
});
</script>
<!-- Le styles -->
<link href="vocab/css/bootstrap.css" rel="stylesheet">
<style type="text/css">
body {
padding-top: 60px;
padding-bottom: 40px;
}
</style>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="vocab/js/html5shiv.js"></script>
<![endif]-->
<!-- Fav and touch icons -->
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="index.html">Clasificaciones</a></li>
<li class="active"><a href="#">Correspondencias</a></li>
<li><a href="cubos.html">Cubos de datos</a></li>
<li><a href="queries.html">Data Stories</a></li>
<li><a href="misc.html">Miscelanea</a></li>
<li><a href="SPARQL_tutorial.html">SPARQL Tutorial</a></li>
</ul>
</div>
</div>
</div>
<div class="container">
<!-- Jumbotron -->
<div class="jumbotron">
<h1>Catálogo de Datos Semánticos Estadísticos</h1>
<p class="lead">Este catálogo contiene los conjuntos de datos generados en el contexto de la colaboración entre el Ontology Engineering Group de la Universidad Politécnica y el Instituto Nacional de Estadística. Esta pestaña contiene las correspondencias entre las clasificaciones estadísticas.</p>
</div>
<hr>
<div class="row">
<div class="ui-widget">
<!--<div class="col-md-3" >
<p class="text-right"><label for="tags">Filter by title or domain: </label></p>
</div>
<div class="col-md-8" >
<input class="form-control" id="tags" >
<button id="remButt" class="label label-default" onclick="showRows();" style="font-size: 75%; font-weight: bold; line-height: 1; display: none;"><span class="submit glyphicon glyphicon-remove"></span> Remove filter</button>
</div>
-->
<script>
function generateYasguiLink(clasif, queryInput) {
const SPARQL_ENDPOINT = "https://stats.linkeddata.es/sparql";
// Function to process the query and open YASGUI
processQuery(queryInput);
function processQuery(queryTemplate) {
const query = queryTemplate.replace("{{CLASI}}", clasif);
const encodedQuery = encodeURIComponent(query);
const encodedEndpoint = encodeURIComponent(SPARQL_ENDPOINT);
window.open(`https://yasgui.triply.cc/#query=${encodedQuery}&endpoint=${encodedEndpoint}`, '_blank');
}
}
function generateYasguiLinkCorres(clasif1,clasif2, queryInput) {
const SPARQL_ENDPOINT = "https://stats.linkeddata.es/sparql";
// Function to process the query and open YASGUI
processQuery(queryInput);
function processQuery(queryTemplate) {
const query = queryTemplate.replace("{{CLASI1}}", clasif1);
query = queryTemplate.replace("{{CLASI2}}", clasif2);
const encodedQuery = encodeURIComponent(query);
const encodedEndpoint = encodeURIComponent(SPARQL_ENDPOINT);
window.open(`https://yasgui.triply.cc/#query=${encodedQuery}&endpoint=${encodedEndpoint}`, '_blank');
}
}
</script>
</div>
</div>
<br>
<table id="tablesorter-demo" class="tablesorter table table-hover table-responsive">
<thead>
<tr>
<th class="col-md-2">SKOS Concept Scheme</th>
<th class="col-md-2">Serialization</th>
<th class="col-md-1">License</th>
<th class="col-md-1">Language</th>
<th class="col-md-2">Links</th>
<th class="col-md-4">Description</th>
<th class="col-md-4">Queries</th>
</tr>
</thead>
<tbody>
<tr id="tr1">
<td><a href="javascript:void(0);" onclick="generateYasguiLink('', 'PREFIX xkos: <http://rdf-vocabulary.ddialliance.org/xkos#>\nPREFIX skos: <http://www.w3.org/2004/02/skos/core#>\nPREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nSELECT DISTINCT ?x ?z WHERE { \n?x skos:inScheme <http://lod.ine.es/kos/cnae/CNAE-2009>.\n?z skos:inScheme <http://lod.ine.es/kos/nace/NACE-Rev.2>.\n?x xkos:ConceptAssociation ?z.\n}');">CNAE-2009-NACE-Rev.2</a></td>
<td><a href="nt-data/correspondencias_cnae-2009-nace-rev.2.nt" target="_blank"> <span class="label label-primary">N-Triples</span> </a></td>
<td><a href="http://purl.org/NET/rdflicense/cc-by4.0" target="_blank"> <span class="label label-success">CC-BY</span> </a></td>
<td><a href="http://www.lexvo.org/page/iso639-3/spa" target="_blank"> <span class="label label-primary">es</span></a> </td>
<td>
<img src="vocab/img/repo.svg" alt="repository"/><span style="padding-left:20px"><a href="https://github.com/oeg-upm/LinkedOpenDataINE/tree/main">Github Repository</a><br></span>
</td>
<td>Correspondencias entre CNAE-2009 y NACE-Rev.2</td>
<td><a href="javascript:void(0);" onclick="generateYasguiLink('','PREFIX xkos: <http://rdf-vocabulary.ddialliance.org/xkos#>\nPREFIX skos: <http://www.w3.org/2004/02/skos/core#>\nPREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nSELECT DISTINCT ?z WHERE { \n{?z skos:inScheme <http://lod.ine.es/kos/cnae/CNAE-2009>.\n<http://lod.ine.es/kos/nace/NACE-Rev.2/4/4743> xkos:ConceptAssociation ?z.}\nUNION\n{?z skos:inScheme <http://lod.ine.es/kos/cnae/CNAE-2009>.\n?z xkos:ConceptAssociation <http://lod.ine.es/kos/nace/NACE-Rev.2/4/4743>.}\n}');">Obtención del elemento correspondiente a otro de las clasificaciones dadas.</a></td>
</tr>
<tr id="tr2">
<td><a href="javascript:void(0);" onclick="generateYasguiLink('', 'PREFIX xkos: <http://rdf-vocabulary.ddialliance.org/xkos#>\nPREFIX skos: <http://www.w3.org/2004/02/skos/core#>\nPREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nSELECT DISTINCT ?x ?z WHERE { \n?x skos:inScheme <http://lod.ine.es/kos/cnae/CNAE-93-Rev.1>.\n?z skos:inScheme <http://lod.ine.es/kos/cnae/CNAE-2009>.\n?x xkos:ConceptAssociation ?z.\n}');">CNAE93-2009</a></td>
<td><a href="nt-data/correspondencias_cnae93-cnae09.nt" target="_blank"> <span class="label label-primary">N-Triples</span> </a></td>
<td><a href="http://purl.org/NET/rdflicense/cc-by4.0" target="_blank"> <span class="label label-success">CC-BY</span> </a></td>
<td><a href="http://www.lexvo.org/page/iso639-3/spa" target="_blank"> <span class="label label-primary">es</span></a> </td>
<td>
<img src="vocab/img/repo.svg" alt="repository"/><span style="padding-left:20px"><a href="https://github.com/oeg-upm/LinkedOpenDataINE/tree/main">Github Repository</a><br></span>
</td>
<td>Correspondencias entre CNAE-93 y CNAE-2009</td>
<td><a href="javascript:void(0);" onclick="generateYasguiLink('','PREFIX xkos: <http://rdf-vocabulary.ddialliance.org/xkos#>\nPREFIX skos: <http://www.w3.org/2004/02/skos/core#>\nPREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nSELECT DISTINCT ?z WHERE { \n{?z skos:inScheme <http://lod.ine.es/kos/cnae/CNAE-2009>.\n<http://lod.ine.es/kos/cnae/CNAE-93-Rev.1/6/45421> xkos:ConceptAssociation ?z.}\nUNION\n{?z skos:inScheme <http://lod.ine.es/kos/cnae/CNAE-2009>.\n?z xkos:ConceptAssociation <http://lod.ine.es/kos/cnae/CNAE-93-Rev.1/6/45421>.}\n}');">Obtención del elemento correspondiente a otro de las clasificaciones dadas.</a></td>
</tr>
<tr id="tr3">
<td><a href="javascript:void(0);" onclick="generateYasguiLink('', 'PREFIX xkos: <http://rdf-vocabulary.ddialliance.org/xkos#>\nPREFIX skos: <http://www.w3.org/2004/02/skos/core#>\nPREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\n PREFIX place: <http://purl.org/ontology/places#>\n SELECT DISTINCT ?x ?z WHERE { \n ?x skos:broader ?z.\n {\n ?x skos:inScheme <http://lod.ine.es/kos/municipios/MUNICIPIOS>.\n ?z skos:inScheme <http://lod.ine.es/kos/provincias/PROVINCIAS>.\n } UNION {\n ?x skos:inScheme <http://lod.ine.es/kos/provincias/PROVINCIAS>.\n ?z skos:inScheme <http://lod.ine.es/kos/ccaa/CCAA>.\n }\n}');">Municipios por provincia, y provincia por comunidad autónoma e isla con sus códigos</a></td>
<td><a href="nt_data/clasificaciones_municipios.nt" target="_blank"> <span class="label label-primary">N-Triples</span> </a></td>
<td><a href="http://purl.org/NET/rdflicense/cc-by4.0" target="_blank"> <span class="label label-success">CC-BY</span> </a></td>
<td><a href="http://www.lexvo.org/page/iso639-3/spa" target="_blank"> <span class="label label-primary">es</span></a> </td>
<td>
<img src="vocab/img/repo.svg" alt="repository"/><span style="padding-left:20px"><a href="https://github.com/oeg-upm/LinkedOpenDataINE/tree/main">Github Repository</a><br></span>
</td>
<td>Municipios por provincia, y provincia por comunidad autónoma e isla con sus códigos</td>
<td><a href="javascript:void(0);" onclick="generateYasguiLink('','PREFIX xkos: <http://rdf-vocabulary.ddialliance.org/xkos#>\nPREFIX skos: <http://www.w3.org/2004/02/skos/core#>\nPREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\n\nSELECT DISTINCT ?z WHERE { \n<http://lod.ine.es/kos//municipios/MUNICIPIOS/{{MUN}}> skos:broader ?y.\n ?y skos:prefLabel ?z.}');">Obtención de la provincia correspondiente a un municipio dado el código.</a></td>
</tr>
</tbody></table>
<hr>
<footer class="footer">
<div class="row">
<div class="col-md-9">
Catalogue developed by <a href = "https://oeg.fi.upm.es" target="_blank">Ontology Engineering Group</a>
<br>
Built with <a target="_blank" href="http://getbootstrap.com/">Bootstrap</a>
Icons from <a target="_blank" href="http://glyphicons.com/">Glyphicons</a>
<br>
Latest revision March </Obj>, 2025
</div>
<div class="col-md-3">
<a href="https://oeg.fi.upm.es/" target="_blank"><img src="vocab/img/logo-oeg.gif" alt="OEG logo" class="img-rounded" class="img-responsive" /></a>
</div>
</div>
</footer>
</div>
</body>
</html>