Closed PonteIneptique closed 2 years ago
I don't think there is an easy way to achieve that, unfortunately.
One way out would be to not use the same attribute name, e.g. use lang
(as in HTML) as an alias to @language
, and language
for dct:language
.
If using the same attribute is unavoidable, I would push the alias down to every property that needs it (example in playground), but that's induces quite some redundancy.
If you still want to alias language
to @language
at the top level, you need to override it in the scoped context of dublincore
, and then override it again for every property expecting a langString (example in playground).
Thanks @pchampin, that's definitely what I thought. I guess we'll go for @lang
in the main @context
then :)
Hello :) First of all, I am very very not used to JSON-LD
@context
, I have been on the receiving end of JSON-LD content more than on writing useful@context
.In the context of our API Specification, we are trying to figure out how to have the
@language
property under adct:*
property mapped tolanguage
while keepinglanguage
at the "root" level of the mapped vocabulary todct:language
.As this is very confusing, here is an example:
My current tries drove me to something like this
I'd be most thankful if you could help us on this specific task.
If this is the wrong canal for such a question, please accept my apologies.