- Notifications
You must be signed in to change notification settings - Fork0
🧜♀️🌊 An RDF library for JavaScript.
License
marrus-sh/mermaid
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
mermaid is an RDF and Linked Data library, written andmaintained by Kyebego as a personal project.It builds on the spirit of specifications likeRDF Interfaces(W3C Working Group Note, never finished) andInterface Specification: RDF Representation (DraftCommunity Group Report, not an actual W3C specification), onlyupdated for RDF 1.1 and the latest in web technologies.
Designed for use in client‐side and unhosted applications andpublishing tools.Not designed for server‐side operations, for which a morerigourous RDF library should be used if maintaining compleatcorrectness is important.
- Written in CoffeeScript 2
- Literate source
- Compiles to ECMAScript 5.1
- Extensible
- Programmed with gay sensibilities
- GPLv3 License
For simplicity, mermaid lacks a trueXSD engine,which means that some things, likexsd:float
, might suffer fromminor rounding errors or approximations.If you're a server and need a complete assurance that the data you aredealing with is valid and interpreted according to its XSD datatype,this library is probably not for you.
The full value ofxsd:long
andxsd:unsignedLong
cannot fit in aJavaScript number without rounding and mermaid makes noattempt to get around this.
mermaid doesnot support the XSD datatypes which are listedinRDF 1.1 Concepts and Abstract Syntax as “unsuitable for variousreasons”.These are:xsd:QName
,xsd:ENTITY
,xsd:ID
,xsd:IDREF
,xsd:NOTATION
,xsd:IDREFS
,xsd:ENTITIES
, andxsd:NMTOKENS
.
Finally, mermaid doesnot supportxsd:duration
or the valuesderived from it, as JavaScript has no native means of expressingdurations.
- Extensible Markup Language (XML) 1.1 (Second Edition)
- Interface Specification: RDF Representation
- Internationalized Resource Identifiers (IRIs)
- RDF 1.1 Concepts and Abstract Syntax
- RDF 1.1 N-Triples
- RDF 1.1 Turtle
- RDF Interfaces (WG Note)
- Tags for Identifying Languages
If you really want to understand how to usemermaid
, youshouldread the source (but like, the English parts,not the code).The documents are organized by specification, so if you know whatyou're looking for, things hopefully won't be too hard to find.
I'll try to put together aTutorial that is a little morebeginner‐friendly to approach once I'm satisfied with thestate of the code and have spare time.
If mermaids kissing beneath the ocean waves makes you feeluncomfortable, maybe check outRDF Interfaces Extensioninstead.
It's open source so that you can modify the code before you run it onyour own computer, not so that you can modify the code before I runit on mine ^.^
Feel free to fork if you think it needs something, tho (-_^)〜☆