From 3bdb2c33b131f840d6b33d199a42b3b4d4761802 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Fri, 25 Apr 2025 17:03:41 +0300 Subject: Skip adding a species to RDF when the species is unspecified. Signed-off-by: Munyoki Kilyungi --- gn3/db/rdf/wiki.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn3/db/rdf/wiki.py') 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" . } """ -- cgit 1.4.1