Code Monkey home page Code Monkey logo

rdf-ext-cli's Introduction

rdf-ext-cli

build status npm version

A command line util for RDF-Ext to convert and validate RDF data. It supports reading different formats from the local file system, HTTP URLs, and SPARQL endpoints. The data can be validated with SHACL using shacl-engine.

Install

Use the following command to install the util with npm. A symlink will be added to the path.

npm install -g rdf-ext-cli

Usage

You can run the tool like this:

rdf-ext somePathOrUrl

This will read somePathOrUrl with content-type auto-detection and write the result in the default format to stdout. If --shacl-url is given, the input will be validated against the given SHACL shape, and the report will be written to the output. Run rdf-ext without any arguments to get a full list of supported parameters.

Help

Usage: rdf-ext-cli [options] [input]

Arguments:
  input                                input

Options:
  --input-endpoint <url>               input SPARQL endpoint url
  --input-query <query>                input SPARQL query
  --input-type <type>                  input content type
  --shacl-endpoint <url>               SHACL SPARQL endpoint url
  --shacl-query <query>                SHACL SPARQL query
  --shacl-type <type>                  SHACL content type (default: "text/turtle")
  --shacl-url <url>                    SHACL URL
  --shacl-debug                        generate results for successful validations
  --shacl-details                      generate nested result details
  --shacl-trace                        generate results for path traversing
  --transform-map-namespace <mapping>  map the given namespaces (default: {"index":{}})
  --transform-skolem-iris <baseIri>    map blank nodes to Skolem IRIs
  --transform-to-triples               set graph to default graph
  --output-prefix <prefix>             output prefix (default: {})
  --output-type <type>                 output content type (default: "text/turtle")
  --pretty                             use pretty print serializer
  -h, --help                           display help for command

Examples

See the examples folder for some example commands.

rdf-ext-cli's People

Contributors

bergos avatar dependabot[bot] avatar

Stargazers

Eva avatar Cristian Vasquez avatar Angelo Veltens avatar Stefan Oblinger avatar

Watchers

 avatar

rdf-ext-cli's Issues

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.