GithubHelp home page GithubHelp logo

marrus-sh / mermaid Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 80 KB

🧜‍♀️🌊 An RDF library for JavaScript.

Home Page: https://go.KIBI.family/mermaid/

License: GNU General Public License v3.0

JavaScript 22.12% CoffeeScript 77.88%
rdf rdf-interfaces javascript n-triples turtle bcp47 rfc3987

mermaid's Introduction

mermaid

mermaid is an RDF and Linked Data library, written and maintained by Kyebego as a personal project. It builds on the spirit of specifications like RDF Interfaces (W3C Working Group Note, never finished) and Interface Specification: RDF Representation (Draft Community Group Report, not an actual W3C specification), only updated for RDF 1.1 and the latest in web technologies.

Designed for use in client‐side and unhosted applications and publishing tools. Not designed for server‐side operations, for which a more rigourous RDF library should be used if maintaining compleat correctness is important.

Features

  • Written in CoffeeScript 2
  • Literate source
  • Compiles to ECMAScript 5.1
  • Extensible
  • Programmed with gay sensibilities
  • GPLv3 License

Limitations

For simplicity, mermaid lacks a true XSD engine, which means that some things, like xsd:float, might suffer from minor rounding errors or approximations. If you're a server and need a complete assurance that the data you are dealing with is valid and interpreted according to its XSD datatype, this library is probably not for you.

The full value of xsd:long and xsd:unsignedLong cannot fit in a JavaScript number without rounding and mermaid makes no attempt to get around this.

mermaid does not support the XSD datatypes which are listed in RDF 1.1 Concepts and Abstract Syntax as “unsuitable for various reasons”. These are: xsd:QName, xsd:ENTITY, xsd:ID, xsd:IDREF, xsd:NOTATION, xsd:IDREFS, xsd:ENTITIES, and xsd:NMTOKENS.

Finally, mermaid does not support xsd:duration or the values derived from it, as JavaScript has no native means of expressing durations.

Standards

HowTo

If you really want to understand how to use mermaid, you should read the source (but like, the English parts, not the code). The documents are organized by specification, so if you know what you're looking for, things hopefully won't be too hard to find.

I'll try to put together a Tutorial that is a little more beginner‐friendly to approach once I'm satisfied with the state of the code and have spare time.

SeeAlso

If mermaids kissing beneath the ocean waves makes you feel uncomfortable, maybe check out RDF Interfaces Extension instead.

Contributing

It's open source so that you can modify the code before you run it on your own computer, not so that you can modify the code before I run it on mine ^.^

Feel free to fork if you think it needs something, tho (-_^)〜☆

mermaid's People

Watchers

 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.