sponsor Vim development Vim logo Vim Book Ad

RDF Namespace-complete : RDF Vocabulary/Model Omni-Completion for Vim 7+

 script karma  Rating -1/1, Downloaded by 2000  Comments, bugs, improvements  Vim wiki

created by
Niklas Lindström
 
script type
utility
 
description
In a file with namespace prefix declarations similar to XML, Turtle/Notation3 or SPARQL, call

  :RDF

to turn on completion on terms within a namespace using the preceding prefix. This will load all RDF/XML and n3-files found in one of the following dirs:

  - $RDF_MODEL_FILES (environment variable)
  - ~/rdfmodels/
  - ~/Documents/rdfmodels/
  - /usr/local/share/rdfmodels/

Call

  :RDF reload

to reload model files, and

  :RDF quit

to restore the original omnifunc (if any).
 
install details
Copy to $HOME/.vim/plugins/ to have it loaded from startup.

Requires Vim compiled with Python and RDFLib installed for Python.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
rdfnscomplete.vim 1.0.1 2007-03-25 7.0 Niklas Lindström Minor change - improved prefix handling (better prefix completion, refreshes prefix dict).
rdfnscomplete.vim 1.0 2007-03-25 7.0 Niklas Lindström Initial upload
ip used for rating: 3.141.31.240

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github