diff options
author | Munyoki Kilyungi | 2023-06-09 14:58:53 +0300 |
---|---|---|
committer | BonfaceKilz | 2023-06-12 19:06:36 +0300 |
commit | aede661b55eb6b2f4b4b9eeb8972ab2a73a98d83 (patch) | |
tree | f11263499d699ece73ba4e2be9b1063a44dd38f1 /examples/dump-publication.scm | |
parent | 632b922a580bc08affbc7700a7f892868e3606ac (diff) | |
download | gn-transform-databases-aede661b55eb6b2f4b4b9eeb8972ab2a73a98d83.tar.gz |
Annotate publications without a pmid with "unpublished"
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'examples/dump-publication.scm')
-rwxr-xr-x | examples/dump-publication.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/dump-publication.scm b/examples/dump-publication.scm index ef2a36d..ba77256 100755 --- a/examples/dump-publication.scm +++ b/examples/dump-publication.scm @@ -39,8 +39,8 @@ pmid))) (publication-id (field Publication Id))) (if (string-null? pmid) - (ontology 'publication: - publication-id) + (string->identifier "unpublished" + (number->string publication-id)) (ontology 'publication: pmid))) (set rdf:type 'gn:publication) (set gn:pubMedId (ontology 'pubmed: (field ("IFNULL(PubMed_ID, '')" pubmedId)))) |