Turtle parsing problem

Stardog 7.3.0

There seems to be a problem parsing turtle. It won't parse with and @ style prefix in all caps but it loads fine if it's lowercase

@PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

doesn't load but

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

loads fine.

The newer style

prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>

and

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

Seem to be fine as well.

This is due to compliance with the Turtle spec where old-style prefix declarations are case-sensitive but new-style prefix definitions are case-insensitive as explained in this section:

  1. SPARQL uses case insensitive keywords, except for ' a '. Turtle's @prefix and @base declarations are case sensitive, the SPARQL derived PREFIX and BASE are case insensitive.

There is an option in the Stark API to make Turtle-style prefix declarations case-insensitive too but this option cannot be changed at the database level.

Best,
Evren

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.