Metadata

Distro Index Owner:
eea
Home Page:
eea.dexterity.sparql
License
GPL
Version:
1.0
Last updated:
2020-08-03
Keywords:
EEA Add-ons Plone Zope

eea.dexterity.sparql

Files

Indexes

Wrapper for Products.ZSPARQLMethod

EEA Dexterity Sparql

develop master

EEA Dexterity Sparql is a plone product for fetching data from Linked open data servers (sparql endpoints).

Introduction

It is simple to use, you only have to specify the sparql endpoint url and the sparql query. The results will be converted in an exhibit json, what can easily be reused (ex. by eea.daviz).

Main features

The main features are:

  1. create sparql queries
  2. create sparql bookmark folders, sparql queries are created automatically, and can be synchronized manually or automatically (with a cronjob). If a query is changed, a new version of the object is created, so older ones are not lost.
  3. results are downloadable in various formats: JSON, Exhibit JSON, HTML, XML, XML with Schema, CSV, TSV

Installation

To install eea.dexterity.sparql into the global Python environment (or a workingenv), using a traditional Zope 2 instance, you can do this:

  • When you're reading this you have probably already run easy_install eea.dexterity.sparql. Find out how to install setuptools (and EasyInstall) here: http://peak.telecommunity.com/DevCenter/EasyInstall

  • If you are using Zope 2.9 (not 2.10), get pythonproducts and install it via:

    python setup.py install --home /path/to/instance
    

    into your Zope instance.

  • Create a file called eea.dexterity.sparql-configure.zcml in the /path/to/instance/etc/package-includes directory. The file should only contain this:

    <include package="eea.dexterity.sparql" />
    

Alternatively, if you are using zc.buildout and the plone.recipe.zope2instance recipe to manage your project, you can do this:

  • Add eea.dexterity.sparql to the list of eggs to install, e.g.:

    [buildout]
    eggs = eea.dexterity.sparql
    
  • Tell the plone.recipe.zope2instance recipe to install a ZCML slug:

    [instance]
    recipe = plone.recipe.zope2instance
    zcml = eea.dexterity.sparql
    

You can skip the ZCML slug if you are going to explicitly include the package from another package's configure.zcml file.

You will also need a worker instance to be set up. This is required for the async update of the last working results.

  • For both, normal and worker instances, the plone.app.async should be added in the EGG slug:

    eggs =
      ...
      plone.app.async
    
  • For the normal instances, the plone.app.async-single_db_instance should be added in the ZCML slug:

    zcml =
      ...
      plone.app.async-single_db_instance
    
  • For the worker instances, the plone.app.async-single_db_worker should be added in the ZCML slug:

    zcml =
      ...
      plone.app.async-single_db_worker
    
  • Re-run buildout, e.g. with:

    $ ./bin/buildout
    

Dependecies

  • Products.ZSPARQLMethod
  • eea.versions
  • plone.app.async
  • eea.cache 7.0+ (optional)

Source code

Latest source code (Plone 4 compatible): - Plone Collective on Github - EEA on Github

Funding

EEA - European Environment Agency (EU)

Changelog

1.0 - (2020-07-21)

  • Change: Merge #111217 [Petchesi-Iulian]

0.9 - (2020-06-02)

  • Initial release [iulianpetchesi refs #111217]