aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/dataset-metadata.scm48
1 files changed, 29 insertions, 19 deletions
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:" "<http://www.w3.org/2006/vcard/ns#>")
("foaf:" "<http://xmlns.com/foaf/0.1/>")
- ("gdmt:" "<http://vocab.fairdatacollective.org/gdmt/>")
+ ("dcat:" "<http://www.w3.org/ns/dcat#>")
("skos:" "<http://www.w3.org/2004/02/skos/core#>")
("geoSeries:" "<http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=>")
("gnt:" "<http://genenetwork.org/term/>")