Skip to content
This repository was archived by the owner on Feb 17, 2026. It is now read-only.
This repository was archived by the owner on Feb 17, 2026. It is now read-only.

Instructions for setting variables do not work #172

@AronBuzogany

Description

@AronBuzogany

I have installed the package as suggested in the README and have the following version:

"sparqljs": "^3.7.1"

In the README it says that we can set the variables as such:

parsedQuery.variables = ['?mickey'];

But this gives me the following error:

object is undefined

By looking at the parsedQuery.variables array I have found that I could set the variable as such:

parsedQuery.variables = [{termType: "Variable", value: "mickey"}];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions