File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -417,6 +417,8 @@ annotations in a future improved version, from sub-items.
417
417
;; single URI in parentheses
418
418
((string-match (format "(<?\\(%s\\)>?)" full-uri-regex) str)
419
419
(format "<%s>" (match-string 1 str)))
420
+ ;; URN identifier: return as-is if the string is a URN, e.g. <urn:isbn:0943396611>
421
+ ((string-match "^<urn:[^>]+>$" str) str)
420
422
;; two CURIEs in parentheses (ontology and ontology version)
421
423
((string-match (format "(\\(%s\\) \\(%s\\))" curie-regex curie-regex) str)
422
424
(format "%s %s" (match-string 1 str) (match-string 2 str)))
Original file line number Diff line number Diff line change @@ -369,6 +369,8 @@ or a full-form URI in angle brackets)."
369
369
; ; single URI in parentheses
370
370
((string-match (format " (<?\\ (%s \\ )>?) " full-uri-regex) str)
371
371
(format " <%s > " (match-string 1 str)))
372
+ ; ; URN identifier: return as-is if the string is a URN, e.g. <urn:isbn:0943396611>
373
+ ((string-match " ^<urn:[^>]+>$" str) str)
372
374
; ; two CURIEs in parentheses (ontology and ontology version)
373
375
((string-match (format " (\\ (%s \\ ) \\ (%s \\ )) " curie-regex curie-regex) str)
374
376
(format " %s %s " (match-string 1 str) (match-string 2 str)))
You can’t perform that action at this time.
0 commit comments