I've got this json-ld:
{ "@id": "http://www.example.com/john-doe",
"@type": "http://xmlns.com/foaf/0.1/Person",
"http://xmlns.com/foaf/0.1/name": "John Doe",
"http://xmlns.com/foaf/0.1/age": {
"@value": "42",
"@kind": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"},
"http://xmlns.com/foaf/0.1/knows" : [
{ "@id": "http://www.example.com/charlie-brown" },
{ "@id": "http://www.example.com/jane-doe" }
]
}
I have to write the context so that the below json-ld is valid.
{ "@context" : "context to write....",
"@id": "john-doe",
"@type": "person",
"name": "John Doe",
"age": "42",
"knows": ["charlie-brown", "jane-doe"]
}
I've write a solution but it's incomplete, and I can't figure out how to write a full solution, hope that someone can help me.