Code Monkey home page Code Monkey logo

monban's Introduction

Monban: A RDF Lint Tool & Aramashi: A tool for RDF statistics

Prerequisites

Setup

$ git clone https://github.com/dbcls/monban
$ cd monban
$ yarn install

Monban

monban lints the file specified.

$ ./bin/monban [target file (.nt, .ttl)]

Options

--primal-classes <path.txt>

Path to primal classes definition. List classes one per line.

Example:

http://example.com/primaryClass1
http://example.com/primaryClass2

--uri-whitelist <path.tsv>

Path to white list definition for rdfs:seeAlso test. The file should be a Tab Separated Values (TSV) file.

  • 1st column: label of the pattern
  • 2nd column: RegExp of the pattern

Example:

Example1	^http://example\.com/1/
Example2	^http://example\.com/2/

--uri-blacklist <path.tsv>

Path to black list definition for rdfs:seeAlso test. The file should be a Tab Separated Values (TSV) file.

  • 1st column: label of the pattern
  • 2nd column: RegExp of the pattern
Example1	^http://example\.com/1/
Example2	^http://example\.com/2/

--ontology <path.ttl>

Path to ontology (in Turtle or N-Triples). This option can be specified multiple times.

Example1	^http://example\.com/1/
Example2	^http://example\.com/2/

--bib-patterns <path.tsv>

Path to bibliography resource patterns.

Example (this is the default):

PMC	^http://identifiers\.org/pmc/
PubMed	^http://identifiers\.org/pubmed/
DOI	^http://doi\.org/

--report-limit <number>

Number of error instances to report per error. If negative specified, no limit.

Default: 10

--output-format <format>

Output format. json and markdown are available.

Default: markdown

Aramashi

aramashi computes RDF statistics of the file.

$ ./bin/aramashi [target file (.nt, .ttl)]

Option

--link-patterns <path.tsv>

Path to the link pattern definition. The file should be a Tab Separated Values (TSV) file.

  • 1st column: label of the pattern
  • 2nd column: RegExp of the pattern

Example:

DDBJ	^http://identifiers\.org/insdc/
KERO	^http://kero\.hgc\.jp/rdf/

Aramashi-merge

aramashi-merge merges the outputs of aramashi.

$ ./bin/aramashi-merge [target file (.json)]

This can be used for a large graph consists of many files; 1) use aramashi to compute the file-wise statistics, then 2) use aramashi-merge to merge the results. Example:

$ ./bin/aramashi file1.ttl > file1.json
$ ./bin/aramashi file2.ttl > file2.json
$ ./bin/aramashi-merge file1.json file2.json > merged.json

monban's People

Contributors

darashi avatar ursm avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.