Skip to content

PR: Add unlimited sparql updates #99

@devseppala

Description

@devseppala

Skosify has for a long time been limited to a single sparql update query and single post transformation sparql update query. Today I forked Skosify and implemented unlimited sparql updates and post sparql updates.

Unlimited sparql updates are implemented by introducing two new sections, sparqlupdates and postsparqlupdates, to skosify config. These new sections are expected to contain only keys that are sparql queries. The names of the keys do not matter, they only have to be unique. All the values of the keys in these sections are read to a list, from which they are executed on the graphs in the order they appear in the configuration file.

In addition, I implemented a sparql_prefixes configuration key, which can contain sparql prefixes that will be shared by all sparql queries. It's rational is to make configuration file shorter and easier to read, when it contains many queries. The contents of sparql_prefixes key is prepended to all sparql queries before they are executed.

The implementation is quite straight forward and is backwards compatible with older configuration files. You can look the changes from the link below:

https://github.com/devseppala/Skosify/commits/sparqlupdates/

I created this issue for discussion before making a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions