pyld (current master) does not create typed containers
Opened this issue · 0 comments
satra commented
in the example below, i'm trying to change the graph into an index by node type. but the current pyld processor doesn't appear to do so:
{
"@context": [
{
"@version": 1.1,
"schema": "https://schema.org/",
"records": {
"@id": "@graph",
"@container": "@type"
}
},
"https://openprovenance.org/prov.jsonld",
{
"pydra": "https://s.pydra.org/",
"uuid": "pydra:uuid/",
"task": {
"@id": "prov:activity",
"@type": "@vocab"
},
"monitor": {
"@id": "prov:activity",
"@type": "@vocab"
},
"runtime": {
"@id": "prov:entity",
"@type": "@vocab"
},
"prov:wasGeneratedBy": {
"@id": "prov:wasGeneratedBy",
"@type": "@vocab"
},
"rss_peak_gb": {
"@id": "pydra:rss_peak_gb",
"@type": "xsd:float"
},
"vms_peak_gb": {
"@id": "pydra:vms_peak_gb",
"@type": "xsd:float"
},
"cpu_peak_percent": {
"@id": "pydra:cpu_peak_percent",
"@type": "xsd:float"
}
}
],
"@graph": [
{
"@id": "uuid:589d99d613484aba8c360b72b7c3415f",
"@type": "activity",
"endedAtTime": "2018-12-09T06:01:42.166760",
"startedAtTime": "2018-12-09T06:01:41.926344"
},
{
"@id": "uuid:6d86eec440344c8ebc5a84dd7230494b",
"@type": "entity",
"prov:wasGeneratedBy": "uuid:9b0f825246554e57a1646f647c3fec4c",
"cpu_peak_percent": "1.017E2",
"rss_peak_gb": "2.693176269531250E-02",
"vms_peak_gb": "4.11656951953125E0"
},
{
"@id": "uuid:9b0f825246554e57a1646f647c3fec4c",
"@type": "activity",
"endedAtTime": "2018-12-09T06:01:42.165476",
"startedAtTime": "2018-12-09T06:01:42.151908"
}
],
"@id": "uuid:e64db211f6f8421989d32b2f99e93df0"
}
was expecting the output to look like:
...
"records": {
"activity": [
{
"@id": "uuid:589d99d613484aba8c360b72b7c3415f"
"endedAtTime": "2018-12-09T06:01:42.166760",
"startedAtTime": "2018-12-09T06:01:41.926344"
},
{
"@id": "uuid:9b0f825246554e57a1646f647c3fec4c",
"endedAtTime": "2018-12-09T06:01:42.165476",
"startedAtTime": "2018-12-09T06:01:42.151908"
}
],
"entity": {
"@id": "uuid:6d86eec440344c8ebc5a84dd7230494b",
"cpu_peak_percent": "1.017E2",
"rss_peak_gb": "2.693176269531250E-02",
"vms_peak_gb": "4.11656951953125E0",
"prov:wasGeneratedBy": "uuid:9b0f825246554e57a1646f647c3fec4c"
}
},
"@id": "uuid:e64db211f6f8421989d32b2f99e93df0"