aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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/>")