From 632b922a580bc08affbc7700a7f892868e3606ac Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Tue, 6 Jun 2023 14:48:12 +0300 Subject: Use "publication:" as an identifier for publications Signed-off-by: Munyoki Kilyungi --- examples/dump-phenotype.scm | 1 + examples/dump-publication.scm | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/dump-phenotype.scm b/examples/dump-phenotype.scm index a493fa2..51ecb64 100755 --- a/examples/dump-phenotype.scm +++ b/examples/dump-phenotype.scm @@ -133,6 +133,7 @@ (prefix "up:" "") (prefix "xsd:" "") (prefix "dataset:" "") + (prefix "publication:" "") (newline) (dump-publishfreeze db) (dump-phenotypes db)) diff --git a/examples/dump-publication.scm b/examples/dump-publication.scm index e4c57ad..ef2a36d 100755 --- a/examples/dump-publication.scm +++ b/examples/dump-publication.scm @@ -39,11 +39,11 @@ pmid))) (publication-id (field Publication Id))) (if (string-null? pmid) - (string->identifier "publication" - (number->string publication-id)) - (ontology 'pubmed: pmid))) + (ontology 'publication: + publication-id) + (ontology 'publication: pmid))) (set rdf:type 'gn:publication) - (set gn:pubMedId (field ("IFNULL(PubMed_ID, '')" pubmedId))) + (set gn:pubMedId (ontology 'pubmed: (field ("IFNULL(PubMed_ID, '')" pubmedId)))) (set gn:title (field Publication Title)) (set gn:journal (field Publication Journal)) (set gn:volume (field Publication Volume)) @@ -85,6 +85,7 @@ (prefix "uniprot:" "") (prefix "up:" "") (prefix "xsd:" "") + (prefix "publication:" "") (newline) (dump-publication db)) #:encoding "utf8"))) -- cgit v1.2.3