Giter Club home page Giter Club logo

mpeg-21-part-23-mco-parser's Introduction

MCO Parser for Smart Contracts for Media

This software parses MCO contracts represented in TURTLE and converts them in Media Contractual Objects. This software is composed of a series of JSON file composing the Look Up Table (./lookup-tables), a set of generators for the generation of Media Contractual Objects (./generators) and a set of handlers to manage the inter-relation of Objects during the generation phase (./handlers). The parsing process starts in the ./index.js file: a Turtle file representing the MCO contract is transformed into the JSON-LD format and then Elements in it are used to generate the Objects. For more info check the READMEs into the sub-folders.

Installation

NodeJS is needed to execute the parser, as well as NPM. To use the parser it is needed to execute the following command in the main directory:

npm install

Usage

To use the parser execute one of the following command in the main directory:

node test/index.js -c [ turtle file path ]
node test/index.js --contract [ turtle file path ]

Importing this module will provide with a method getContractFromMCO that takes in input a string in Turtle form and returns the related Media Contractual Objects.

Test

To test the parser execute the following command in the main directory:

node test/index.js -c turtle/new/use-case-stream-small-label.ttl

mpeg-21-part-23-mco-parser's People

Contributors

miker83z avatar

Stargazers

Kenan O'Neal 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.