openworm / owmeta-core

Core library for owmeta
MIT License
3 stars 2 forks source link

Optionally use class docstrings for `rdfs:comment` on DataObject classes #28

Open mwatts15 opened 3 years ago

mwatts15 commented 3 years ago

In many cases, a DataObject sub-class' definition's docstring may also serve as a rdfs:comment for the corresponding RDF type. This issue is to add an attribute to ContextMappedClass, the DataObject meta-class, which will cause the rdf_type_object for the class to have an rdfs:comment with value equal to the class docstring. The setting for this attribute should not be inherited by sub-classes.