简体   繁体   English

我可以自定义CKAN后端

[英]Can I customize CKAN backend

I want to implement my own api for data transfers and data results because I am using a noSql database in my storage layer. 我想为数据传输和数据结果实现自己的api,因为我在存储层中使用了noSql数据库。 Is it possible to customize CKAN backend? 是否可以自定义CKAN后端?

Replacing CKAN's own metadata storage (PostgreSQL + Solr) would probably be a huge amount of work. 替换CKAN自己的元数据存储(PostgreSQL + Solr)可能需要大量工作。 The usual approach is therefore to create separate metadata entries in CKAN for the datasets in your original database. 因此,通常的方法是在CKAN中为原始数据库中的数据集创建单独的元数据条目。 This is called harvesting and is usually done using the ckanext-harvest extension. 这称为收获 ,通常使用ckanext-harvest扩展来完成。

In particular, you would implement your own harvester that creates CKAN datasets and resources for the data in your NoSQL database. 特别是,您将实现自己的收集器 ,该收集器将为NoSQL数据库中的数据创建CKAN数据集和资源。 The resources you create in your harvester can link back to the NoSQL database, so that the data itself is not duplicated. 您在收割机中创建的资源可以链接回NoSQL数据库,这样就不会重复数据本身。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM