Hi. In the world of developers JSON is a prominent member. For Linked Data space JSON-LD is important. Has anyone in this community done work to combine the two? The idea is to add LD part into the tools used by developers. To make their JSON for APIs and messages KG aware. And developers can make the connection to KG concepts, classes, properties as design is done. Thanks.
No but for a similar reason we did combine JASON-LD with JATS XML schema
Hi Einar, you might find this article interesting. It compares JSON-LD to JSON schema which is an essential part of the REST / OpenAPI world: https://dashjoin.medium.com/json-schema-schema-org-json-ld-whats-the-difference-e30d7315686a
Thanks Ashleigh F.. I see the good need in science writing also. I look into it.
Thanks Andreas E..
Thanks Quentin R.. Interesting path to help developers.
IMO JSON-LD is snake oil because it tricks teams into treating RDF as JSON tree. it is all to easy to put syntax over substance and that is recipe for trouble because any graph can be represented as multiple JSON documents (tree < graph)
it works for a read-only use case of turning existing JSON into RDF by augmenting it with a @context
otherwise I stand with what Katariina K. said in her talk. it is crucial to think in graph and, by extensions, also code graph.
the only sane way I think is to really adopt graph as the abstract model and implement against it that way. nodes & edges
I was thinking though that shacl might be a good way to define rest interface and nouts/outputs that consume and/or produce data from graph. thoughts?
馃憤
I have seen that recently and was definitely planning to implement myself. my ideas include using content negotiation by profile (W3C draft) to allow clients to choose how to represent a resource. for example
GET /person/tomasz
Host: example.com
Accept-Profile: https://example.com/shape/person-minimal
alternatively, the new QUERY method (IETF draft) could offer a GraphQL-like interface so that any arbitrary shape could be requested
QUERY /person/tomasz
[
a sh:NodeShape ;
... properties to include in response
] .