Skip to content

infixowl cardinality - 0 #1453

@MattyCrowther

Description

@MattyCrowther

owl.Restriction(property,graph=graph,cardinality=Literal(0)) Raises an error.
assert len(validRestrProps)
When cardinality value is given as 0.

This comes from:

  validRestrProps = [(i, oTerm) for (i, oTerm) in restrTypes if i]
  assert len(validRestrProps)

I believe this is an oversight as if i == 0 returns False.
However, I believe cardinality: 0 is valid.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions