aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xexamples/generif.scm16
1 files changed, 9 insertions, 7 deletions
diff --git a/examples/generif.scm b/examples/generif.scm
index d25b0f1..d6b8b25 100755
--- a/examples/generif.scm
+++ b/examples/generif.scm
@@ -46,19 +46,21 @@
(left-join Species "USING (SpeciesId)"))
"GROUP BY GeneId ORDER BY BINARY symbol")
(schema-triples
- (gnt:symbol rdfs:domain gn-term:geneWikiEntry)
- (gnt:wikiEntryOfSpecies rdfs:range gn:species)
- (gnt:taxid rdfs:domain gn-term:geneWikiEntry))
+ (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:wikiEntryOfSpecies
+ (multiset gnt:belongsToSpecies
(string-split
(field ("GROUP_CONCAT(DISTINCT Species.SpeciesName)" species))
#\,))
- (multiset gnt:taxId (map (cut ontology 'ncbiTaxon: <>)
- (string-split (field ("GROUP_CONCAT(DISTINCT TaxID)" taxId))
- #\,)))))
+ (multiset dct:relation
+ (map
+ (cut ontology 'ncbiTaxon: <>)
+ (string-split (field ("GROUP_CONCAT(DISTINCT TaxID)" taxId))
+ #\,)))))
(define-transformer gn-genewiki-entries
(tables (GeneRIF