From 91845d31ef4dd291bef12fa6f9a2755285de4739 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Fri, 25 Aug 2023 14:47:03 +0300 Subject: Replace gdmt: with dcat: Signed-off-by: Munyoki Kilyungi --- examples/dataset-metadata.scm | 48 ++++++++++++++++++++++++++----------------- 1 file changed, 29 insertions(+), 19 deletions(-) (limited to 'examples/dataset-metadata.scm') diff --git a/examples/dataset-metadata.scm b/examples/dataset-metadata.scm index 542f465..4cec27b 100755 --- a/examples/dataset-metadata.scm +++ b/examples/dataset-metadata.scm @@ -107,7 +107,13 @@ (left-join GeneChip "USING (GeneChipId)")) "WHERE GN_AccesionId IS NOT NULL") (schema-triples - (gnc:dataset rdf:type gdmt:Dataset) + (gnc:dataset rdf:type dcat:Dataset) + (gn:datasetTitle a rdfs:Datatype) + (gn:datasetTitle rdfs:comment "The Dataset's Title") + (gn:datasetTitle owl:onDatatype xsd:string) + (gn:publicationTitle a rdfs:Datatype) + (gn:publicationTitle rdfs:comment "The Dataset's Publication Title") + (gn:publicationTitle owl:onDatatype xsd:string) (gnc:genotypeDataset rdfs:subClassOf gnc:dataset) (gnc:phenotypeDataset rdfs:subClassOf gnc:dataset) (gnc:probesetDataset rdfs:subClassOf gnc:dataset) @@ -170,29 +176,33 @@ (field ("IFNULL(GenoFreeze.FullName, IFNULL(PublishFreeze.FullName, ''))" DatasetFullName))) (set skos:prefLabel (field Datasets DatasetName DatasetGroup)) - (set gdmt:hasTitleInfo - (regexp-substitute/global - #f "^[Nn]one$" - (field InfoFiles InfoFileTitle) - "")) + (set dct:title + (annotate-field + (regexp-substitute/global + #f "^[Nn]one$" + (field InfoFiles InfoFileTitle) + "")) + '^^gn:datasetTitle) ;; This is the published title (set dct:title - (regexp-substitute/global - #f "^[Nn]one$" - (field Datasets PublicationTitle) - "")) + (annotate-field + (regexp-substitute/global + #f "^[Nn]one$" + (field Datasets PublicationTitle) + "")) + '^^gn:publicationTitle) (set dct:created (field ("IFNULL(GenoFreeze.CreateTime, IFNULL(PublishFreeze.CreateTime, IFNULL(ProbeSetFreeze.CreateTime, '')))" createTimeGenoFreeze))) - (set gdmt:hasCreatorInfo + (set dcat:contacttPoint (investigator-attributes->id (field Investigators FirstName) (field Investigators LastName) (field Investigators Email))) - (set gdmt:hasCreatorAffiliation + (set foaf:Organization (field Organizations OrganizationName)) - (set gdmt:hasDatasetIdentifierSubType (format #f "GN~a" (field InfoFiles GN_AccesionId))) - (set gdmt:hasRightsInfo (string-downcase - (field DatasetStatus DatasetStatusName))) + (set dct:identifier (format #f "GN~a" (field InfoFiles GN_AccesionId))) + (set dct:accessRights (string-downcase + (field DatasetStatus DatasetStatusName))) (set gnt:belongsToSet (string->identifier "set" (field InbredSet Name) @@ -208,7 +218,7 @@ (set gnt:usesPlatform (string->identifier "platform" (field GeneChip Name GeneChip))) - (set gdmt:isDescribedBy + (set dct:description (sanitize-rdf-string (field Datasets Summary))) (set gnt:hasGeoSeriesId (let ((s @@ -235,10 +245,10 @@ (set gnt:hasExperimentDesignInfo (sanitize-rdf-string (field Datasets ExperimentDesign))) - (set gdmt:hasContributorInfo + (set dct:creator (sanitize-rdf-string (field Datasets Contributors))) - (set gdmt:IsCitedBy + (set dct:isReferencedBy (sanitize-rdf-string (regexp-substitute/global #f "^[Nn]one$" @@ -371,7 +381,7 @@ (prefixes '(("v:" "") ("foaf:" "") - ("gdmt:" "") + ("dcat:" "") ("skos:" "") ("geoSeries:" "") ("gnt:" "") -- cgit v1.2.3