json ld - Two properties, one type -


when author , publisher of article 1 , same, microdata it’s possible markup in following manner:

<span itemprop="author publisher" itemscope="" itemtype="http://schema.org/organization"> <span itemprop="name">name of organization</span> </span> 

is there option other following when using json-ld?

"author" : {   "@type" : "organization",   "name" : "name of organization" }, "publisher" : {   "@type" : "organization",   "name" : "name of organization" }, 

there's no equivalent functionality in json-ld. depending on whether have identifiers entities or not, might able leverage reverse properties achieve same. generally, however, wouldn't advise use such "hacks".

{   "@context": [     "http://schema.org/",     { "publisherof": { "@reverse": "publisher", "@type": "@id" } }   ],   "@id": "/book",   "author" : {     "@type" : "organization",     "name" : "name of organization",     "publisherof": "/book"   } } 

Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -