Skip to content
seebi edited this page Feb 12, 2013 · 6 revisions

The editor responds to files with the file extension .ttl. They need to be located in an eclipse project. If the project does not have the Xtext nature, you will be asked whether you want to add it when first opening a turtle file. Please add it, as otherwise the core linking functionality - which you are interested in - will not be working.

Files within the same project will automatically know each other, i.e. subjects defined in one file will be visible from the other. This is NOT automatically the case for files in different projects.

Cross project linking

A common setup will be that you have a project V1 with basic vocabulary (rdf, rdfs,...) and others you are actively working on, e.g. P1 and P2. Each project contains a .project file. If you want P1 to know the subjects defined in V1, you have to add a project reference, i.e. P1's .project file must contain

<projects>
    <project>V1</project>
</projects>

possibly with additional project entries. You can either edit the .project file directly or open the project's properties available in the context menu. There you choose the entry "Project References" where you can select the projects to be referenced.

In order to support an easy usage of Xturtle, we provide projects for common vocabularies in our vocabulary folder which you can import and reference to.

You just need to download the project directories and import it as a project via menu entry

File -> Import

and select then the option

General -> Existing Projects into Workspace

in the options tree.

For a list of available projects, please have a look at the repository.

Turtle Templates

In order to create some common structures on the fly, we ship Xturtle with an extendable list of turtle templates. These templates can be used in an eclipse typical way with autocompletion (control+space).

A list of templates can be viewed and changed with a right-click in the editor window, then Preferences..., Xturtle -> Templates.

If you need more here just modify the list to your needs. If you think that your templates are useful by others too, please send a pull request with changes on the templates file.

Clone this wiki locally