jargon-sh / issues

The jargon.sh issue tracker
1 stars 0 forks source link

[JSON-LD vocabulary]: vocabulary URI is configurable #11

Open kshychko opened 6 months ago

kshychko commented 6 months ago

It would be very useful if JSON-LD vocabulary URI is configurable because Jargon is used for the generation, but not for publication. So we can get something like "dpp": "https://test.uncefact.org/vocabulary/untp/dpp/" instead of "DigitalProductPassport": "https://jargon.sh/user/unece/DigitalProductPassport/v/working/artefacts/jsonld/render.jsonld#"


{
    "@context": {
        "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
        "owl": "http://www.w3.org/2002/07/owl#",
        "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
        "schema": "https://schema.org/",
        "dpp": "https://test.uncefact.org/vocabulary/untp/dpp/",
        "unece": "https://vocabulary.uncefact.org/"
    },
    "@graph": []
}
kshychko commented 6 months ago

The same settings can be used that were added within #12