Skip to content

misleading error message on missing query file  #646

Description

@VladimirAlexiev

If the file model/objekt.fx doesn't exist, SA returns this error:

sparql-anything -q model/objekt.fx -v location=csv/objekt.csv -o ttl/objekt1.ttl
Exception in thread "main" io.github.basilapi.basil.sparql.UnknownQueryTypeException: Unknown query type:model/objekt.fx
        at io.github.basilapi.basil.sparql.QueryType.guessQueryType(QueryType.java:148)
        at io.github.basilapi.basil.sparql.QueryType.isUpdate(QueryType.java:152)
        at io.github.basilapi.basil.sparql.SpecificationFactory.create(SpecificationFactory.java:24)
        at io.github.sparqlanything.cli.SPARQLAnything.executeQueryWithValues(SPARQLAnything.java:540)
        at io.github.sparqlanything.cli.SPARQLAnything.main(SPARQLAnything.java:729)

Would be better to print "Missing query file: "

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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