项目作者: ontola

项目描述 :
Generic RDF data browser that can be connected to Solid pods
高级语言: TypeScript
项目地址: git://github.com/ontola/mash.git
创建时间: 2019-08-05T15:34:25Z
项目社区:https://github.com/ontola/mash

开源协议:

下载


Mash browser

A browser for the linked data web.

Connect it to your SOLID pod, view dbpedia articles in the style of wikipedia, and install new applications.

This browser uses link-redux to build its views, check it out for further details on the internals
of application development.

Why Mash? An alternative name for link was mesh, but for the initial demonstration as a tongue-in-cheek
wink to mashlib I replaced the e. Depending
on how things work out, we will rename this project to be more distinguished from that library, but
hopefully what won’t be necessary.

Creating an installable package

Create an self-executing UMD package;

  1. // index.js
  2. export default ((lrs) => {
  3. lrs.registerModule({
  4. iri: "https://example.com/application/MyClass",
  5. middlewares: [
  6. // If you have an interactive application
  7. ],
  8. ontologyStatements: [
  9. // If you want to say things about your ontology
  10. ],
  11. version: 1,
  12. views: [],
  13. });
  14. })(window.LRS);

IRI

The IRI (URL) of your package, generally the entry class, aka the one a user will bump into first.

Example; For a TODO application it would be the TODOList.

Currently this URL must resolve to a file which describes your package;

  1. @prefixes
  2. <>
  3. a rdfs:Class, ll:InstallableComponent;
  4. schema:name "Demo TODO app";
  5. ll:npmLabel "link-redux-todomvc";
  6. ll:npmVersion "2.12.0".

Middlewares

Pass an array of link middlewares to be added on top of the current stack.

Ontology Statements

Here you can instruct link to take some ontological information into account when rendering your
views. It’s generally good practice to subclass rdfs:Resource and optionally a more specific class
which fits your classes (eg schema:person and foaf:Person).

Views

Include all your link views in the bundle.

These shouldn’t be the raw views, but the result of LinkRedux’s register call.

A flat array of RegistrableComponent to be precise.