casework / CASE-Mapping-Python

Apache License 2.0
0 stars 3 forks source link

Generic ObservableObjects should be avoided when other classes exist #43

Open ajnelson-nist opened 7 months ago

ajnelson-nist commented 7 months ago

example.py currently yields some graph nodes typed as uco-observable:ObservableObject without further subtyping.

More specific classes should be used when available. However, this might require a less manual maintenance method for aligning the Python class structure with the ontology.

ajnelson-nist commented 4 months ago

E.g., this:

https://github.com/casework/CASE-Mapping-Python/blob/1cfd9b00cbb0d006849fd2e3c56c08cf29c631d6/example.py#L36

should be replaced with:

device_camera = uco.observable.Device()