Coder Social home page Coder Social logo

solid-context's Introduction

A handy JSON-LD context for Solid

This module contains a JSON-LD context for use with Solid apps and libraries.

npm version

This is not “the” Solid context (there is no such thing), but rather a useful one for your projects.
For example, LDflex for Solid relies on this module.

Usage

You can require the context:

const context = require('@solid/context');

Or import it:

import context from '@solid/context';

Or refer to the file:

const context = require('@solid/context/context.json');

Installation

npm install @solid/context

License

©2018–present Ruben Verborgh, MIT License.

solid-context's People

Contributors

rubenverborgh avatar vinnl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

vinnl

solid-context's Issues

Could we auto-generate this context file directly from the authoritative vocabs themselves...?

This is a very interesting idea (that I hadn't considered before) - but I think the LIT (which is not yet open-sourced) could be used very easily to provide this handy module directly from the authoritative vocabs themselves (rather than being hand-crafted and maintained, which I assume is currently being done here). The LIT already supports the important notion of being able to 'cherry-pick' terms from vocabs (which is being done here already, for example in the selection of specific terms from ActivityStreams, but is kinda crucial when you start picking terms from Schema.org's almost 2,000 terms (last time I checked!)).

@NSeydoux perhaps this could be added to our list of 'things-to-do' for the LIT...?

Some aliases in context.json are western-centric

Looking through the aliases for predicates in context.json, it was pointed out to me that some of them are specific to western audiences. For example, foaf:givenName being aliased as "firstName" is not very internationalization-friendly.

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.