about summary refs log tree commit diff
path: root/examples/generif.scm
diff options
context:
space:
mode:
authorMunyoki Kilyungi2025-12-23 12:06:06 +0300
committerMunyoki Kilyungi2026-01-13 12:02:49 +0300
commit1ca7e679b834ccaf53a3243d0e1c2f3f9e8d56d8 (patch)
tree514c544706986f3edd0b3f53a89113e334a0b9a3 /examples/generif.scm
parentc42933e8f474d8d14eac387d5a94da6f52210629 (diff)
downloadgn-transform-databases-1ca7e679b834ccaf53a3243d0e1c2f3f9e8d56d8.tar.gz
Snake case gn/gnt/gnc identifiers.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'examples/generif.scm')
-rwxr-xr-xexamples/generif.scm22
1 files changed, 11 insertions, 11 deletions
diff --git a/examples/generif.scm b/examples/generif.scm
index 628e34e..5fb95f7 100755
--- a/examples/generif.scm
+++ b/examples/generif.scm
@@ -23,16 +23,16 @@
           "WHERE GeneRIF.display > 0 AND GeneRIF.comment IS NOT NULL
 GROUP BY GeneRIF.Id, GeneRIF.versionId, GeneRIF.symbol")
   (schema-triples
-   (gnc:GeneWikiEntry a rdfs:Class)
-   (gnc:GNWikiEntry rdfs:subClassOf gnc:GeneWikiEntry)
+   (gnc:gene_wiki_entry a rdfs:Class)
+   (gnc:GNWikiEntry rdfs:subClassOf gnc:gene_wiki_entry)
    (gnt:initial a owl:ObjectProperty)
-   (gnt:initial rdfs:domain gnc:GeneWikiEntry)
+   (gnt:initial rdfs:domain gnc:gene_wiki_entry)
    (gnt:initial skos:definition "Optional user or project code or your initials")
    (gnt:reason a owl:ObjectProperty)
-   (gnt:reason rdfs:domain gnc:GeneWikiEntry)
+   (gnt:reason rdfs:domain gnc:gene_wiki_entry)
    (gnt:reason skos:definition "The reason why this resource was modified")
    (gnc:GNWikiEntry rdfs:comment "Represents GeneRIF Entries entered from GeneNetwork")
-   (gnt:geneSymbol rdfs:domain gnc:GNWikiEntry))
+   (gnt:gene_symbol rdfs:domain gnc:GNWikiEntry))
   (triples
       (format
        #f "gn:wiki-~a-~a"
@@ -46,7 +46,7 @@ GROUP BY GeneRIF.Id, GeneRIF.versionId, GeneRIF.symbol")
                               '(("'" . "\\'"))))))
     (set rdf:type 'gnc:GNWikiEntry)
     (set gnt:symbol (field GeneRIF symbol))
-    (set gnt:belongsToSpecies (string->identifier
+    (set gnt:belongs_to_species (string->identifier
                                ""
                                (remap-species-identifiers (field Species Fullname))
                                #:separator ""
@@ -90,8 +90,8 @@ GROUP BY GeneRIF.Id, GeneRIF.versionId, GeneRIF.symbol")
   (tables (GeneRIF_BASIC
            (left-join Species "USING (SpeciesId)")))
   (schema-triples
-   (gnc:NCBIWikiEntry rdfs:subClassOf gnc:GeneWikiEntry)
-   (gnc:NCBIWikiEntry rdfs:comment "Represents GeneRIF Entries obtained from NCBI"))
+   (gnc:ncbi_wiki_entry rdfs:subClassOf gnc:gene_wiki_entry)
+   (gnc:ncbi_wiki_entry rdfs:comment "Represents GeneRIF Entries obtained from NCBI"))
   (triples
       (format
        #f "gn:rif-~a-~a-~a-~a"
@@ -124,11 +124,11 @@ GROUP BY GeneRIF.Id, GeneRIF.versionId, GeneRIF.symbol")
                 (version-id (field GeneRIF_BASIC versionId)))
            (string->symbol
             (string-append
-             (format #f "gnc:NCBIWikiEntry ;\n")
+             (format #f "gnc:ncbi_wiki_entry ;\n")
              (format #f "\trdfs:label ~a ;\n" comment)
-             (format #f "\tgnt:belongsToSpecies ~a ;\n" species)
+             (format #f "\tgnt:belongs_to_species ~a ;\n" species)
              (format #f "\tgnt:symbol ~s ;\n" symbol)
-             (format #f "\tgnt:hasGeneId generif:~a ;\n" gene-id)
+             (format #f "\tgnt:has_gene_id generif:~a ;\n" gene-id)
              (match taxon-id
                ((? number? x)
                 (format #f "\tskos:notation taxon:~a ;\n" taxon-id))