Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Shape for "length in meters" is doubtful #21

@VladimirAlexiev

Description

@VladimirAlexiev
era-sh:length
	a sh:PropertyShape;
	sh:datatype xsd:double ;
	sh:pattern "([1-9]\\d{3}|[1-9]\\d{2}|[1-9]\\d{1}|[0-9])" ;
	sh:message "length (1.2.2.0.2.1): Each Siding must have a length in meters."@en
  • this doesn't allow 0 to appear in multi-digit numbers, eg 109 and 100 are not allowed
  • it doesn't allow fractional numbers, but xsd:double allows them
  • it doesn't allow numbers in exponential notation but xsd:double allows them . Maybe you want xsd:decimal instead?
  • the last alternative subsumes the one before it

If you want to limit to 0..999 then use sh:minInclusive. maxExclusive. Don't use sh:pattern

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions