Skip to content

How to Customize the UI ?

Stéphane Campinas edited this page May 6, 2014 · 2 revisions

This document gives some instructions on how to customize some elements of the SPARQLed's UI.

To add sample queries

You have to edit the file

sparql-editor-client/src/main/webapp/sindice-editor/sparql/init-local.js

and change/add the tree variables at the top, i.e., sampleName1_1, sampleDescription1_1, and sampleQuery1_1. The first variable is the name of the example (the blue bar), the second is the description (the text in italic), and the third is the query.

Then, you need to update the array endpoints.queries at the bottom. An element is an object, such as the one below:

{
    "name" : sampleName1_1,
    "description" : sampleDescription1_1,
    "query" : sampleQuery1_1
}

To change the default prefixes

You have to edit the file

sparql-editor-client/src/main/webapp/sindice-editor/sparql/flint-editor.js

and change the default query set by the variable initialQuery (line 46).

Clone this wiki locally