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 | |
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')
-rwxr-xr-x | examples/dump-phenotype.scm | 4 | ||||
-rwxr-xr-x | examples/dump-publication.scm | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/dump-phenotype.scm b/examples/dump-phenotype.scm index 51ecb64..7582d94 100755 --- a/examples/dump-phenotype.scm +++ b/examples/dump-phenotype.scm @@ -102,9 +102,9 @@ pmid))) (publication-id (field Publication Id))) (if (string-null? pmid) - (string->identifier "publication" + (string->identifier "unpublished" (number->string publication-id)) - (ontology 'pubmed: pmid)))))) + (ontology 'publication: pmid)))))) (call-with-target-database 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)))) |