Git Product home page Git Product logo

dcat-ap-dumps-to-feeds's Introduction

From DCAT-AP dumps to feeds

When no state is provided, the script is going to extract all entities and mention them as as:Creates. When a state is already present, it is going to compare all entities with a fingerprint and check whether the set of triples changed, and whether the entity is still present. New entities can also be added.

Clone the repo, fetch a dataset, and execute ts-node bin/dumpsToFeed.ts.

Parameters:

  • feedname for the state and building a relative IRI
  • filename of the dump

Options:

  • --flush clears the state

Datasets to use

Example workflows:

dcat-ap-dumps-to-feeds's People

Contributors

pietercolpaert avatar vidyashreetarikereugent avatar

Watchers

 avatar

dcat-ap-dumps-to-feeds's Issues

Build the IRIs of the activities using the feed page as the base

At this moment, IRIs for the event are not dereferenceable as they are build as follows: namednode iri of the dcat entity + # + timestamp

I instead propose to do a relative IRI: #dataset/timestamp. That way, the IRI will be relative to the current page and will be dereferenceable, successfully creating a dereferenceable IRI for the activity

Turn this into an RDF Connect processor

Let’s split off the logic for the Dump to Feeds based on a Shape Template. It should become a processor within the RDF Connect framework

This repository should then contain the configurations to make different DCAT dumps work.

  • As argument, it needs to take
    • a NodeShape IRI
    • optionally an URL to the ShapesGraph (which is going to default to the URL the NodeShape dereferences to) -- From that URL, we will also need to follow owl:imports recursively
    • An RDFStore containing a new iteration of the dump
    • A list of focus nodes it needs to start from
  • When used as a library in the RDF Connect framework, it must write the stream the RDF Connect way
  • We should ensure this can then work for any kind of dumps scenario

Tests with blank nodes

Add tests with entities containing blank nodes in various positions:

  • Will test whether canonization works as expected
  • Will test whether we gracefully warn about problems when using blank nodes for standalone entities

Turn into a proper library

  1. Use RDF-JS types instead of N3 types (note to self: always to that by default)
  2. Add the console log into the bin, and make stream configurable
  3. Make the shape template configurable
  4. Allow to configure the targets for the “standalone” entities so that this script can be used for any kind of data dumps to LDES pipeline.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.