about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2025-04-25 17:03:41 +0300
committerBonfaceKilz2025-04-25 18:57:37 +0300
commit3bdb2c33b131f840d6b33d199a42b3b4d4761802 (patch)
treed207f1e1fca0f29f7e0936780f91af4869dd5b62
parent11fcafc2799fc2ea128b1edd55c3286dc8992f4e (diff)
downloadgenenetwork3-3bdb2c33b131f840d6b33d199a42b3b4d4761802.tar.gz
Skip adding a species to RDF when the species is unspecified.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r--gn3/db/rdf/wiki.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/db/rdf/wiki.py b/gn3/db/rdf/wiki.py
index 309da73..dd8d204 100644
--- a/gn3/db/rdf/wiki.py
+++ b/gn3/db/rdf/wiki.py
@@ -225,7 +225,7 @@ dct:created "$created"^^xsd:datetime .
         comment_triple += f"{name} foaf:mbox <{insert_dict['email']}> .\n"
     if insert_dict["initial"]:
         comment_triple += f"{name} gnt:initial \"{insert_dict['initial']}\" .\n"
-    if insert_dict["species"]:
+    if insert_dict["species"] and insert_dict["species"].lower() != "no specific species":
         comment_triple += f"{name} gnt:belongsToSpecies ?speciesId .\n"
         using = Template(
             """ USING $graph WHERE { ?speciesId gnt:shortName "$species" . } """