Skip to content

wikipathways/snorql-extended

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 11 commits ahead of ammar257ammar:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
August 18, 2020 11:34
August 18, 2020 11:35
May 31, 2022 13:35
January 22, 2021 00:40

Snorql - Extended Edition

Simple SPARQL explorer based on the original idea of kurtjx/SNORQL and adapted from the fork eccenca/SNORQL

The purpose of this project is to develop a fully new UI implementation for Snorql that uses the latest web standards for HTML5, CSS3 and JQuery.

Live Demo of Snorql extended: Demo 1 Demo 2

Features

  1. Modern web UI built with HTML5, Bootstrap 3.3.7 and JQuery.
  2. Responsive design with wonderful look on mobiles and tablets.
  3. Text editor CodeMirror for the SPARQL query with awesome features like SPARQL syntax highlighter, line numbering and bracket matching.
  4. SPARQL examples panel that can fetch SPARQL queries (.rq extension) from any Github repository on fly and execute them against the SPARQL endpoint of your choice
  5. No need for any backend programming language!! it is totally a front end application.

Github Examples URL

Get a URL for a query with Javascript

  • if you want to get a URL for your query (automatically generated for example) without using the permanent link, then you can use the following Javascript code:
// the SPARQL endpoint URL followed by the query variable 'q'
let endpoint = "https://sparql.wikipathways.org/?q=";

// The SPARQL query itself
let sparql = `SELECT DISTINCT ?dataset (str(?titleLit) as ?title) ?date ?license 
WHERE {
   ?dataset a void:Linkset ;
   dcterms:title ?titleLit .
   OPTIONAL {
	 ?dataset dcterms:license ?license ;
	   pav:createdOn ?date .
   }
}`;
			
// create the URL from the endpoint URL and the URI-encoded query string
let encodedQueryUrl = endpoint + encodeURI(sparql);

// now, encodedQueryUrl can be used for your own purpose

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 76.9%
  • HTML 21.3%
  • CSS 1.8%