buda-base / owl-schema

BDRC Ontology Schema
11 stars 2 forks source link

using typed integers? #35

Closed eroux closed 7 years ago

eroux commented 7 years ago

Should we keep xsd:positiveInteger instead of xsd:integer in the data?

A few info I gathered this morning:

If we keep the type, jsonld documents will look like

"workNumberOfVolumes" : {
  "@type" : "xsd:positiveInteger",
  "@value" : "1"
},

instead of

"workNumberOfVolumes" : 1

based on that I propose to make the ranges xsd:integer all the time and to use SHACL rules in the future to check some ranges. wdyt?

xristy commented 7 years ago

+1 I'll make the changes in the owl doc

eroux commented 7 years ago

Reopening for 3 more properties: volumePagesIntro, volumePagesTbrcIntro and volumePagesText have xsd:nonNegativeInteger as Range.