Skip to content

Parsing error on prefix:N.N syntax #647

Open
@paulwilton

Description

@paulwilton

I noticed this turtle/N3 syntax fails to parse

@prefix myprefix: <http://www.example.com/ontologies/test/> .
<http://example.com/data/> myprefix:version myprefix:1.18 .

with error: "Bad syntax: EOF found in middle of path syntax"
this syntax is used in many open source / public domain ontologies for describing ontology / definition versions

if the value of the statement is fully qualified
<http://example.com/data/> myprefix:version <http://www.example.com/ontologies/test/1.18> .
it parses ok, it is the prefix / qname style syntax that throws the parsing error

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