Skip to content

https://archive.org/services/purl/goodrelations/v1.owl doesn't exist #428

Closed
@ollietb

Description

@ollietb

API Platform version(s) affected: latest schema.phar

Description

I'm trying to generate classes from an OpenAPI yaml file and when I run the command

./schema.phar generate src2/ ./config/schema.yaml  -vv

I get the following error

PHP Warning:  SimpleXMLElement::__construct(https://archive.org/services/purl/goodrelations/v1.owl): Failed to open stream: Connection refused in phar:///var/www/html/schema.phar/src/Schema/Generator.php on line 51
PHP Warning:  SimpleXMLElement::__construct(): I/O warning : failed to load external entity "https://archive.org/services/purl/goodrelations/v1.owl" in phar:///var/www/html/schema.phar/src/Schema/Generator.php on line 51

In Generator.php line 51:
                                     
  [Exception]                        
  String could not be parsed as XML  
                                     

Exception trace:
  at phar:///var/www/html/schema.phar/src/Schema/Generator.php:51
 SimpleXMLElement->__construct() at phar:///var/www/html/schema.phar/src/Schema/Generator.php:51
 ApiPlatform\SchemaGenerator\Schema\Generator->generate() at phar:///var/www/html/schema.phar/src/Command/GenerateCommand.php:132
 ApiPlatform\SchemaGenerator\Command\GenerateCommand->execute() at phar:///var/www/html/schema.phar/vendor/symfony/console/Command/Command.php:326
 Symfony\Component\Console\Command\Command->run() at phar:///var/www/html/schema.phar/vendor/symfony/console/Application.php:1063
 Symfony\Component\Console\Application->doRunCommand() at phar:///var/www/html/schema.phar/vendor/symfony/console/Application.php:320
 Symfony\Component\Console\Application->doRun() at phar:///var/www/html/schema.phar/vendor/symfony/console/Application.php:174
 Symfony\Component\Console\Application->run() at phar:///var/www/html/schema.phar/bin/schema:26
 require() at /var/www/html/schema.phar:17

How to reproduce

Download an OpenAPI spec and create a schema.yaml

openApi:
    file: 'Street-OpenAPI.yaml'

Then run the generate command.

Is https://archive.org/services/purl/goodrelations/v1.owl an old url that doesn't exist anymore?

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