turtle-completer

Auto completer for the RDF turtle and TriG serializations with knowledge of common schema

thomsonreuters

1,664

1

1.0.0

MIT

GitHub

This package provides the following services:

Turtle Autocompleter package

dependencies Status Build Status Installs! Version! License Gitter chat

This is an autocompleter for the Atom editor, compatible with AutoComplete+ that knows common ontologies and will suggest predicates based on your typing. Both the Turtle and TriG serializations are supported.

Short video of the completer in action

Current ontologies are:

If you'd like others added either raise an issue on the atom package, comment on gitter, tweet @nonodename or do a pull request with the conversion. Contributions are greatly appreciated. Note that the ontology is matched based on common prefixes.

Known ontologies are referenced from the file ontologies.json in \lib. Each ontology has a JSON file that contains the completion info.

To generate a new file, run convert.py over a ttl version of the ontology to generate the JSON. convert.py supports a few command line options, run without any parameters to see them.

Note that quality of anchor links into the specs varies on whether the naming convention for the anchors is sufficiently predictable. Feel free to fix any that are wrong in the relevant JSON file and do a pull request to get added.

Testing ontologies

To test a new ontology without the palaver of pull requests:

For example:

"tr":{
  "title":"My First ontology",
  "spec":"URL of the spec",
  "prefix":"tr",
  "docprefix":"URL prefix for documentation",
  "ontology":"/users/dan/ontologies/tr.json"
}