Skip to content

SDM-TIB/ckanext-kgcreation

Repository files navigation

ckanext-kgcreation

ckanext-kgcreation is a CKAN plugin that adds the ability to generate RDF triples from datasets, services, resources, and organization. KGCreation uses SDM-RDFizer (https://github.com/SDM-TIB/SDM-RDFizer) as a knowledge graph creation engine.

Installation

To install ckanext-kgcreation:

  1. Activate your CKAN virtual environment, for example:

    . /usr/lib/ckan/default/bin/activate
    
  2. Install the ckanext-LDM_SPARQL Python package into your virtual environment:

    pip install ckanext-kgcreation
    
  3. Add kgcreation to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/ckan.ini).

  4. Set up Enviroment Variables in the .env file. CKAN_KG_DOMAIN sets the value for the Domain of knowledge graph. ENDPOINT_URL sets the value of the url of the endpoint. For ENDPOINT_URL, only add the domain (i.e. http://localhost), the port will be added in the code.

  5. When using the Docker image for CKAN and a docker container endpoint, replace the line 40 in file Virtuoso_Util.py:

    self.virtuosoGraph = config.get("LDMSPARQL_ENDPOINT_GRAPH", os.environ.get('CKAN_KG_DOMAIN') + ':8890/')
    

    with:

    self.virtuosoGraph = config.get("LDMSPARQL_ENDPOINT_GRAPH", 'http://endpoint:8890/')
    

    endpoint is the variable in docker-compose that represents the endpoint.

  6. Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu:

    sudo service apache2 reload
    

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •