Accord-Project / API-Development

API Development Working Area
0 stars 0 forks source link

precise correspondence YAML-JSONLD-TTL #7

Closed VladimirAlexiev closed 6 months ago

VladimirAlexiev commented 7 months ago

Hi @beachtom (cc @Gonsco and @EdliraK and @maximelefrancois86 )! (As continuation to #6)

For every regulation, in addition to a YAML file, we also need a JSONLD and TTL, made automatically and with standard tools. I know Thamer made some tools, but we need to use standard RDF conversion tools to have any success.

How did you make FI2.ttl?

riot

I tried to convert it with this tool, part of Jena:

riot --formatted ttl FI2.jsonld >FI2-riot.ttl

I got a bunch of errors:

I have also sorted FI2-jsonld.ttl by "paragraph" to make it easier to track. Tom, can you check it out and see if it includes all info from JSONLD (especially look for the complex nested structure from #6), and that it doesn't have other problems?

beachtom commented 7 months ago

Hi Vladmir, the TTL is generated by my pipeline - which is in fact just json-ld titanium

https://github.com/filip26/titanium-json-ld

It seems the actual ttl on the github was not up to date with the latest version - can you try again with this version and see if it improved. I will try and improve it also - I did at one point have it working upload to a local graphDB - but something recently seems to have broken it.

VladimirAlexiev commented 7 months ago

@beachtom GraphDB 10.5 (Dec 2023) switched to titanium (actually a fork with improved performance) in order to support JSON-LD 1.1. See https://graphdb.ontotext.com/documentation/10.5/release-notes.html#graphdb-10-5-0.

Proposed solution for the Bad IRI error:

@beachtom Can you add a Makefile in each folder to systematically derive various RDF serializations? To be sure what is derived from what, and using which tool.

maximelefrancois86 commented 7 months ago

@VladimirAlexiev you wrote:

The context does not define the expansion of hasComparator values. @maximelefrancois86 this can be done by declaring it @type:@vocab and then declaring the @vocab namespace for it. Or you can enumerate all values:

Is there any action on me pending to update the file https://github.com/Accord-Project/aec3po/blob/main/src/aec3po.yaml ?

beachtom commented 6 months ago

This is now sorted I think