Skip to content

Unable to load GeoSPARQL TTL #42

@flamsens

Description

@flamsens

Parsing the GeoSPARQL ontology as TTL throws an error:

<?php
require('vendor/autoload.php');
$g = new \EasyRdf\Graph('https://www.opengis.net/ont/geosparql');
$g->load();

PHP Warning:  Uncaught EasyRdf\Parser\Exception: Turtle Parse Error: illegal subject type: literal on line 122, column 15 in /vendor/sweetrdf/easyrdf/lib/Parser/Turtle.php:340
Stack trace:
#0 /vendor/sweetrdf/easyrdf/lib/Parser/Turtle.php(261): EasyRdf\Parser\Turtle->parseSubject()
#1 /vendor/sweetrdf/easyrdf/lib/Parser/Turtle.php(150): EasyRdf\Parser\Turtle->parseTriples()
#2 /vendor/sweetrdf/easyrdf/lib/Parser/Turtle.php(116): EasyRdf\Parser\Turtle->parseStatement()
#3 /vendor/sweetrdf/easyrdf/lib/Graph.php(252): EasyRdf\Parser\Turtle->parse()
#4 /vendor/sweetrdf/easyrdf/lib/Graph.php(387): EasyRdf\Graph->parse()
#5 php shell code(1): EasyRdf\Graph->load()
#6 {main}
  thrown in vendor/sweetrdf/easyrdf/lib/Parser/Turtle.php on line 340

The Turtle file loads here: https://service.tib.eu/webvowl/#iri=http://www.opengis.net/ont/geosparql

Metadata

Metadata

Assignees

No one assigned

    Labels

    parserParser related, most likely parsing failed

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions