-
-
Notifications
You must be signed in to change notification settings - Fork 16
UI Components #28
Comments
We have decided we don't wanna flatten the JSON LD so we can preserve the context and use show the unexpanded properties for better UI. If we are going to not flatten the JSON LD document, maybe it would be good to have a more accurate represenation of what is allowed in JSON LD and what is not. Then we can start to query over JSON LD, to get the things we need like "A list of all properties." But before we can even get there we should probably type the structure. Is there a JSON Schema for JSON LD?Yes?
But it hasn't been updated in a while. SHACL-AF?@millercl said that
So maybe SHACL looks useful in that it can define "shapes" that you can say your JSON LD has to conform to: https://shacl.org/playground/ But the JS library just seems to be used for validating: https://github.com/TopQuadrant/shacl-js I don't wanna validate, I wanna say "Here is a big JSON LD graph, pull out entities with this ID, and combine it with these other graphs who also have entities with this ID. Then show me all properties about this ID, without expanding them, and show me the expanded version, so I can put that on hover" RDFSo it looks like this rdfjs dataset library is the correct way to form a collection of rdf quads and filter them for a certain predicate. There is also this nice library by @rubensworks which can parse JSON LD contexts and use them to compact IRIs. So the logic could go something like this:
|
What do you mean that it can be avoided? We are building a UI to explore linked data in the browser, so that's why we need to understand the data model in the browser. |
Uh oh!
There was an error while loading. Please reload this page.
@type
also linksThe text was updated successfully, but these errors were encountered: