Open flamsens opened 9 months ago
Thank you for reporting.
I tried your file with Protégé and it was able to read the file. It seems EasyRdf is not able to handle certain Turtle code, such as:
# copied from line 99 - 110 of your ontology file
:gmlLiteral
a rdfs:Datatype ;
rdfs:isDefinedBy
: ,
<http://www.opengis.net/spec/geosparql/1.0/req/geometry-extension/gml-literal> ,
<http://www.opengis.net/spec/geosparql/1.1/req/geometry-extension/gml-literal> ;
skos:definition """A GML serialization of a Geometry object."""@en ;
rdfs:seeAlso <https://portal.ogc.org/files/?artifact_id=20509> ;
skos:prefLabel "GML Literal"@en ;
skos:example
spec11:B.1.2.4 ; # <==== it fails here
.
If I understand Turtle specification (https://www.w3.org/TR/turtle/#grammar-production-PN_LOCAL) correctly, even though the part ...
skos:example
spec11:B.1.2.4 ;
.
.. looks weird, it is valid Turtle.
Unfortunately I don't have the time right now to do more research how to fix this. But if you like to contribute a bug fix, I would be happy to help.
Parsing the GeoSPARQL ontology as TTL throws an error:
The Turtle file loads here: https://service.tib.eu/webvowl/#iri=http://www.opengis.net/ont/geosparql