Edit and run SPARQL-Generate projects directly in Sublime text!
To use SPARQL-Generate with Sublime Text, follow these steps:
Prerequisites:
- Java SE v8 minimum installed
- java executable available in the path
- Sublime Text v3
- Browse the latest package release whose version name ends with
sparql-generate
, and download the file with the suffix.sublime-package
- Note: this file is actually a zip built from the sources with the command
npx emk
-
In Sublime Text v3, open the
Packages
folder. (Preferences -> Browse Packages...) -
Navigate to
.../Sublime Text 3/Installed Packages
, and copy the file here asLinkedData.sublime-package
. -
Go back to
.../Sublime Text 3/Packages
, create a directory namedLinkedData
, and copy inside this directory the latest jar of SPARQL-Generate. -
Rename this file as
sparql-generate.jar
.
To test the installation is fine, follow these steps:
-
Download the SPARQL-Generate tutorial workspace.
-
Unzip it, and open one of the folders it contains inside Sublime Text (File -> Open Folder...)
-
Open the project in the left side bar, search and open the main query. You should see the syntax getting colored
-
Build the project (Tools -> Build), check that
sparql-generate.jar
has been found. -
Check the output (file ending with
.out
). -
Check the log (file ending with
.rqglog
). Key shortcut CTRL+SHIFT+L opens the log. (SUPER+SHIFT+L on Mac)
You can configure your SPARQL-Generate project inside a sparql-generate-conf.json
file. Key shortcut CTRL+SHIFT+O should open this file (SUPER+SHIFT+O on Mac).
The configuration of this file is documented on the SPARQL-Generate website.
The playground contains a progressive documentation of SPARQL-Generate. Just load the examples one by one, read the text, and experiment.
An html documentation of the package is available on the SPARQL-Generate website.
Maxime Lefrançois
MINES Saint-Étienne, FR
http://maxime-lefrancois.info/
As an extension of the excellent Sublime Text LinkedData
package developed by:
Blake Regalia
University of California, Santa Barbara, CA, USA