Solid Wiki Journal

Home

Set up a Turtle Editor

A decent editor setup is crucial for my workflow. Autocompletion, validation and spell checking are some essential features for me. They make our life more comfortable and lead to an increase in productivity. After some research, I tried to set up and test the LNKD.tech Editor in IntelliJ, Xturtle in Eclipse, Tawny-OWL and Protégé.

Tawny-OWL looks promising since it allows the construction of OWL ontologies, in an evaluative, functional and fully programmatic environment. Unfortaultaly, I was not able to set it up. Mostly because I never used Clojure. Protégé also had to clear the field to be my primary editor quickly, since I like my Vim bindings over the click experience. Nevertheless, Protégé is also a convenient tool when it comes to converting RDF files from and to other RDF serialization. Quite some vocabularies which I use are not available serialized as Turtle files. But thanks to Protégé, we can load the namespace directly from an URL File>Open form URL... and export it as RDF/XML Syntax, Turtle Syntax, OWL/XML Syntax, OWL Functional Syntax, OWL Manchester Syntax or JSON-LD File>Save as.

Finally, LNKD.tech Editor and Xturtle are both equivalent. For me, LNKD.tech Editor seemed to work out of the box. Most likely, this is because I frequently used IntelliJ over the past few years. Hence, if you are used to Eclipse, Xturtle might work better for you. In both cases, you need to provide all the namespaces you want to use, within the project.

This sample project contains a simple car ontology and all the dependencies which I downloaded. Just clone the repository and open it with IntelliJ. Autocompletion might be slow since the schema.org folder holds over 2000 namespaces. If it bothers you, delete all unused namespaces.

The namespaces listed here are all contained in the dependencies folder.