diff options
author | Munyoki Kilyungi | 2024-07-30 19:53:59 +0300 |
---|---|---|
committer | Munyoki Kilyungi | 2024-07-30 19:53:59 +0300 |
commit | 9724fbb706da6b3cde8cd3ca2687808b7dce5fb1 (patch) | |
tree | 5d75faa0265e64d061876a82574390f4948712c9 /examples | |
parent | 0b5a9b3cd0ec11ded46b7251e19c45452fdadbe3 (diff) | |
download | gn-transform-databases-9724fbb706da6b3cde8cd3ca2687808b7dce5fb1.tar.gz |
Update GeneRIF metadata with "reason" for modification.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/generif.scm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/generif.scm b/examples/generif.scm index 302aace..34562a5 100755 --- a/examples/generif.scm +++ b/examples/generif.scm @@ -73,6 +73,9 @@ (gnt:initial a owl:ObjectProperty) (gnt:initial rdfs:domain gnc:GeneWikiEntry) (gnt:initial skos:definition "Optional user or project code or your initials") + (gnt:reason a owl:ObjectProperty) + (gnt:reason rdfs:domain gnc:GeneWikiEntry) + (gnt:reason skos:definition "The reason why this resource was modified") (gnc:GNWikiEntry rdfs:comment "Represents GeneRIF Entries entered from GeneNetwork") (gnt:geneSymbol rdfs:domain gnc:GNWikiEntry)) (triples @@ -96,6 +99,7 @@ [version-id (field GeneRIF versionId)] [identifier (field GeneRIF Id)] [initial (field GeneRIF initial)] + [reason (field GeneRIF reason)] [categories (remove (lambda (x) (or (eq? x #f) @@ -137,6 +141,9 @@ "") (format #f "dct:identifier ~s ; " identifier) (format #f "dct:hasVersion \"~s\"^^xsd:int ; " version-id) + (if (string-blank? reason) + "" + (format #f "gnt:reason ~s ; " reason)) (if (null? initial) "" (format #f "gnt:initial ~s ; " initial)) (if (not (null? categories)) (format #f |