aboutsummaryrefslogtreecommitdiff
path: root/examples/classification.scm
diff options
context:
space:
mode:
Diffstat (limited to 'examples/classification.scm')
-rwxr-xr-xexamples/classification.scm12
1 files changed, 9 insertions, 3 deletions
diff --git a/examples/classification.scm b/examples/classification.scm
index 13b086a..8eb440a 100755
--- a/examples/classification.scm
+++ b/examples/classification.scm
@@ -48,7 +48,10 @@
(gnc:Species xkos:depth "3")
(gnc:Species xkos:specializes gnc:Set))
(triples "gnc:Species"
- (set skos:member (string->identifier "" (remap-species-identifiers (field Species Fullname))))))
+ (set skos:member
+ (string->identifier "" (remap-species-identifiers (field Species Fullname))
+ #:separator ""
+ #:proc string-capitalize-first))))
(define-transformer classification-scheme-set
(tables (InbredSet))
@@ -63,7 +66,8 @@
"set" (field InbredSet Name InbredSetName)))))
(define-transformer species
- (tables (Species))
+ (tables (Species
+ (left-join InbredSet "USING (FamilyOrder)")))
(schema-triples
(gnt:family a owl:ObjectProperty)
(gnt:family rdfs:domain gnc:Species)
@@ -72,7 +76,9 @@
(gnt:shortName rdfs:domain gnc:Species)
(gnt:shortName skos:definition "The short name of a given resource"))
(triples
- (string->identifier "" (remap-species-identifiers (field Species Fullname)))
+ (string->identifier "" (remap-species-identifiers (field Species Fullname))
+ #:separator ""
+ #:proc string-capitalize-first)
(set skos:inScheme 'gnc:ResourceClassificationScheme)
(set rdfs:label (remap-species-identifiers (field Species Fullname)))
(set skos:prefLabel (field Species MenuName))