Skip to content

Fix/right operand types - #8

Merged
woutslabbinck merged 3 commits into
mainfrom
fix/right-operand-types
Nov 19, 2026
Merged

woutslabbinck merged 3 commits into
mainfrom
fix/right-operand-types

Conversation

@elenamolino

Copy link
Copy Markdown
Collaborator

Changes

  • rightOperand datatypes accept their XSD subtypes:

    • xsd:decimal → xsd:integer and its subtypes (xsd:long, xsd:int, xsd:short, xsd:byte, xsd:nonNegativeInteger, xsd:positiveInteger, xsd:unsignedLong, xsd:unsignedInt, xsd:unsignedShort, xsd:unsignedByte, xsd:nonPositiveInteger, xsd:negativeInteger)
    • xsd:date, xsd:dateTime → xsd:dateTimeStamp
    • xsd:duration → xsd:dayTimeDuration, xsd:yearMonthDuration
    • xsd:string → xsd:normalizedString, xsd:token, xsd:language, xsd:Name, xsd:NCName, xsd:NMTOKEN, xsd:ID, xsd:IDREF, xsd:ENTITY
  • count ≥ 0, payAmount any decimal, percentage 0–100.

  • spatial: an IRI or a list of IRIs.

To discuss

  1. All subtypes, or only some?
  2. count ≥ 0 or ≥ 1?
  3. payAmount ≥ 0?
  4. percentage 0–100 OK?
  5. spatial: now any IRI or list of IRIs is accepted.
    Should we also accept ISO 3166-1 country codes as strings (e.g. "ES")? There are more than 200 codes.
    We could validate them with a closed list or with sh:pattern "^[A-Z]{2}$", but the pattern would also accept "XX".

@elenamolino

Copy link
Copy Markdown
Collaborator Author

count ≥ 1

@woutslabbinck
woutslabbinck merged commit 8ec200c into main Nov 19, 2026
1 check failed
@woutslabbinck

Copy link
Copy Markdown
Collaborator

I've made sure to add sh:minInclusive 1 in the main branch

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.

2 participants