"ideo:mistakable")
((eq 'hanyu-dazidian feature-name)
"ideo:hanyu-dazidian")
+ ((eq '*note feature-name)
+ "rdfs:comment")
(t
(concat ":" (chise-turtle-uri-encode-ccs-name feature-name)))))
(insert (format ":context domain:%-7s ;"
(chise-turtle-uri-encode-ccs-name domain)))
(setq lb t))
+ (if lb
+ (insert (format "\n%s" indent)))
+ (insert "rdf:value ")
+ (setq lb (concord-turtle-insert-target-value value feature-name-base))
(setq rest metadata)
(while rest
(setq mdname (pop rest)
mdval (pop rest))
- (if lb
- (insert (format "\n%s" indent))
- (setq lb t))
- (unless (concord-turtle-insert-metadata mdname mdval)
- (insert " ;")))
+ (insert (format " ;\n%s" indent))
+ (setq lb (concord-turtle-insert-metadata mdname mdval)))
(if lb
- (insert (format "\n%s" indent)))
- (insert "rdf:value ")
- (if (concord-turtle-insert-target-value value feature-name-base)
(insert (format "\n%s] ;" indent0))
(insert " ] ;"))
'with-separator)
(setq lb t))
(setq last-sep
(cond ((eq mdname :value)
- (insert "rdf:value ")
+ (insert "rdf:value ")
(concord-turtle-insert-target-value mdval feature-name-base)
)
(t
skey
dest-ccss ; sources required-features
ccss eq-cpos-list
- uri-ccs uri-cpos ccs-base children child-ccs-list col indent)
+ uri-ccs uri-cpos ccs-base children child-ccs-list col indent lb)
(setq line-separator line-breaking)
(setq id (concord-turtle-encode-object object))
(insert (format "%s" id))
(chise-turtle-uri-encode-ccs-name ccs-base) uri-cpos))
(insert " [ ")
(setq col (current-column))
- (insert (format ":context domain:%-7s ;\n%srdf:value %7s:%-7s ] ;"
+ (insert (format ":context domain:%-7s ;\n%srdf:value %5s:%-7s ] ;"
(chise-turtle-uri-encode-ccs-name domain)
(make-string col ?\ )
(chise-turtle-uri-encode-ccs-name ccs-base) uri-cpos)))
(insert (format "%s " line-separator))
(insert (format
(if (> (+ (current-column) (length value)) 48)
- ":unofficial-name %S ;"
- ":unofficial-name %S ;")
+ "rdfs:label %S ;"
+ "rdfs:label %S ;")
value))
(setq obj-spec (delete feature-pair obj-spec))
)
line-separator))
(setq col (current-column))
(setq indent (make-string col ?\ ))
- (insert (format ":context domain:%-7s ;\n%srdf:value %S"
+ (insert (format ":context domain:%-7s ;\n%srdf:value "
(chise-turtle-uri-encode-ccs-name domain)
- indent radical))
+ indent))
+ (setq lb (concord-turtle-insert-radical radical))
(setq obj-spec (delete feature-pair obj-spec))
(setq skey (intern (format "%s*sources" key)))
(when (and (setq feature-pair (assq skey obj-spec))
(setq value (cdr feature-pair)))
- (insert (format " ;\n%s" indent))
- (concord-turtle-insert-metadata :sources value)
+ (insert (format "\n%s" indent))
+ (setq lb (concord-turtle-insert-metadata :sources value))
;; (insert (format " ;\n%s:sources (" indent))
;; (setq col (current-column))
;; (setq indent (make-string col ?\ ))
;; (insert " )")
)
(setq obj-spec (delete feature-pair obj-spec))
- (insert " ] ;")
+ (if lb
+ (insert (format "\n%s] ;" (make-string (- col 2) ?\ )))
+ (insert " ] ;"))
)
(setq key (intern (format "%s@%s" 'ideographic-strokes domain)))
(when (and (setq feature-pair (assq key obj-spec))
line-separator))
(setq col (current-column))
(setq indent (make-string col ?\ ))
- (insert (format ":context domain:%-7s ;\n%srdf:value %S"
+ (insert (format ":context domain:%-7s ;\n%srdf:value %S"
(chise-turtle-uri-encode-ccs-name domain)
indent strokes))
(setq obj-spec (delete feature-pair obj-spec))
(insert (format "%s ideo:total-strokes [ "
line-separator))
(setq col (current-column))
- (insert (format ":context domain:%-7s ;\n%srdf:value %S"
+ (insert (format ":context domain:%-7s ;\n%srdf:value %S"
(chise-turtle-uri-encode-ccs-name domain)
(make-string col ?\ )
value))
(setq ret (chise-split-ccs-name (nth 1 eq-cpos)))
(insert (format "%s %s" line-breaking
(car eq-cpos)))
- (insert (format "%s %25s" line-breaking
+ (insert (format "%s %s" line-breaking
(format ":%s-of" (nth 1 ret))))
(if (null (nth 2 ret))
(insert (format " %14s:%-7s ."
(nth 1 (split-string (car eq-cpos) ":"))))
(insert " [ ")
(setq col (current-column))
- (insert (format ":context domain:%-7s ;\n%srdf:value %7s:%-7s ] ."
+ (insert (format ":context domain:%-7s ;\n%srdf:value %5s:%-7s ] ."
(chise-turtle-uri-encode-ccs-name (nth 2 ret))
(make-string col ?\ )
(chise-turtle-uri-encode-ccs-name (car ret))
(defun concord-turtle-insert-prefix ()
(let (base-ccs-list ret)
(insert "@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix : <http://rdf.chise.org/rdf/property/character/main/> .
@prefix ideo: <http://rdf.chise.org/rdf/property/character/ideo/> .
@prefix isd: <http://rdf.chise.org/rdf/property/character/isd/> .