mirror of
https://github.com/semantica-agi/semantica.git
synced 2026-08-29 04:26:20 +00:00
Bug 1 — non-string IDs crash store(): _resolve_iri() called .startswith() directly on local, causing AttributeError when upstream graph builders emit integer entity/relationship IDs. Fixed by coercing local to str() at entry; None/empty returns a safe urn: sentinel. Bug 2 — prefixed W3C terms mis-resolved under base_uri: Values like 'owl:Thing' and 'xsd:date' were not recognised as absolute IRIs and with base_uri set were rewritten to e.g. https://example.com/owl:Thing, corrupting standard OWL/XSD IRIs in stored triples. Fixed by adding a known- prefix expansion table (xsd/rdf/rdfs/owl/skos/semantica) that is checked before base_uri is applied, matching the same prefix map already used in blazegraph_store. Added 5 regression tests covering both bugs: integer IDs with/without base_uri, owl:Thing domain/range, xsd:date range, and rdfs:/skos: parent class expansion.