diff options
author | Munyoki Kilyungi | 2023-11-20 17:08:27 +0300 |
---|---|---|
committer | Munyoki Kilyungi | 2023-11-20 17:08:27 +0300 |
commit | e099f0c16ad2f22007f5c183550254af9e4f9077 (patch) | |
tree | c25a6f55f1d2dff87608c1039741e9a0d75a03d8 /examples/classification.scm | |
parent | 4ff332f51779749b0976e303fe404c3a54d92364 (diff) | |
download | gn-transform-databases-e099f0c16ad2f22007f5c183550254af9e4f9077.tar.gz |
Add "gnt:belongsToSpecies" and "gnt:belongsToGroup" gn terms.
These terms are useful when constructing a graph for framing purposes
in json-ld.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'examples/classification.scm')
-rwxr-xr-x | examples/classification.scm | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/examples/classification.scm b/examples/classification.scm index e3d9bb7..3024af6 100755 --- a/examples/classification.scm +++ b/examples/classification.scm @@ -75,11 +75,14 @@ (gnt:family skos:definition "This resource belongs to this family") (gnt:shortName a owl:ObjectProperty) (gnt:shortName rdfs:domain gnc:Species) - (gnt:shortName skos:definition "The short name of a given resource")) + (gnt:shortName skos:definition "The short name of a given resource") + (gnt:belongsToSpecies a rdf:property) + (gnt:belongsToSpecies rdf:comment "This resource given to this species") + (gnt:belongsToSpecies rdf:label "belongsToSpecies")) (triples (string->identifier "" (remap-species-identifiers (field Species Fullname)) - #:separator "" - #:proc string-capitalize-first) + #: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)) @@ -87,8 +90,8 @@ (set gnt:shortName (field Species Name)) (set gnt:family (field Species Family)) (set skos:notation (ontology - 'taxon: - (field Species TaxonomyId))))) + 'taxon: + (field Species TaxonomyId))))) (define-transformer inbred-set (tables (InbredSet @@ -103,7 +106,10 @@ ;; Already defined as an owl prop in species (gnt:family rdfs:domain gnc:Set) (gnt:mappingMethod a owl:ObjectProperty) - (gnt:mappingMethod rdfs:domain gnc:set)) + (gnt:mappingMethod rdfs:domain gnc:set) + (gnt:belongsToGroup a rdf:property) + (gnt:belongsToGroup rdf:comment "This resource given to this group") + (gnt:belongsToGroup rdf:label "belongsToGroup")) (triples (string->identifier "set" (field InbredSet Name InbredSetName) #:separator "" |