Open frbattid opened 7 years ago
This will be implemented by means of a Json file containing a "template" for all the possible combinations of service-subservice-entity:
{
"services": [
{
"service": "<service name or regular expression>",
"servicePaths": [
{
"servicePath": "<service path or regular expression>",
"dataset_metadata": {
<dataset related metadata>
},
"entities": [
{
"entityId": "<entity ID or regular expression>",
"entityType": "<entity type or regular expression>",
"resource_metadata": {
<resource related metadata>
}
},
...
]
},
...
]
},
...
]
}
Both the dataset and resource metadata fields could make use of "variables". When running, the variables will be replaced with specific values regarding the current processed events. Variables are quite straightforward to explain:
SERVICE_PATH
ENTITY_ID
ENTITY_TYPE
This configuration must take into account the Name Mappings feature may alter either the service, either the service path, either the entity ID either the entity type.
Please observe this is only useful for the row-like mode of NGSICKANSink
, since it automatically provisions CKAN datasets.
When working in column-like mode, NTI metadata must be added, as Json payload, to the package_create
operation by the admin.
NTI stands for Norma Técnica de Interoperabilidad.
http://datos.gob.es/es/documentacion/norma-tecnica-de-interoperabilidad-de-reutilizacion-de-recursos-de-informacion
NTI-related metadata is required when integrating Cygnus with OGoov Transparecy Portal, which is based in CKAN.
title_translated: {en: "Demographic data", es: "Datos Demográficos"}
. El título principal del dataset hay que registrarlo igualmente en el campo "title" del dataset. Este campo se corresponde al título en el idioma por defecto del dataset, que en nuestro ckan.ogoov.com es "es" (español). Es obligatorio guardar el idioma por defecto tanto en el campo "title" como en el campo "title_translated" por restricciones de la extensión ckanext-scheming utilizada.keywords: {en: ["demography","population"],es: ["demografía","población"]}
.notes_translated: {en: "Main demographic data of Castilla y León and León province.", es: "Principales datos demográficos de Castilla y León y la Provincia de León."}
.openness_score: "3"
.last_updated: "2015-02-02"
.language: "es"
(Si el catálogo de datos por ejemplo está completamente en inglés, pero este dataset en concreto está en español).spatial: "Cadiz"
(El catátolo es de Sevilla, pero este dataset pertenece a Cádiz por el motivo que sea).hasBegining: "2015-01-01"
yhasEnd: "2015-12-31"
.references: "http://www1.sedecatastro.gob.es , http://definicionlegal.blogspot.com.es/2012/06/la-propiedad.html"
.conformsTo: "http://www.catastro.meh.es/documentos/res_241108.pdf , http://www.catastro.meh.es/documentos/norma..."
.name_translated: {en: "Assets of Cultural Interest of Leon", es: "Bienes de interés Cultural de la Provincia de León"}
.description_translated: {en: "The legal declaration known as Assets of Cultural Interest is a figure of protection regulated by law 16/1985, of 25 June, Spain's heritage historic.1 Then this figure's maximum range was gradually taken by the legislation of the autonomous communities, entities involved in the initiation of records and studies, with the supervision of the Culture's Ministry for the definitive statement.", es: "La declaración legal denominada Bien de Interés Cultural es una figura de protección regulada por la Ley 16/1985, de 25 de junio, del Patrimonio Histórico Español.1 Posteriormente esta figura de máximo rango fue asumida paulatinamente por la legislación de las comunidades autónomas, entidades que participan en la incoación de expedientes y estudios, con la supervisión del Ministerio de Cultura para la declaración definitiva."}
.resource_file_information: "Información"
.resource_filesize: "50"
.resource_fiware_url: "http://orion.lab.fiware.org:1026/v1/queryContext?limit=40"
.resource_payload: "{"entities": [{"type": "bikerenting", "id": "Sevici.*", "isPattern": "true"}"
resource_viewing: "1"
.resource_language: "es"
.