npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@prov4itdata/web-app

v0.3.1

Published

PROV4ITDaTa Web app

Downloads

1

Readme

README

PROV4ITDaTa:web-app serves as the backend for the PROV4ITDaTa platform, its main tasks are:

  • Managing authorization of a user with a Service Provider (e.g. Flickr, Imgur, etc.)
  • Injecting authorization credentials into RML Mappings
  • Executing RML Mappings on the RML Mapper, and providing the results to the client-side

Technical details can be found in docs/REPORT.md.

Setup: RMLMapper Web API

For some of the use cases defined below, the RMLMapper Web API needs to be running.

The RMLMapper Web API must be set up using a specific version of the RMLMapper. You can find the corresponding JAR here, or you can download it from the commandline as follows:

curl -L https://cloud.ilabt.imec.be/index.php/s/sGqqBNWYFBJ6iLA/download --output rmlmapper.jar

Assuming you have the downloaded the JAR to the current directory, you can run the RMLMapper Web API using this JAR as follows

rmlmapper-webapi -r rmlmapper.jar

By default, this will serve the RMLMapper Web API at http://localhost:4000/.

Setup: web-app

You can configure the environment using the app-config.json file:

  • To run the web-app locally, set the environment value to dev. Don't forget to specify the url of the RMLMapper Web API using the rmlmapper_webapi property.
  • To run the web-app on the testbed, set the environment value to testbed. Don't forget to specify the url of the RMLMapper Web API using the rmlmapper_webapi property.

Each app-config refers to a json file (template at config.template.json) that contains all credentials. Check the respective Data Provider APIs as to how to specify all credentials.

Install the web-app as follows:

yarn install

Once the installation is completed, we have to install and build the user-interface (@prov4itdata/ui). This can be done by running the ui:all script:

yarn run ui:all

Run the web-app using:

yarn run start

Run the web-app in development mode using:

yarn run start:dev

Use cases

Use case: Transfer data

  1. Navigate to the web-app (depends on the configuration in app-config.json).
  2. If you aren't already logged in to your Solid pod, you will be redirected to the login page.
  3. The web-app's home page will show a dropdown menu where you can select a mapping to be executed. When selecting a mapping, it will be shown in the RML Rules card. Click the card to expand/collapse.
  4. When clicking "Execute", the generated output and provenance will available in the "Generated RDF" and "Provenance" cards respectively. The generated output will be stored on the Solid pod.
  5. You can download the RML rules, generated output, and provenance using the corresponding "Download"-button in each card.
  6. Verify what is stored on the Solid pod using the controls in the Solid-card. It is also possible to delete the file afterwards.

License

This code is copyrighted by Ghent University – imec and released under the MIT license.