Re: [dxwg] dcat:byteSize - check constraints (#125)

> A usage scenario in which `dcat:byteSize` is equal to 0 doesn't come to my mind. Is there an exemplary use case to refer to?

@riccardoAlbertoni I thought about such examples in the past when I suggested to use `xsd:nonNegativeInteger` for `dcat:byteSize`.

Use case 1: An automated process creates distributions for datasets by opening files and writing data to them.  Due to a bug in the distribution creation process, some files are opened but no data gets written to them.  A SPARQL query can be written to check for distributions that are suspicious / probably incorrect.  The criteria for finding such suspicious dataset distributions can including checking for the SPARQL filter `filter(?byteSize = 0)`.

Use case 2: A logging process writes a line to a log file for each visitor that visits a particular web page on a particular day.  On Saturday the web page has six visitors, so the log file for that day contains six lines.  On Sunday nobody visits that same web page, so the file for Sunday contains 0 lines (and therefore 0 bytes).  Notice that the empty file is not a bug in this case: it communicates that the web page has 0 visitors.  This empty file could be considered to encode legitimate information.

-- 
GitHub Notification of comment by wouterbeek
Please view or discuss this issue at https://github.com/w3c/dxwg/issues/125#issuecomment-818962026 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 13 April 2021 18:29:48 UTC