aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-09-12 11:20:33 +0300
committerMunyoki Kilyungi2024-09-12 11:20:33 +0300
commitf883b188b9a75a5f609b973fb5cc76db70304518 (patch)
tree38492906dce05bf8ab88df695a223c7a89fd51ba /examples
parent41e195621ad8ce041bf4d048516a8c4fd4e8b392 (diff)
downloadgn-transform-databases-f883b188b9a75a5f609b973fb5cc76db70304518.tar.gz
Remove extra nodes for symbols.
In GN, symbols don't have metadata. As such, for the moment, just use the string. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/generif.scm30
1 files changed, 0 insertions, 30 deletions
diff --git a/examples/generif.scm b/examples/generif.scm
index 6619d9e..27fa388 100755
--- a/examples/generif.scm
+++ b/examples/generif.scm
@@ -16,34 +16,6 @@
-(define-transformer genewiki-symbols
- (tables (GeneRIF_BASIC)
- "GROUP BY BINARY symbol")
- (triples
- (string->identifier
- "symbol"
- (regexp-substitute/global #f "[^A-Za-z0-9:]"
- (field GeneRIF_BASIC symbol)
- 'pre "_" 'post)
- #:proc (lambda (x) x))
- (set rdfs:label
- (field GeneRIF_BASIC symbol))))
-
-;; Some symbols exist in the RIF table that don't exist in the GeneRIF
-;; table.
-(define-transformer generif-symbols
- (tables (GeneRIF)
- "WHERE symbol NOT IN (SELECT symbol from GeneRIF_BASIC) GROUP BY BINARY symbol")
- (triples
- (string->identifier
- "symbol"
- (regexp-substitute/global #f "[^A-Za-z0-9:]"
- (field GeneRIF symbol)
- 'pre "_" 'post)
- #:proc (lambda (x) x))
- (set rdfs:label
- (field GeneRIF symbol))))
-
(define-transformer gn-genewiki-entries
(tables (GeneRIF
(left-join Species "ON Species.SpeciesId = GeneRIF.SpeciesId")
@@ -228,8 +200,6 @@ GROUP BY GeneRIF.Id, GeneRIF.versionId, GeneRIF.symbol")
("owl:" "<http://www.w3.org/2002/07/owl#>")))
(inputs
(list
- genewiki-symbols
- generif-symbols
gn-genewiki-entries
ncbi-genewiki-entries))
(outputs