https://github.com/doriantaylor/n3-mode-for-emacs.git
git clone 'git://github.com/doriantaylor/n3-mode-for-emacs.git'
This is an emacs major mode for editing N3 and Turtle RDF documents originally created by Hugo Haas and Dave Pawson.
Put n3-mode.el somewhere emacs can find it (e.g. ~/.emacs.d/vendor/) And add the following to your .emacs file:
;; ;; n3 mode ;;
(add-to-list 'load-path “{path}/n3-mode.el”) (autoload 'n3-mode “n3-mode” “Major mode for OWL or N3 files” t)
;; Turn on font lock when in n3 mode (add-hook 'n3-mode-hook 'turn-on-font-lock)
(setq auto-mode-alist (append (list ‘(“\.n3” . n3-mode) ’(“\.owl” . n3-mode)) auto-mode-alist))
;; Replace {path} with the full path to n3-mode.el on your system.
;; If you want to make it load just a little faster; ;; C-x f n3-mode.el ;; M-x byte-compile-file n3-mode.el