ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

SPARQL Runner

by hevp ALL

A Sublime Text 2/3 plugin to run SPARQL queries inside the editor. Now with authentication and parameter options.

Details

  • 1.2.0
  • github.​com
  • 5 years ago
  • 3 hours ago
  • 12 years ago

Installs

  • Total 812
  • Win 304
  • Mac 381
  • Linux 127
Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Sublime SPARQL Runner

A Sublime Text 2/3 plugin to run SPARQL queries directly inside Sublime Text.

Based on the original SPARQL Runner package by cezarsa.

Functionality

  • Runs current selected text or complete query in tab using currently selected endpoint
  • Results of successful queries will be displayed in a separate tab.
  • Multiple endpoints can be defined
  • For any endpoint optionally basic authentication details can be provided
  • Optional parameters can be defined for any endpoint

Installation

  • Use Sublime Package Control to install it (or clone it inside your Packages dir);

Usage

  • To select the current one open the command palette and choose SPARQL: Select or add/edit endpoint and then select the endpoint
  • To add a new or edit an existing endpoint open the command palette and choose SPARQL: Select or add/edit endpoint -> Add new or edit existing endpoint...:
    • Provide the following values:
      • Unique name for endpoint (if name already in use you will be prompted to edit that endpoint)
      • URL for endpoint
      • Username (optional, leave empty to skip)
      • Password (optional)
      • Parameter name (optional, leave empty to skip)
      • Parameter value (optional)
    • Multiple parameters can be added by simply repeating the name and value prompts
  • To run a query choose SPARQL: Run query. SPARQL Runner will run the query against the current endpoint. It will consider either the selected text or the entire file as the SPARQL query.

If you want to add a key binding to run queries, open your “Default.sublime-keymap” and add:

[
  { "keys": ["super+shift+k"], "command": "run_sparql" }
]

Configuration

A typical configuration file looks as follows:

{
    "current": "dbpedia",
    "endpoints":
    {
        "my_sparql_endpoint":
        {
            "parameters":
            {
                "format": "CSV",
                "lang": "sparql"
            },
            "password": "<password>",
            "url": "<url>",
            "username": "<user>"
        },
        "dbpedia":
        {
            "url": "http://dbpedia.org/sparql"
        }
    }
}
  • Further config options can be found in Preferences -> Package Settings -> SPARQL Runner -> Settings