Tips & Tricks
- You can drag and drop SPARQL files into the editor.
- You can set the browser tab title by adding a line to your query prefixed by "
#title:
".
Using Visualizations
This SPARQL has several built in visualizations in addition to the default table view. They can all be used by specifying specific variables described below.
Image Grid
The image grid requires only one variable. ?thumbnail should be an image URL. Invalid image URLs within this variable will be ignored. Note that if you are running Thor over HTTPS images will need to be served over HTTPS as well. The image grid will only render the first 100 images.
Pie Chart
The pie chart requires two variables. ?count should be a numeric value. ?label should be a literal.
Map
The map requires either the two variables ?lat and ?lon (both numeric) or `?geometry` (points should space-seperated). Four optional variables are also avaible:
- ?geometryColor: Literal with a valid CSS color.
- ?markerRadius: Numeric value defining the maker size in pixels.
- ?geometryOpacity: Numeric 0-1 defining the opacity of the geometry.
- ?geometryTitle: Literal which renders in a popup when a geometry is clicked.
Graph
The graph requires two variables. ?node should be a URI. ?linkedNode should be a URI. Several optional variables are also available:
- ?nodeLabel: Literal which will be used as the node label.
- ?nodeImage: URI which will be used as the node image.
- ?nodeSize: Float value defining the node size.
- ?nodeColor: Literal with a valid CSS color.
- ?linkedNodeLabel: Literal which will be used as the linked node label.
- ?linkedNodeImage: URI which will be used as the linked node image.
- ?linkedNodeSize: Float value defining the linked node size.
- ?linkedNodeColor: Literal with a valid CSS color.
- ?edgeLabel: Literal which will be used as the edge label.
- ?edgeColor: Literal with a valid CSS color.
If the value of a
?node* variable conflicts with the value of a
?linkedNode* variable the
?linkedNode* variable will take precedence.
Explore Graph
The explore graph view is similar to the graph view but allows you to explore the graph interactively/dynamicly by clicking nodes. It requires the same variables as the graph view but can also start without ?linkedNode.
Keyboard Shortcuts
Shortcut |
Action |
Ctrl or Cmd + Enter |
Execute query |
Ctrl or Cmd + [ |
Indent current/selected line(s) less |
Ctrl or Cmd + ] |
Indent current/selected line(s) more |
Ctrl or Cmd + Shift + F |
Auto-format/indent selected lines |
Ctrl or Cmd + / |
Comment or uncomment current/selected line(s) |
Ctrl or Cmd + D |
Delete current/selected line(s) |
Contribute
This SPARQL Editor is built upon Thor which is open source and you can report issues through Github.