Skip to content

SCHEMA_ORG_URI link broken #206

@bechir

Description

@bechir

API Platform version(s) affected: master (> v2.2.2)

Hello everyone,
The schema.org files naming and contents have changed (see https://schema.org/docs/developers.html#defs)
And now we have an 404 error when we try to generate types

In Graph.php line 354:                                                                                   
  [EasyRdf\Http\Exception (404)]                                                   
  HTTP request for https://schema.org/version/latest/schema.rdf failed: Not Found  
Exception trace:
  at ../vendor/easyrdf/easyrdf/lib/Graph.php:354
 EasyRdf\Graph->load() at ../vendor/api-platform/schema-generator/src/Command/GenerateTypesCommand.php:146

Possible Solution

final class TypesGeneratorConfiguration implements ConfigurationInterface
{
    /**
     * @see https://schema.org/version/latest/schema.rdf
     */
    public const SCHEMA_ORG_URI = 'https://schema.org/version/latest/schemaorg-all-https.rdf';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions