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
Open map (metric: { "string1": "value", "string2": "value"} (see below example: namespace_axiom_count)
The goal for the biolink modelling exercise here would be to generate a json schema with which to check a document of metrics for schema constraints (datatypes etc), but also, to just have a nicely readable documentation of what the metrics mean, with the potential of perhaps using the JSON-LD context more widely to communicate metrics between groups.
The first attempt at dealing with this looks something like this:
id: http://www.obofoundry.org/registry/metrics.yml
name: metrics
types:
mean:
base: float
uri: xsd:float
count:
base: int
uri: xsd:int
string:
base: str
uri: xsd:string
boolean:
base: boolean
uri: xsd:boolean
classes:
metrics:
slots:
- axiom_count
- axiom_types
axiom_type_count:
description: Counting the various axiom types used in the ontology.
slots:
- AnnotationAssertion
- EquivalentClasses
- TransitiveObjectProperty
- SubObjectPropertyOf
- SymmetricObjectProperty
- SubPropertyChainOf
- Declaration
- SubClassOf
- InverseObjectProperties
namespace_axiom_count:
description: The number of axioms used by this ontology, broken down by which namespaces they reference (according the the OBO curiemap). For example, 19 axioms reference at least 1 entity in the BFO namespace.
slots:
axiom_count:
description: The number of axioms in the ontology.
range: count
axiom_types:
description: A list of axiom types used in the ontology.
multivalued: true
AnnotationAssertion:
range: count
EquivalentClasses:
range: count
TransitiveObjectProperty:
range: count
SubObjectPropertyOf:
range: count
SymmetricObjectProperty:
range: count
SubPropertyChainOf:
range: count
Declaration:
range: count
SubClassOf:
range: count
InverseObjectProperties:
range: count
@cmungall @deepakunni3 has already given me some advice on how to go about this use case, which is obviously a bit non-standard.. First of all I find it unsatisfying to have some metrics being slots and others being classes. Secondly, I don't know exactly how to model the namespace_axiom_count case, due to the open set of keys. Deepak recommended to use key/value modelling, but it seems unsatisfactory to bend the perfectly find JSON structure just to fit a modelling framework. What are your thoughts on this?
The text was updated successfully, but these errors were encountered:
There are four different kinds of metrics we need to represent here:
axiom_count
)axiom_types
)axiom_type_count
)namespace_axiom_count
)The goal for the biolink modelling exercise here would be to generate a json schema with which to check a document of metrics for schema constraints (datatypes etc), but also, to just have a nicely readable documentation of what the metrics mean, with the potential of perhaps using the JSON-LD context more widely to communicate metrics between groups.
The first attempt at dealing with this looks something like this:
@cmungall
@deepakunni3 has already given me some advice on how to go about this use case, which is obviously a bit non-standard.. First of all I find it unsatisfying to have some metrics being slots and others being classes. Secondly, I don't know exactly how to model the
namespace_axiom_count
case, due to the open set of keys. Deepak recommended to use key/value modelling, but it seems unsatisfactory to bend the perfectly find JSON structure just to fit a modelling framework. What are your thoughts on this?The text was updated successfully, but these errors were encountered: