JsonLD.Entities icon indicating copy to clipboard operation
JsonLD.Entities copied to clipboard

Add [Vocabulary] annotation

Open tpluscode opened this issue 8 years ago • 1 comments

As suggested by @asbjornu, it will be good to give users an option to define @vocab using an attribute instead of defining it in the @context:

[Vocabulary("http://schema.org/")]
public class Person
{
}

tpluscode avatar Jan 11 '17 13:01 tpluscode

I'm unsure whether it should simply produce

{
   "@vocab": "http://schema.org/"
}

or work like VocabContext<Person>()

tpluscode avatar Jan 11 '17 13:01 tpluscode