Skip to content
aldonline edited this page Sep 13, 2010 · 35 revisions

LinkedDataMate = LDM

An experimental TextMate Bundle for Linked Data development.

Status: not usable yet

Setup

NOTE: Ports 1119 and 8899 MUST be available. TODO: provide a way of customizing these ports.

Get Virtuoso

  1. Build and Install the latest Virtuoso Open Source in your system ( Version >= 6.1 ). The Commercial Version will work as well, of course ;)
  2. Make sure virtuoso-t and isql ( Virtuoso's ) are in your path. LDM is powered by Virtuoso Under-The-Hood

Get TextMate Bundle

sudo mkdir -p /Library/Application\ Support/TextMate/Bundles
cd /Library/Application\ Support/TextMate/Bundles
sudo git clone git@github.com:aldonline/LinkedDataMate.git "LinkedData.tmbundle"
sudo chmod a+w /Library/Application\ Support/TextMate/Bundles/LinkedData.tmbundle/Support/database

If TextMate is running, tell it to ( Bundles > Bundle Editor > ) Reload Bundles

Alternatively, if you want to checkout for development:

sudo mkdir -p ~/Library/Application\ Support/TextMate/Bundles
cd ~/Library/Application\ Support/TextMate/Bundles
sudo git clone git@github.com:aldonline/LinkedDataMate.git "LinkedData.tmbundle"
sudo chmod a+w ~/Library/Application\ Support/TextMate/Bundles/LinkedData.tmbundle/Support/database

Initial Setup

Enter TextMate and make sure that you can now see the "Linked Data" Bundle.

From Bundles > Linked Data > Admin, execute the following command: (Re)Create Database. This will open a window that will most probably be filled with errors. But, under the hood, a new Virtuoso database is being created.

After some 10 seconds ( you will have to guess when the database is up and listening ), run (Re)Load Data. If you get an error telling you that "there is nothing at port 1119", you need to wait some more and retry. If it works, wait a while.

Yeah I know usability is a mess. I am building a better solution for this part. Stay tuned.

Features

LDM is based on the PHP Bundle from a functionality POV as it is one of the most developed ( and used ) bundles. For now we are focusing on developing three modes: Turtle (.ttl), SPARQL and VirtuosoPL (.sql)

Virtuoso PL

Autocomplete

Iterate over possible completions for current word by pressing the ESCape key repeatedly

Status: Works, but does not currently contain all functions.

Suggest + Snippets

Same as Autocomplete, but activated using OPTion + ESCape. A popup menu will be displayed showing the potential matches and, once a match is selected, a snippet will be inserted.

Status: Works, but does not currently contain all functions. Only a handful have snippets.

(note: Option = Alt. Same key )

Documentation For Word

Place caret inside a word ( or select a word ) and then press CTRL + H. This will take you to the current official documentation if available.

Status: Works, but does not currently contain all functions.