aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-07-18 17:19:20 +0300
committerBonfaceKilz2023-07-30 12:29:56 +0300
commit22de1613596c2a429d52a65702e72018d4011b46 (patch)
treeb3193d035951a50e9ec29ef3a06be16bf136efd9 /examples
parenta525d36edb35587d2f95142d4e6e7e9a32c0136d (diff)
downloadgn-transform-databases-22de1613596c2a429d52a65702e72018d4011b46.tar.gz
Update tissue dump to use gn-term/gn-id
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/dump-tissue.scm18
1 files changed, 10 insertions, 8 deletions
diff --git a/examples/dump-tissue.scm b/examples/dump-tissue.scm
index 4998cff..376129c 100755
--- a/examples/dump-tissue.scm
+++ b/examples/dump-tissue.scm
@@ -23,12 +23,12 @@
;; and BIRN_lex_Name are mostly NULL.
(tables (Tissue))
(schema-triples
- (gn:name rdfs:range rdfs:Literal))
+ (gn-term:name rdfs:range rdfs:Literal))
;; Hopefully the Short_Name field is distinct and can be used as an
;; identifier.
(triples (string->identifier "tissue" (field Tissue Short_Name))
- (set rdf:type 'gn:tissue)
- (set gn:name (field Tissue Name))))
+ (set rdf:type 'gn-id:tissue)
+ (set gn-term:name (field Tissue Name))))
@@ -37,10 +37,12 @@
(connection %connection-settings)
(table-metadata? #f)
(prefixes
- (("rdf:" "<http://www.w3.org/1999/02/22-rdf-syntax-ns#>")
- ("rdfs:" "<http://www.w3.org/2000/01/rdf-schema#>")
- ("gn:" "<http://genenetwork.org/terms/>")))
+ '(("gn-id:" "<http://genenetwork.org/terms/>")
+ ("gn-term:" "<http://genenetwork.org/terms/>")
+ ("rdf:" "<http://www.w3.org/1999/02/22-rdf-syntax-ns#>")
+ ("rdfs:" "<http://www.w3.org/2000/01/rdf-schema#>")))
(inputs
- (dump-tissue))
+ (list dump-tissue))
(outputs
- (#:documentation "./docs/dump-tissue.md" #:rdf "./verified-data/dump-tissue.ttl")))
+ '(#:documentation "./docs/dump-tissue.md"
+ #:rdf "./verified-data/dump-tissue.ttl")))