Skip to content

QLever CLI Ignores FORMAT Field in Qleverfile #2493

@MPvHarmelen

Description

@MPvHarmelen

Summary

QLever CLI version 0.5.32 ignores FORMAT = nq in Qleverfile and defaults to -F ttl, causing index build failures for N-Quads data.

Reproduction Steps

  1. Create data.nq:
<http://example.com/s1> <http://example.com/p> "Value 1" <http://example.com/g1> .
<http://example.com/s2> <http://example.com/p> "Value 2" <http://example.com/g1> .
<http://example.com/s3> <http://example.com/p> "Value 3" <http://example.com/g2> .
  1. Create Qleverfile:
[data]
NAME = format-bug-test

[index]
INPUT_FILES = data.nq
CAT_INPUT_FILES = cat data.nq
FORMAT = nq
  1. Run qlever index

Expected Behavior

Index builds successfully using -F nq flag (as specified in Qleverfile).

Actual Behavior

Index build fails with parse error. Docker command shows -F ttl instead of -F nq:

docker run ... -c 'cat data.nq | IndexBuilderMain ... -F ttl -f - | ...'
ERROR: Parse error at byte position 75: Parsing failed before end of input

Workaround

Pass format explicitly on command line:

qlever index --format nq

This correctly uses -F nq and builds successfully.

Environment

  • QLever CLI: 0.5.32
  • Platform: Linux with Docker

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