@@ -180,9 +180,9 @@ tangling to OMN.
180
180
(delete-file local-file)))) ;; Clean up temp file after conversion
181
181
182
182
(defun elot-download-ontology (url dest-file)
183
- "Download an ontology from URL with content negotiation and save it to DEST-FILE.
184
- Requests the ontology in the best available format: Turtle, RDF/XML, N3, JSON-LD,
185
- OWL Functional Syntax, or Manchester Syntax."
183
+ "Download an ontology from URL with content negotiation, save it to DEST-FILE.
184
+ Requests the ontology in the best available format: Turtle, RDF/XML, N3,
185
+ JSON-LD, OWL Functional Syntax, or Manchester Syntax."
186
186
(let ((url-request-extra-headers
187
187
'(("Accept" . "text/turtle, application/rdf+xml, text/n3, application/ld+json, text/owl-functional, text/owl-manchester; q=0.9"))))
188
188
(url-copy-file url dest-file t)))
@@ -309,20 +309,20 @@ the ID string.
309
309
The function is used to check whether the list contains ELT."
310
310
(org-element-map x elt #'identity))
311
311
(defun elot-org-elt-item-tag-str (x)
312
- "For an item X in an org-element-map, return the item tag."
312
+ "For an item X in an ` org-element-map' , return the item tag."
313
313
(if (org-element-property :tag x)
314
314
(substring-no-properties (org-element-interpret-data (org-element-property :tag x)))))
315
315
(defun elot-org-elt-item-pars-str (x)
316
- "For an item X in an org-element-map, return the paragraphs as one string."
316
+ "For an item X in an ` org-element-map' , return the paragraphs as one string."
317
317
(replace-regexp-in-string "\\([^
318
318
]\\)\n[ \t]*" "\\1 "
319
- (string-trim (apply 'concat
319
+ (string-trim (apply # 'concat
320
320
(org-element-map x '(paragraph plain-list)
321
321
(lambda (y) (substring-no-properties
322
322
(org-element-interpret-data y)))
323
323
nil nil 'plain-list)))))
324
324
(defun elot-org-elt-item-str (x)
325
- "For X in an org-element-map, return pair of strings (tag, paragraph content)."
325
+ "For X in an ` org-element-map' , return pair of strings (tag, paragraph content)."
326
326
(list (elot-org-elt-item-tag-str x) (elot-org-elt-item-pars-str x)))
327
327
(defun elot-org-descriptions-in-section-helper ()
328
328
"Return all description list items as pairs in a list.
@@ -1053,8 +1053,8 @@ To get the ttl block to process correctly, for rdfpuml use.
1053
1053
(always params) ;; ignore argument
1054
1054
body))
1055
1055
1056
- (unless (fboundp 'org-babel-execute:ttl)
1057
- (defalias 'org-babel-execute:ttl 'elot-org-babel-execute-passthrough))
1056
+ (unless (fboundp # 'org-babel-execute:ttl)
1057
+ (defalias # 'org-babel-execute:ttl # 'elot-org-babel-execute-passthrough))
1058
1058
#+end_src
1059
1059
1060
1060
*** Execute rdfpuml on Turtle content
@@ -1077,7 +1077,7 @@ rdfpuml, and returns the filename of the resulting PlantUML file.
1077
1077
(input-ttl-file (org-babel-temp-file "rdfpuml-" ".ttl"))
1078
1078
(output-puml-file (concat (file-name-sans-extension input-ttl-file) ".puml")))
1079
1079
(with-temp-file input-ttl-file
1080
- (insert (mapconcat 'identity
1080
+ (insert (mapconcat # 'identity
1081
1081
(list prefixes ttl config options-str) "\n")))
1082
1082
;; apparently prefixes.ttl is needed to reside in current dir, will overwrite
1083
1083
(if prefixes (with-temp-file "prefixes.ttl"
@@ -1118,17 +1118,17 @@ placed in the default ELOT directory, and the filename returned.
1118
1118
Insert a document header with =<oh=.
1119
1119
#+name: src-tempo-docheader
1120
1120
#+begin_src emacs-lisp :results none
1121
- (tempo-define-template "elot-doc-header"
1122
- '("# -*- eval: (load-library \"elot-defaults\") -*-" > n
1123
- "#+title: " (p "Document title: " doctitle) > n
1124
- "#+subtitle: An OWL ontology" > n
1125
- "#+author: " (p "Author name: " authname) > n
1126
- "#+date: WIP (version of " (format-time-string "%Y-%m-%d %H:%M") ")" > n
1127
- "#+call: theme-readtheorg()" n n
1128
- (progn (load-library "elot-defaults") (message "Loaded ELOT") ""))
1129
- "<odh"
1130
- "ELOT document header"
1131
- 'org-tempo-tags)
1121
+ (tempo-define-template "elot-doc-header"
1122
+ '("# -*- eval: (load-library \"elot-defaults\") -*-" > n
1123
+ "#+title: " (p "Document title: " doctitle) > n
1124
+ "#+subtitle: An OWL ontology" > n
1125
+ "#+author: " (p "Author name: " authname) > n
1126
+ "#+date: WIP (version of " (format-time-string "%Y-%m-%d %H:%M") ")" > n
1127
+ "#+call: theme-readtheorg()" n n
1128
+ (progn (load-library "elot-defaults") (message "Loaded ELOT") ""))
1129
+ "<odh"
1130
+ "ELOT document header"
1131
+ 'org-tempo-tags)
1132
1132
#+end_src
1133
1133
**** ELOT ontology skeleton
1134
1134
Insert a skeleton with =<ods=.
@@ -1596,11 +1596,11 @@ metrics.
1596
1596
;;
1597
1597
(modify-syntax-entry ?\: "w")
1598
1598
(modify-syntax-entry ?\_ "w")
1599
- (add-hook 'org-babel-post-tangle-hook 'elot-tangled-omn-to-ttl
1599
+ (add-hook 'org-babel-post-tangle-hook # 'elot-tangled-omn-to-ttl
1600
1600
'local) ;; make it a local hook only
1601
- (add-hook 'org-babel-after-execute-hook 'org-redisplay-inline-images 'local)
1601
+ (add-hook 'org-babel-after-execute-hook # 'org-redisplay-inline-images 'local)
1602
1602
(declare-function elot-update-link-abbrev "elot.el")
1603
- (add-hook 'after-save-hook 'elot-update-link-abbrev)
1603
+ (add-hook 'after-save-hook # 'elot-update-link-abbrev)
1604
1604
;; the label display functions are in a separate file
1605
1605
(require 'elot-label-display)
1606
1606
(declare-function elot-label-display-setup "elot-label-display.el")
0 commit comments