If a Product is a Drug?

9 views
Skip to first unread message

Tony McCreath

unread,
Jun 21, 2020, 7:33:31 PM6/21/20
to Semantic Search Marketing
Say you sell a drug. You can define schema.org/Drug with all its details, and define schema.org/Product with things like the Offer.

How would you connect the two?  e.g. is the Drug the subjectOf the Product?

Richard Wallis

unread,
Jun 22, 2020, 2:42:34 AM6/22/20
to Tony McCreath, Semantic Search Marketing
Hi Tony,

You would define it as being both a Drug and a Product then have available the properties of both:

{
  "@context": "http://schema.org",
  "@type": ["Drug","Product"],
  "name": "Propanaolol",
  "dosageForm": "Tablet",
  "offers": {
 "@type": "Offer",
 ....
 ....
  },
  ....
  ...


Richard Wallis
Founder, Data Liberate
http://dataliberate.com
Twitter: @rjw



On Mon, 22 Jun 2020 at 00:33, Tony McCreath <to...@websiteadvantage.com.au> wrote:
Say you sell a drug. You can define schema.org/Drug with all its details, and define schema.org/Product with things like the Offer.

How would you connect the two?  e.g. is the Drug the subjectOf the Product?

--
You received this message because you are subscribed to the Google Groups "Semantic Search Marketing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semantic-search-ma...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/semantic-search-marketing/3eb11314-601f-4258-86df-871a4b7036cco%40googlegroups.com.

Tony McCreath

unread,
Jun 22, 2020, 10:36:56 PM6/22/20
to Semantic Search Marketing
Hi Richard,

That was one option I was considering. Nice to get another vote in that direction :-)
Reply all
Reply to author
Forward
0 new messages