You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 25, 2018. It is now read-only.
AbstractEntity should implement Entity all entity classes should extend AbstractEntity
Entity is_a ClassInstance where ClassInstance is defined as:
An abstract class for anything that can be described as a boolean combination of ontology classes
Which rather covers everything and anything. Usage of ClassInstance is not completely uniform - GenomicEntity and Publication aren't marked as ClassInstance but everything else in condition, entity, environment and evidence packages extend from ClassInstance so most likely these are omissions.
So:
Should GenomicEntity be a ClassInstance (I think yes, and then given that I'll create an AbstractEntity as per this ticket.)
Should Publication be a ClassInstance (maybe? Probably yes.)
Should all classes extending ClassInstance have their own @JsonldType (Probably. Again, this is sporadic in the code, but then we have issues of mismatch i.e. org.phenopackets.evidence.Publication could be associated with IAO:0000311 but is probably better less constrained as a IAO:0000310 however if not then it can be better described in ClassInstance.types)
It seems like something should be a class instance only if you want to be able to provide a list of types and negated types. You probably wouldn't need that for Publication, right?
Currently I don't think we are doing anything with the @JsonldType annotations. We don't output @type properties for anything.
Might want to have a OntologyClass.notOf(id, label) builder for general negated types. Can then ask the OntologyClass if it's negated intead of adding it to a negated list.
Also consider using Decorator where Entity is decorated instead of all this inheritance on an AbstractEntity.
(child_of: #56)
AbstractEntity
should implementEntity
all entity classes should extendAbstractEntity
Entity
is_aClassInstance
whereClassInstance
is defined as:Which rather covers everything and anything. Usage of
ClassInstance
is not completely uniform -GenomicEntity
andPublication
aren't marked asClassInstance
but everything else incondition
,entity
,environment
andevidence
packages extend fromClassInstance
so most likely these are omissions.So:
GenomicEntity
be aClassInstance
(I think yes, and then given that I'll create an AbstractEntity as per this ticket.)Publication
be aClassInstance
(maybe? Probably yes.)ClassInstance
have their own @JsonldType (Probably. Again, this is sporadic in the code, but then we have issues of mismatch i.e. org.phenopackets.evidence.Publication could be associated with IAO:0000311 but is probably better less constrained as a IAO:0000310 however if not then it can be better described inClassInstance.types
)@cmungall, @selewis, @balhoff - opinions?
The text was updated successfully, but these errors were encountered: