DBpedia Lookup
A Sublime Text 3 plugin for the DBpedia Lookup service
Details
Installs
- Total 60
- Win 32
- Mac 19
- Linux 9
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 | Nov 7 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 1 | 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 | 1 | 0 | 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-dbpedia-lookup
A Sublime Text 3 plugin for the DBpedia Lookup service
This plugin uses the DBpedia Lookup service for keyword searches.
Use case
This plugin was made to enable quick word lookups while going through a text, for example while perusing a Markdown or Asciidoctor document. Lookup here means looking for context, not spell checking.
The DBpedia lookup service answers with descriptions of resources connected to the expression searched, their classes, categories. That makes it easy to dig further, if you are interested.
The output is formatted as a YAML document, so it is nicely structured when read by us humans, but could also be processed by a program when saved.
Usage
The plugin provides a command in the context menu:
- right-click on a text selection for the context menu, then select DBpedia Lookup to look up the selection
- right-click on the cursor position for the context menu, then select DBpedia Lookup to look up the surrounding word
After that …
- the plugin will search the DBpedia Lookup service for possible hits
- if there were hits the results will be presented in a scratch window named DBpedia Lookup
- all links in the result window can be right-clicked to open them in a browser, for further study
For convenience all answers are displayed in a single scratch buffer, meaning the plugin won't clutter your editor with lots of result windows. Results of multiple lookups will overwrite each other.
Since we are using a scratch buffer, Sublime Text will also not complain about unsaved changes when exiting. You can save the results, but you are not required to do so.
Limitations
The DBpedia lookup service is currently only available in English. Support for other languages is mentioned, but not yet here. So the initial results will be always in English. However, by following the links you'll often get to the equivalent resources in other languages.
If you want to know more about the service or have questions please use information in the DBpedia Lookup project on Github to get in contact.
Server configuration
By default the plugin will use the public endpoint for the DBpedia Lookup service at http://lookup.dbpedia.org. However, it is possible to also configure a local endpoint. The DBpedia project provides a Docker image that makes it possible to run the service on your own machine or elsewhere.
To use the local endpoint configure the user preferences accordingly:
- change the setting default_server to local. The default is remote.
- change the setting dbpedia_lookup_server_local to the address/port of your machine. The default is http://localhost:1111, which is the address the Docker image uses.
License
This plugin is freely available under the MIT license.