Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/langsamu/sparql-blockly
A Blockly implementation of SPARQL. Supports converting SPARQL into visual blocks and vice versa. Supports all of SPARQL 1.1 Query & Update as well as SPARQL*.
https://github.com/langsamu/sparql-blockly
blockly programming-language sparql visualisation
Last synced: about 1 month ago
JSON representation
A Blockly implementation of SPARQL. Supports converting SPARQL into visual blocks and vice versa. Supports all of SPARQL 1.1 Query & Update as well as SPARQL*.
- Host: GitHub
- URL: https://github.com/langsamu/sparql-blockly
- Owner: langsamu
- License: mit
- Created: 2021-04-01T20:11:29.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-26T09:49:38.000Z (4 months ago)
- Last Synced: 2024-11-09T15:47:00.606Z (about 1 month ago)
- Topics: blockly, programming-language, sparql, visualisation
- Language: TypeScript
- Homepage: https://langsamu.github.io/sparql-blockly/
- Size: 1.91 MB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SPARQL Blockly
[![Build Status](https://github.com/langsamu/sparql-blockly/actions/workflows/ci.yml/badge.svg)](https://github.com/langsamu/sparql-blockly/actions)
[![npm package](https://badge.fury.io/js/sparql-blockly.svg)](https://www.npmjs.com/package/sparql-blockly)
[![code coverage](https://codecov.io/gh/langsamu/sparql-blockly/branch/main/graph/badge.svg?token=X55Y21AMAE)](https://codecov.io/gh/langsamu/sparql-blockly)SPARQL Blockly is an application for visualising and building SPARQL.
## Usage
- **[Try it online](https://langsamu.github.io/sparql-blockly/)**
- Get the [library from npm](https://www.npmjs.com/package/sparql-blockly)
- See the [examples](./examples)## Features
SPARQL Blockly implements the SPARQL grammar in Blockly.
It supports SPARQL 1.1 Query, Update and SPARQL*.
![screenshot](screenshot.png)
It enables several ways of visual interaction with SPARQL:
- Dragging blocks from a toolbox unto a canvas to assemble valid queries.
- Adding clauses and patterns to query blocks using a context menu.
- Parsing SPARQL query text into blocks.
- Collapsing/expanding parts of a query assemblage.
- Sharing URLs of visual representations.SPARQL is parsed using [SPARQL.js](https://github.com/RubenVerborgh/SPARQL.js/).
## Repo structure
This code-base consists of three parts:
- [npm package](./package): Source-code for the [JavaScript library hosted on npm](https://www.npmjs.com/package/sparql-blockly).
- [Demo app](./demo): Source-code for the [demo application hosted on GitHub Pages](https://langsamu.github.io/sparql-blockly/).
- [Examples](./examples): Example JavaScript source-code explaining how to use the library in the browser and in node.