Azure / opendigitaltwins-building

Open Digital Twins Definition Language (DTDL) RealEstateCore Ontology
MIT License
155 stars 44 forks source link

Make OWL2DTDL generate writeable properties #6

Closed hammar closed 4 years ago

hammar commented 4 years ago

Developer comment:

I reviewed some of the DTDL files generated by OWL2DTDL. The DTDL generated by OWL2DTDL omits the writable property, thereby making the property read-only. Is there a Datatype property equivalent in REC that we can use to toggle the writable property in DTDL?

My response:

In an OWL or RDF model, the notion of a property being "writable" or "non-writable" doesn't really make sense -- it is just a data model, such things would be handled by overlying authorization mechanisms. I guess the most flexible approach would be to make all OWL data properties generate writable DTDL Properties, that is, to add writable:true on all of the DTDL properties.

To do: implement writeable properties as per above.

hammar commented 4 years ago

Writable properties are in b5df3e593c3ce09de24835a46c5d6050d8e0ef86. Writable properties w/ native JSON types are in above mentioned commits.