Skip to content

?expand/Resource (expand any internal reference by ID) #235

@cubap

Description

@cubap
{  "label": "Sample Data",
   "@type": "ItemList",
   "forCollection": {
       "value": "Sample Collection"
    },
   "date": 123093091209,
   "seeAlso": {
      "@id": "https://example.com/42",
      "label": { "en": "external resource", "none":"externalatio"},
   },
   "ItemListElement" : [
      {
          "@id": "http://store.rerum.io/v1/id/39339",
          "name": "Sample List Item"
      }, 
      "http://store.rerum.io/v1/id/2322"
   ]
   "__rerum": { ... }
}

Becomes...

{  "label": "Sample Data",
   "@type": "ItemList",
   "forCollection": {
       "value": "Sample Collection"
    },
   "date": 123093091209,
   "seeAlso": {
      "@id": "https://example.com/42", //external, no change
      "label": { "en": "external resource", "none":"externalatio"},
   },
   "ItemListElement" : [ // expanded
      {
          "@id": "http://store.rerum.io/v1/id/39339",
          "name": "Sample List Item",
          "@type": "Potato",
          "value": 11
      }, 
      {
          "@id": "http://store.rerum.io/v1/id/2322",
          "name": "Sample List Item",
          "@type": "Hamsteak",
          "value": "Eleventy"
      }
   ]
   "__rerum": { ... }
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions