aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-08-28 14:33:45 +0300
committerMunyoki Kilyungi2023-08-28 14:33:45 +0300
commit24226aeafadfeb81a01ae6105f078dd319965887 (patch)
tree413b88ec5f8e6c63c7ab9b2e95ff53494a80e596 /examples
parent69800ab334600c464e11cb26ea7f142c42e0fe90 (diff)
downloadgn-transform-databases-24226aeafadfeb81a01ae6105f078dd319965887.tar.gz
Update how generif metadata is dumped
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/generif.scm10
1 files changed, 4 insertions, 6 deletions
diff --git a/examples/generif.scm b/examples/generif.scm
index 8058b37..a5930ad 100755
--- a/examples/generif.scm
+++ b/examples/generif.scm
@@ -46,13 +46,11 @@
(left-join Species "USING (SpeciesId)"))
"GROUP BY GeneId ORDER BY BINARY symbol")
(schema-triples
- (gnt:belongsToSpecies rdfs:domain gnc:strain)
- (gnt:belongsToSpecies rdfs:domain gnc:NCBIWikiEntry)
(gnt:symbol rdfs:domain gnc:NCBIWikiEntry))
(triples (ontology 'generif: (field GeneRIF_BASIC GeneId))
(multiset gnt:symbol (string-split (field ("GROUP_CONCAT(DISTINCT symbol)" symbol))
#\,))
- (multiset gnt:belongsToSpecies
+ (multiset xkos:classifiedUnder
(string-split
(field ("GROUP_CONCAT(DISTINCT Species.SpeciesName)" species))
#\,))
@@ -73,8 +71,6 @@
(gnc:GeneWikiEntry a rdfs:Class)
(gnc:GNWikiEntry rdfs:subClassOf gnc:GeneWikiEntry)
(gnc:GNWikiEntry rdfs:comment "Represents GeneRIF Entries entered from GeneNetwork")
- (gnt:belongsToCategory rdfs:domain gnc:GNWikiEntry)
- (gnt:belongsToSpecies rdfs:domain gnc:GNWikiEntry)
(gnt:symbol rdfs:domain gnc:GNWikiEntry))
(triples
(string->identifier
@@ -99,7 +95,7 @@
(field ("GROUP_CONCAT(DISTINCT GeneCategory.Name SEPARATOR '$$')"
GeneCategory))
"$$")))
- (set gnt:belongsToSpecies
+ (set xkos:classifiedUnder
(string->identifier
""
(remap-species-identifiers (field Species Fullname))
@@ -201,6 +197,8 @@
(prefixes
'(("rdf:" "<http://www.w3.org/1999/02/22-rdf-syntax-ns#>")
("rdfs:" "<http://www.w3.org/2000/01/rdf-schema#>")
+ ("skos:" "<http://www.w3.org/2004/02/skos/core#>")
+ ("xkos:" "<http://rdf-vocabulary.ddialliance.org/xkos#>")
("gn:" "<http://genenetwork.org/id/>")
("gnc:" "<http://genenetwork.org/category/>")
("gnt:" "<http://genenetwork.org/term/>")