#+TITLE: Semantic Web layer
#+TAGS: dsl|layer|markup|programming
[[file:img/semweb.png]]
* Table of Contents :TOC_5_gh:noexport:
- [[#description][Description]]
- [[#features][Features:]]
- [[#install][Install]]
- [[#key-bindings][Key bindings]]
* Description
This layer adds support for RDF files in N3 and [[https://www.w3.org/TR/turtle/][Turtle syntax]] using [[https://github.com/nxg/ttl-mode][ttl-mode]]
and for [[https://www.w3.org/TR/sparql11-query/][SPARQL]] queries using [[https://github.com/ljos/sparql-mode][sparql-mode]].
SPARQL-mode supports the execution of queries. When first called, you will be
prompted for a SPARQL HTTP endpoint in the minibuffer, which defaults to
[[http://localhost:2020/]]. Once set, it will be used for all subsequent queries in
that buffer. Results will be displayed in another buffer in CSV format.
** Features:
- Provides an alternative way to search the web using SPARQL queries.
* Install
To use this configuration layer, add it to your =~/.spacemacs=. You will need to
add =semantic-web= to the existing =dotspacemacs-configuration-layers= list in this
file.
* Key bindings
| Key binding | Description |
|-------------+----------------------|
| ~SPC m q~ | Execute SPARQL query |