Re: WebID default serialization for WebID 2.x

Hi Melvin,

On 21.01.22 13:18, Melvin Carvalho wrote:
> My vote:  JSON(-LD) as default, including structured data islands 
> which are part of the JSON-LD 1.1 spec

a short note on that.

JSON-LD can be serialized in a simple and a complex way, whereas the 
complex way needs a JSON-LD RDF parser to be read and the the other one 
can be handled by a JSON parser (not talking about mere syntactical 
parsing, but effort to get the informational fields out and into the 
programming language variables ).

Adoption might be easier, if people can handle WebID with a non-RDF JSON 
parser.  The problem here is, that JSON-LD serializers might not be able 
to reproduce the JSON-Like JSON-LD form. We looked at Apache Jena, 
recently and found "flatten" to be most interoperable.  I attached an 
example of a JSON-LD file (work in progress, context not working atm). 
This one would often need a non-RDF Json serializer to be produced. Jena 
does not have a serialization option to produce exactly this at the 
moment according to our tests, so we might still switch to the "flatten" 
profile in our project.

-- Sebastian

{
     "@context": "http://downloads.dbpedia.org/databus/context.jsonld",
     "@id": 
"https://databus.dbpedia.org/janni/onto_dep_projectx/dbpedia-ontology/2021-12-06#Dataset",
     "@type": "dataid:Dataset",
     "title": "DBpedia Ontology",
     "abstract": "Registered a version of the DBpedia Ontology into my 
account",
     "description": "Registered a version of the DBpedia Ontology into 
my account. Using markdown:\n  1. This is the version used in [project 
x](http://example.org) as a stable snapshot dependency\n  2. License was 
checked -> CC-BY\n",
     "publisher": "https://databus.dbpedia.org/janni#this",
     "version": 
"https://databus.dbpedia.org/janni/onto_dep_projectx/dbpedia-ontology/2021-12-06",
     "hasVersion": "2021-12-06",
     "license": "http://creativecommons.org/licenses/by/4.0/",
     "distribution": [{
         "@id": 
"https://databus.dbpedia.org/janni/onto_dep_projectx/dbpedia-ontology/2021-12-06#ontology--DEV_type=parsed_sorted.nt",
         "@type": "dataid:Part",
         "file": 
"https://databus.dbpedia.org/janni/onto_dep_projectx/dbpedia-ontology/2021-12-06/ontology--DEV_type=parsed_sorted.nt",
         "format": "nt",
         "compression": "none",
         "downloadURL": 
"https://akswnc7.informatik.uni-leipzig.de/dstreitmatter/archivo/dbpedia.org/ontology--DEV/2021.07.09-070001/ontology--DEV_type=parsed_sorted.nt",
         "byteSize": "4439722",
         "sha256sum": 
"b3aa40e4a832e69ebb97680421fbeff968305931dafdb069a8317ac120af0380",
         "hasVersion": "2021-12-06",
         "dcv:type": "parsed_sorted"
     }]
}

Received on Friday, 21 January 2022 13:03:30 UTC