Problem/Motivation

Occasionally, some types of content do not have direct mapping to Schema.org type.

For example, Schema.org doesn't have a specific type for bridal shop. Instead, we would mark it up as an instance of LocalBusiness and state it has the additionalType https://www.wikidata.org/wiki/Q56064815 (Bridal shop).

@see https://support.schemaapp.com/support/solutions/articles/33000277321-how...

Proposed resolution

Add additonalType support to Schema.org Blueprints Subtype module.

Update schemadotorg_subtype_schemadotorg_jsonld_schema_type_entity_alter() to check that a subtype is valid Schema.org type, if the subtype is not a valid Schema.org, set the https://schema.org/additionalType property to the subtype.

Remaining tasks

Update chemadotorg_subtype_schemadotorg_jsonld_schema_type_entity_alter()
Write test
Update README.md

User interface changes

N/A

API changes

The https://schema.org/additionalType will be used to JSON-LD.

Data model changes

N/A

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jrockowitz created an issue. See original summary.

jrockowitz’s picture

Status: Active » Needs review
jrockowitz’s picture

  • jrockowitz committed 5371c87c on 1.0.x
    Issue #3382329: Add additonalType support to Schema.org Blueprints...
jrockowitz’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.