From e9c13fee829b88a45c3b55a6c9221283e92ddfa2 Mon Sep 17 00:00:00 2001 From: Arthit Suriyawongkul Date: Sat, 24 Jan 2026 10:01:15 +0000 Subject: [PATCH] Set type to @id for terms refer to a class Signed-off-by: Arthit Suriyawongkul --- spec_parser/rdf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec_parser/rdf.py b/spec_parser/rdf.py index cc9b030..0803f3e 100644 --- a/spec_parser/rdf.py +++ b/spec_parser/rdf.py @@ -276,7 +276,7 @@ def get_subject_term(subject): elif (o, RDF.type, OWL.Class) in g: return { "@id": subject, - "@type": "@vocab", + "@type": "@id", } elif (subject, RDF.type, OWL.DatatypeProperty) in g: for _, _, o in g.triples((subject, RDFS.range, None)):