jsonbase icon indicating copy to clipboard operation
jsonbase copied to clipboard

support for JSON-LD

Open jaygray0919 opened this issue 5 years ago • 10 comments

Can we use your database to manage an aggregation of JSON-LD statements?

jaygray0919 avatar Jul 03 '20 06:07 jaygray0919

Not supporting yet.

syamdanda avatar Jul 03 '20 07:07 syamdanda

As JSON-LD is a subset of JSON, is it not already supported by the fact that JSON is supported?

melvincarvalho avatar Jul 03 '20 10:07 melvincarvalho

We haven't tested this in those aspects yet, thats why I said not supported. will first work on adding the required enhancements and code reviews to release Alpha version. then ill look into all other aspects. For sure we will check and let you know here..

syamdanda avatar Jul 03 '20 10:07 syamdanda

Can share test data when you are ready

jaygray0919 avatar Jul 04 '20 07:07 jaygray0919

We have a number of 3rd normal form JSON-LD datasets. Google Structured Data Testing Tool properly joins the items to produce a fully de-normalized report. What we would like to do is specify (by query) the JSON-LD statements that are related to a target HTML page. Today, this is done manually. That is the 'test data' referred to above.

It would be very valuable if we could specify a page-specific query that injected the JSON-LD statements into that page.

Here's a wrinkle. Each of our statements is encoded in a <script type='application/ld+json'></script> In other words, each statement is standalone. When all statements have been properly concatenated, we have a processor that generates a single <script> where the individual statements are part of an @graph. So the issue is: how to express (and store) a statement that can be queried? None of the NoSQL databases give us that service (we know from direct experience). That is the use case that we have in mind when we saw your announcement.

Let us know of you need input data to test a new version. We can provide two versions of the same collection of expressions: as multiple scripts and as a single @graph.

jaygray0919 avatar Jul 07 '20 21:07 jaygray0919

JSON-LD is just a subset of JSON

Are you putting each statement in a given document in its own script tag?

JSON-LD is designed to have many statements together in one structured data island. You dont really need @graph you can just put them in an array and give each statement an @id

melvincarvalho avatar Jul 07 '20 23:07 melvincarvalho

@jaygray0919 can you provide some test data and provide expected test results please.

syamdanda avatar Jul 08 '20 04:07 syamdanda

Here are 4 scenarios:

Scenario-1 Here is a report about the structure of a JSON-LD document: https://afdsi.org/sdl-2-NCIT-report/ Here is the source data used by the processor to generate the report: https://afdsi.org/sdl-2-NCIT-data/full-script-local-IRI.txt


Scenario-2 Here is report 2: https://afdsi.org/sdl-1-NALT-report/ Here is data for report 2: https://afdsi.org/sdl-1-NALT-data/data.txt


Scenario-3 Here is report-3: https://afdsi.org/sdl-3-GS1-report/ Here is data-3: https://afdsi.org/sdl-3-GS1-data/


Scenario-4 Here is data: https://afdsi.org/sdl-4-NALT-data/data.txt Here is how it it is rendered on Google SDTT: https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fafdsi.org%2Fsdl-4-NALT-data%2Fdata.txt


Please ask me questions as you work on these examples; I can re-format them to be semantically equivalent but better fit your storage structure

/jay

jaygray0919 avatar Jul 16 '20 11:07 jaygray0919

Are the examples useful, or do I need to put them into another format for your testing?

jaygray0919 avatar Jul 22 '20 13:07 jaygray0919

I think those are enough for initial implementation. will ask you my questions/data on-need basis

syamdanda avatar Jul 22 '20 14:07 syamdanda