aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-09-19 18:08:38 +0300
committerBonfaceKilz2024-09-23 12:32:51 +0300
commit0fd98748b325860f1e91fabf4b1e8c924508946e (patch)
tree8da59f8821de7decc9ef58726c69f13a5a094656 /gn3
parent1c1f2945fae39731b7094a090193de92fc3ebe43 (diff)
downloadgenenetwork3-0fd98748b325860f1e91fabf4b1e8c924508946e.tar.gz
Use correct object modifier for a label when inserting a comment.
* gn3/db/rdf/wiki.py (update_wiki_comment) [query]: Replace "rdf:label" with "rdfs:label". Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3')
-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 f81d695..4464eed 100644
--- a/gn3/db/rdf/wiki.py
+++ b/gn3/db/rdf/wiki.py
@@ -196,7 +196,7 @@ def update_wiki_comment(
identifier but an updated version id.
"""
name = f"gn:wiki-{insert_dict['Id']}-{insert_dict['versionId']}"
- comment_triple = Template("""$name rdf:label '''$comment'''@en ;
+ comment_triple = Template("""$name rdfs:label '''$comment'''@en ;
rdf:type gnc:GNWikiEntry ;
gnt:symbol "$symbol" ;
dct:identifier "$comment_id"^^xsd:integer ;