diff options
| author | Munyoki Kilyungi | 2025-04-25 17:03:41 +0300 |
|---|---|---|
| committer | BonfaceKilz | 2025-04-25 18:57:37 +0300 |
| commit | 3bdb2c33b131f840d6b33d199a42b3b4d4761802 (patch) | |
| tree | d207f1e1fca0f29f7e0936780f91af4869dd5b62 | |
| parent | 11fcafc2799fc2ea128b1edd55c3286dc8992f4e (diff) | |
| download | genenetwork3-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.py | 2 |
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" . } """ |
