edi3 / edi3-json-ld-ndr

GNU General Public License v3.0
0 stars 2 forks source link

Generate common @context to be published alongside the @graph #19

Open nissimsan opened 3 years ago

nissimsan commented 3 years ago

@Kseniya Shychko, @Roman et al., let me just elaborate on what I raised on the call…

schema.org publishes both:

The latter is simple a common context which I can use, provided I call my API attributes the same names which schema.org recommends

So, for example, I could just go ahead and label my attribute edi3:consigment, and then through our standard context that would resolve into https://edi3.org/vocab/#consignment

… This only works if I can and want to use the term consignment. If I wanted to call that attribute something else (like, say, shipment or hullaBulla ) I’d need to introduce my own context which includes: "hullaBulla": {"@id": "https://edi3.org/vocab/#consignment"}

But as long as I can make my specs use common attr naming (consignment), I shouldn't have (and don't want) to create my own @context.