Skip to content

Schema without type #120

@ddeboer

Description

@ddeboer

Hey @karelklima, thanks for this cool library! I just started using it.

In the docs you write:

Setting the RDF type is recommended for optimal performance.

Why, exactly?

What if one wants to query a polymorphic property? E.g. schema:potentialAction takes AchieveAction, AssessAction, ConsumeAction etc.

      potentialAction: {
        "@array": true,
        "@id": schema.potentialAction,
        "@schema": {
          "@type": ???,             // Leaving out @type altogether makes the query really slow.
          ...
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions