Closed msporny closed 3 years ago
If id
is mapped to @id
, the above likely won't do what you want. It would define the percentage properties on the elements themselves. Perhaps the existing chemistry ontologies already model this sort of thing?
{
"@context": "https://w3id.org/traceability/v1",
"observation": [
{
"property": {
"name": "Cadmium",
"formula": "Cd",
"inchi": "InChI=1S/Cd",
"inchikey": "BDOSMKKIYDKNTQ-UHFFFAOYSA-N"
},
"measurement": {
"value": "17.240",
"unitCode": "P1"
}
},
{
"property": {
"name": "Rhodium",
"formula": "Rh",
"inchi": "InChI=1S/Rh",
"inchikey": "MHOVAHRLVXNVSD-UHFFFAOYSA-N"
},
"measurement": {
"value": "82.760",
"unitCode": "P1"
}
}
]
}
Is this better?
please move discussion to the W3C CCG.
I'd model the percent composition differently... as a separate node:
As a side note, it's confusing that those percentages don't add up to 100 in the example, but I'm assuming that's just the autogenerated stuff being wonky?