1

We started to use the vocabulary from Schema.org and we are looking for a simple and effective way to reference an object by its identifier or a unique URL.

For example, in the Organization type there is a property employee which refers to Person. We would like to be able to refer to it using a unique identifier instead of the whole object.

What would be the best solution according to Schema.org?

unor
  • 92,415
  • 26
  • 211
  • 360
jackdbernier
  • 1,542
  • 1
  • 17
  • 32

1 Answers1

2

If the Person (resp. the name-value pairs) is defined on the same page, you could use the itemref attribute, containing reference to the id(s):

Elements with an itemscope attribute may have an itemref attribute specified, to give a list of additional elements to crawl to find the name-value pairs of the item.


With Microdata’s itemid attribute you can specify a URL that identifies an item.

However, Microdata requires that vocabularies explicitly specify support of itemid, which Schema.org hasn’t done yet.

Community
  • 1
  • 1
unor
  • 92,415
  • 26
  • 211
  • 360