Skip to content

Commit

Permalink
Exports functions for producing rdf. Fixed emission of metadata with
Browse files Browse the repository at this point in the history
 white spaces, by replacing with underscore. (related to LR-POR#18)
 (e.g. this line was being printed:
 "conll:mnewdoc id a conll:MetadataKey ."
 now it becomes:
 "conll:mnewdoc_id a conll:MetadataKey .")
  • Loading branch information
GPPassos committed Oct 4, 2017
1 parent caf64fd commit aaf0941
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@
#:sentence-equal

#:apply-rules
#:apply-rules-from-files))
#:apply-rules-from-files

#:convert-rdf
#:convert-rdf-file))


(defpackage #:conllu-prolog
Expand Down
2 changes: 1 addition & 1 deletion rdf.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
(with-output-to-string (s)
(mapcar (lambda (m)
(format s "conll:m~a a conll:MetadataKey .~%" (string-downcase (car m)))
(format s "conll:m~a rdfs:label ~a .~%" (string-downcase (car m))
(format s "conll:m~a rdfs:label ~a .~%" (cl-ppcre:regex-replace-all " " (string-downcase (car m)) "_")
(make-literal (car m)))) metadata)
s))

Expand Down

0 comments on commit aaf0941

Please sign in to comment.