Re: JSON to JSON-LD

Thanks Orie, that’s a real treasure trove!

-Rinke

--
Rinke Hoekstra
Lead Architect – Knowledge
ELSEVIER - Amsterdam
r.hoekstra@elsevier.com<mailto:r.hoekstra@elsevier.com>

Emails can arrive at all hours, but at Elsevier we respect your personal time. Feel free to respond to this email during your normal working hours.

From: Orie Steele <orie@transmute.industries>
Date: Wednesday, 19 January 2022 at 16:26
To: Mike Prorock <mprorock@mesur.io>
Cc: Joshua Tomlin <jtomlin@omnifederal.com>, public-json-ld-wg@w3.org <public-json-ld-wg@w3.org>
Subject: Re: JSON to JSON-LD

*** External email: use caution ***



https://github.com/transmute-industries/verifiable-data/tree/main/packages/jsonld-schema<https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftransmute-industries%2Fverifiable-data%2Ftree%2Fmain%2Fpackages%2Fjsonld-schema&data=04%7C01%7Cr.hoekstra%40elsevier.com%7C7bbe2e983753490dae2c08d9db5faf91%7C9274ee3f94254109a27f9fb15c10675d%7C0%7C0%7C637782027658230012%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=vQTHile84oJqwjrw5eJKPInyg1k4l25WdTbBUTZfmSk%3D&reserved=0> (JSON Schema <-> JSON-LD)
https://github.com/google/schema-dts<https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fgoogle%2Fschema-dts&data=04%7C01%7Cr.hoekstra%40elsevier.com%7C7bbe2e983753490dae2c08d9db5faf91%7C9274ee3f94254109a27f9fb15c10675d%7C0%7C0%7C637782027658230012%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=v5aYCQ%2FaxS0rf238E%2B5vfkiPhp8ABgDiKsZ08P0GmFQ%3D&reserved=0>
https://www.npmjs.com/package/react-structured-data<https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2Freact-structured-data&data=04%7C01%7Cr.hoekstra%40elsevier.com%7C7bbe2e983753490dae2c08d9db5faf91%7C9274ee3f94254109a27f9fb15c10675d%7C0%7C0%7C637782027658230012%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=IWCHaH2UOIqgB%2FNDZlN0Is2v21gsb0Y670rL7mXcp%2BM%3D&reserved=0>
https://www.npmjs.com/package/hylar<https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2Fhylar&data=04%7C01%7Cr.hoekstra%40elsevier.com%7C7bbe2e983753490dae2c08d9db5faf91%7C9274ee3f94254109a27f9fb15c10675d%7C0%7C0%7C637782027658230012%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=2Yrhko4aBZIl%2BgFfHzfkAiNzGOp6B0vQH3FfLlE0is0%3D&reserved=0> (not exactly what you asked for, but one of my favorite related projects).

The naive approach is to just push in an `@vocab` and use arrays more than maps.

IMO, it's harder to make JSON-LD from other data sources, than it is to convert from JSON-LD to other data sources... same is true of RDF.

OS
[https://mailfoogae.appspot.com/t?sender=ab3JpZUB0cmFuc211dGUuaW5kdXN0cmllcw%3D%3D&type=zerocontent&guid=9a501896-7ccb-49c1-86ac-12c1c7dac312]ᐧ

On Wed, Jan 19, 2022 at 8:26 AM Mike Prorock <mprorock@mesur.io<mailto:mprorock@mesur.io>> wrote:
Looping in Orie as the react json-ld guy
Mike Prorock
mesur.io<https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmesur.io%2F&data=04%7C01%7Cr.hoekstra%40elsevier.com%7C7bbe2e983753490dae2c08d9db5faf91%7C9274ee3f94254109a27f9fb15c10675d%7C0%7C0%7C637782027658230012%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=DPNDUJW7gpFcLPQ2r7JjUHmLr%2FVpPc%2FkpTFEQ%2FVZjFA%3D&reserved=0>

On Wed, Jan 19, 2022, 09:00 Joshua Tomlin <jtomlin@omnifederal.com<mailto:jtomlin@omnifederal.com>> wrote:
Dear w3,

    Are there libraries out there that can transform data into JSON-LD? I'm currently working with React and we're lost when attempting to generate data(ex. XML, Lists, JSON) into JSON-LD form. Please let me know if you need any additional information from me.

Thanks,
Joshua Tomlin



--
ORIE STEELE
Chief Technical Officer
www.transmute.industries

[https://drive.google.com/a/transmute.industries/uc?id=1hbftCJoB5KdeV_kzj4eeyS28V3zS9d9c&export=download]<https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.transmute.industries%2F&data=04%7C01%7Cr.hoekstra%40elsevier.com%7C7bbe2e983753490dae2c08d9db5faf91%7C9274ee3f94254109a27f9fb15c10675d%7C0%7C0%7C637782027658230012%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=pMppT8ZbubhoyUqvQvIRcJRLF73Z%2BfUUssOoek84Q2M%3D&reserved=0>

________________________________

Elsevier B.V. Registered Office: Radarweg 29, 1043 NX Amsterdam, The Netherlands, Registration No. 33158992, Registered in The Netherlands.

Received on Thursday, 20 January 2022 07:45:17 UTC