Git Product home page Git Product logo

concerto's Introduction

Build Status Coverage Status GitHub license downloads npm version Join the Accord Project Discord

A lightweight schema language and runtime for business concepts.

concept Person identified by name  {
  o String name
  o Address address optional
  @description("Height (cm)")
  o Double height range=[0,]
  o DateTime dateOfBirth 
}

๐Ÿข Concerto gives you โ€œjust enoughโ€ expressivity to capture real-world business models, while remaining easy to map to most runtime environments.

โ›ณ An object-oriented language that is much easier to read and write than JSON/XML Schema, XMI or equivalents.

๐Ÿ“„ Serialize your instances to JSON

๐Ÿช Deserialize (and validate) instances from JSON

๐Ÿ”Ž Introspect the model using a powerful set of APIs

๐ŸŽ› Convert the model to other formats:

  • JSON Schema
  • XML Schema
  • OData CDSL
  • GraphQL Schema
  • Java Classes
  • Go Types
  • C# Classes
  • TypeScript Classes
  • Protobuf Messages
  • PlantUML Diagrams
  • Mermaid UML Diagrams
  • Markdown (with embedded Mermaid)
  • OpenAPI v3 specification document
  • Apache Avro

๐Ÿ•ธ Publish your reusable models to any website, including the Accord Project model repository

Infer models from other formats:

  • JSON document
  • JSON Schema
  • OpenAPI v3 specification document

Getting Started

$ npm i -g @accordproject/concerto-cli
$ concerto compare --old model.cto --new model-with-changes.cto 
[required-field-added]: The required field "weight" was added to the concept "Person" (major) 

VSCode Editor

Structure of the Code

Top level repository (concerto), with sub packages. Each sub-package is published as an independent npm module using lerna:

  • concerto-core : core library for model management/parsing/validation/serialization
  • concerto-util : contains utility functions used in other parts of the code and fundamentally independent from Concerto as a modeling language
  • concerto-cto : contains the parser for the .cto syntax for Concerto. The parser now outputs a proper Concerto object, instance of the metamodel rather than a custom JSON object.
  • concerto-vocabulary : functionality to handle model vocabularies and localization
  • concerto-analysis : tools for comparing model files
  • concerto-types : TypeScript type definitions for Concerto
  • concerto-dotnet : .NET type definitions for Concerto, and serialization tools

Accord Project Logo

GitHub license Join the Accord Project Discord

Accord Project is an open source, non-profit, initiative working to transform contract management and contract automation by digitizing contracts. Accord Project operates under the umbrella of the Linux Foundation. The technical charter for the Accord Project can be found here.

Learn More About Accord Project

Contributing

The Accord Project technology is being developed as open source. All the software packages are being actively maintained on GitHub and we encourage organizations and individuals to contribute requirements, documentation, issues, new templates, and code.

Find out whatโ€™s coming on our blog.

Join the Accord Project Technology Working Group Discord Community to get involved!

For code contributions, read our CONTRIBUTING guide and information for DEVELOPERS.

README Badge

Using Accord Project? Add a README badge to let everyone know: accord project

[![accord project](https://img.shields.io/badge/powered%20by-accord%20project-19C6C8.svg)](https://www.accordproject.org/)

License

Accord Project source code files are made available under the Apache License, Version 2.0. Accord Project documentation files are made available under the Creative Commons Attribution 4.0 International License (CC-BY-4.0).

Copyright 2018-2019 Clause, Inc. All trademarks are the property of their respective owners. See LF Projects Trademark Policy.

concerto's People

Contributors

mbwhite avatar dselman avatar jeromesimeon avatar samjsmith avatar davidkel avatar liam-grace avatar jakeeyturner avatar cazfletch avatar nklincoln avatar odowdaibm avatar edprosser avatar mttrbrts avatar jt-nti avatar bestbeforetoday avatar dependabot[bot] avatar fabric-composer-app avatar awjh-ibm avatar github-actions[bot] avatar edmoffatt avatar winslet avatar jonathan-casey avatar fenglianxu avatar andrew-coleman avatar tobias-hunter avatar kaiusher avatar ellishenderson avatar ragi-dayananda avatar joepavitt avatar erin-hughes avatar rthatcher avatar

Stargazers

RR 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.