Skip to content

Parse datatype complements#55

Open
vibhor-aggr wants to merge 1 commit into
pwin:masterfrom
vibhor-aggr:codex/fix-datatype-complement-of
Open

Parse datatype complements#55
vibhor-aggr wants to merge 1 commit into
pwin:masterfrom
vibhor-aggr:codex/fix-datatype-complement-of

Conversation

@vibhor-aggr

Copy link
Copy Markdown

Summary

Fixes #51.

Adds support for parsing and serializing owl:datatypeComplementOf blank nodes. Datatype complements now round-trip through the existing Not(...) construct, and intersections containing datatype complements no longer degrade into anonymous datatype placeholders.

Changes

  • Add the owl:datatypeComplementOf abbreviation.
  • Teach Not to lazy-load and serialize datatype complements using Python datatype mappings.
  • Parse blank nodes with owl:datatypeComplementOf as Not(...) constructs.
  • Add regression tests for direct datatype complements and datatype intersections containing complements.

Verification

uv run --with-editable . python -m unittest test.regtest.Test.test_construct_not_datatype test.regtest.Test.test_parse_datatype_complement_of test.regtest.Test.test_parse_datatype_intersection_with_complement test.regtest.Test.test_construct_not_1 test.regtest.Test.test_construct_not_2 test.regtest.Test.test_construct_not_3 test.regtest.Test.test_construct_not_4 test.regtest.Test.test_and_or_3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: unable to parse complement datatype

1 participant