uncefact / spec-untp

UN Transparency Protocol
https://uncefact.github.io/spec-untp/
GNU General Public License v3.0
10 stars 9 forks source link

where's the beef? #82

Open VladimirAlexiev opened 2 months ago

VladimirAlexiev commented 2 months ago

(Sorry, I couldn't resist a jokular issue name. But I really like to look at examples, I think they capture the intended semantics of a data model in the most immediate way).

I took the example from #80 about Beef Silverside, converted it to turtle, added this prefixes.ttl:

@prefix unece: <https://vocabulary.uncefact.org/> .
@prefix dpp: <https://test.uncefact.org/vocabulary/untp/dpp/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix puml: <http://plantuml.com/ontology#> .
@prefix cred: <https://www.w3.org/2018/credentials#> .
@prefix rev-list-2020: <https://w3id.org/vc-revocation-list-2020#>.

rdf:nil a puml:Inline.

Then I used rdfpuml and plantuml to convert it to this diagram: beef

I see these issues:

@kshychko after you fix it, give me a new JSONLD example and I'll reconvert it to a diagram.

This is great stuff! Posted on twitter: https://twitter.com/valexiev1/status/1785048031940771843