From 0fd98748b325860f1e91fabf4b1e8c924508946e Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Thu, 19 Sep 2024 18:08:38 +0300 Subject: 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 --- gn3/db/rdf/wiki.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn3/db') 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 ; -- cgit v1.2.3