Data Catalog Vocabulary/Datos de Asturias

From W3C eGovernment Wiki
Jump to: navigation, search

The Catálogo de Datos de Asturias is a dataset catalog created by CTIC for the Principality of Asturias.

  • Not just the catalog but also the actual data is entirely in RDF
  • The catalog uses voiD


Datasets

There are three datasets:

  • Locations in Asturias (Structure of the different Administrative Areas in this region).
  • Asturias' Government Bodies and Facilities
  • Public Training Courses offer published by the Public Employment Agency.

Every dataset is defined using RDF, including metadata modeled with 'standard' vocabularies like VoID, DC, CC, provenance, FOAF, etc.

This is an example of the RDF-XML used to describe the dataset of Training Offer:

<void:Dataset rdf:about="http://risp.asturias.es/catalogo/empleo/oferta-formativa">

 < !-- Info about the Dataset -->
 <rdfs:label xml:lang="en">Public Employment Office Training Offer , Principality of Asturias</rdfs:label>
 <dcterms:title xml:lang="en">Public Employment Office Training Offer , Principality of Asturias</dcterms:title>
 <dcterms:identifier>http://risp.asturias.es/catalogo/empleo/oferta-formativa</dcterms:identifier>
 <foaf:homepage rdf:resource="http://risp.asturias.es/catalogo/empleo/oferta-formativa"/>
 <dcterms:isVersionOf rdf:resource="http://risp.asturias.es/catalogo/empleo/oferta-formativa"/>
 <dcterms:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-02-17</dcterms:modified>

 < !-- HTML document format -->
 <dcterms:hasFormat>
   <dctype:Text rdf:about="http://risp.asturias.es/catalogo/empleo/oferta-formativa.html">
     <dcterms:format>
       <dcterms:IMT>
         <rdf:value>text/html</rdf:value>
         <rdfs:label>HTML</rdfs:label>
       </dcterms:IMT>
     </dcterms:format>
   </dctype:Text>
 </dcterms:hasFormat>

 < !-- RDF format document -->
 <dcterms:hasFormat>
   <dctype:Text rdf:about="http://risp.asturias.es/catalogo/empleo/oferta-formativa.rdf">
     <dcterms:format>
       <dcterms:IMT>
         <rdf:value>application/rdf+xml</rdf:value>
         <rdfs:label>RDF</rdfs:label>
       </dcterms:IMT>
     </dcterms:format>
   </dctype:Text>
 </dcterms:hasFormat>

 < !-- License -->
 <cc:license rdf:parseType="Resource">
 <rdf:type  rdf:resource="http://creativecommons.org/ns#License" />
 <rdfs:label xml:lang="en">Creative Commons License (CC-by 3.0)</rdfs:label>
 <cc:permits rdf:resource="http://creativecommons.org/ns#DerivativeWorks"/>
 <cc:permits rdf:resource="http://creativecommons.org/ns#Distribution"/>
 <cc:permits rdf:resource="http://creativecommons.org/ns#Reproduction"/>
 <cc:requires rdf:resource="http://creativecommons.org/ns#Attribution"/>
 < !-- Comment about usage of these data (legal disclaimer) -->
 <rdfs:comment xml:lang="es"><![CDATA[Licencia de los datos Creative Commons-Reconocimiento (CC-by 3.0),  con la obligación de reconocer la autoría y citar al Gobierno del Principado de Asturias como la fuente de los conjuntos de datos de la forma siguiente: Origen de los datos: Gobierno del Principado de Asturias (http://risp.asturias.es). Se permite: copiar, distribuir y divulgar públicamente los datos; que puedan servir como base a obras derivadas como resultado de su análisis o estudio;  que puedan utilizarse con fines comerciales y no comerciales; que se puedan modificar, transformar y adaptar, publicando a su vez dichos cambios.]]></rdfs:comment>
   <foaf:homepage rdf:resource="http://cort.as/_wEm"/>
 </cc:license>

 < !-- Provenance  -->
 <prv:createdBy rdf:resource="http://risp.asturias.es"/>

 <dcterms:subject rdf:resource="http://dbpedia.org/resource/Education"/>
 <dcterms:subject rdf:resource="http://dbpedia.org/resource/Training"/>

 < !-- Sample Data  -->
 <void:exampleResource rdf:resource="http://risp.asturias.es/empleo/oferta-formativa/Accion-Formativa/2009_616"/>
 <void:exampleResource rdf:resource="http://risp.asturias.es/empleo/oferta-formativa/Centro-Colaborador/C0020"/>
 <void:exampleResource rdf:resource="http://risp.asturias.es/empleo/oferta-formativa/Organizacion-Colaboradora/E0244"/>
 <void:uriRegexPattern>http://risp.asturias.es/empleo/oferta-formativa/.+</void:uriRegexPattern>

 < !-- Available Data Format   -->
 <void:feature rdf:parseType="Resource">
   <rdf:type rdf:resource="http://rdfs.org/ns/void#TechnicalFeature" />
   <dcterms:format>application/sparql-results+xml</dcterms:format>
   <rdfs:comment>Disponible como formato SPARQL/XML</rdfs:comment>
   <rdfs:label>SPARQL/XML</rdfs:label>
 </void:feature>            
 <void:feature rdf:parseType="Resource">
   <rdf:type rdf:resource="http://rdfs.org/ns/void#TechnicalFeature" />
   <dcterms:format>application/sparql-results+json</dcterms:format>
   <rdfs:comment>Disponible como formato SPARQL/JSON</rdfs:comment>
   <rdfs:label>SPARQL/JSON</rdfs:label>
 </void:feature>            
 <void:feature rdf:parseType="Resource">
   <rdf:type rdf:resource="http://rdfs.org/ns/void#TechnicalFeature" />
   <dcterms:format>application/rdf+xml</dcterms:format>
   <rdfs:comment>Disponible como formato RDF/XML</rdfs:comment>
   <rdfs:label>RDF/XML</rdfs:label>
 </void:feature>
 <void:feature rdf:parseType="Resource">
   <rdf:type rdf:resource="http://rdfs.org/ns/void#TechnicalFeature" />
   <dcterms:format>text/html</dcterms:format>
   <rdfs:comment>Disponible como formato HTML</rdfs:comment>
   <rdfs:label>HTML</rdfs:label>
 </void:feature>
 <void:feature rdf:parseType="Resource">
   <rdf:type rdf:resource="http://rdfs.org/ns/void#TechnicalFeature" />
   <dcterms:format>application/n3</dcterms:format>
   <rdfs:comment>Disponible como formato RDF/N3</rdfs:comment>
   <rdfs:label>RDF/N3</rdfs:label>
 </void:feature>
 <void:feature rdf:parseType="Resource">
   <rdf:type rdf:resource="http://rdfs.org/ns/void#TechnicalFeature" />
   <dcterms:format>application/x-turtle</dcterms:format>
   <rdfs:comment>Disponible como formato RDF/TURTLE</rdfs:comment>
   <rdfs:label>TURTLE</rdfs:label>
 </void:feature>

 < !-- SPARQL endpoint -->
 <void:sparqlEndpoint rdf:resource="http://risp.asturias.es/sparql"/>

 < !-- Main vocabulary used -->
 <void:vocabulary rdf:resource="http://risp.asturias.es/vocab/empleo/oferta-formativa#"/>

 < !-- Subsets: Courses; Training Centers, Institutes; Organizer Organization; Addresses -->
 <void:subset rdf:resource="#Accion-Formativa"/>
 <void:subset rdf:resource="#Centro-Colaborador"/>
 <void:subset rdf:resource="#Organizacion-Colaboradora"/>
 <void:subset rdf:resource="#Direccion"/>

</void:Dataset>


Every subset is represented in the same way (void:Dataset), as well as every link (void:Linkset) with other datasets (Geonames, DBPedia, etc.)

This RDF is stored in the triplestore, so it may be queried using SPARQL (http://risp.asturias.es/sparql).

Catalog Generation in HTML (SPARQL + XSL transformation)

The Dataset Catalog is created using the RDF information of the triplestore, dynamically a XSL Transformation is done to transform a SPARQL Query result in XML into a HTML grid where all the datasets are listed. So: