Skip to content

File type detection does not recognize JSON in certain cases #2800

Closed
@wetneb

Description

@wetneb

Describe the bug

Creating a project by fetching JSON from certain URLs does not pick the JSON importer by default.

To Reproduce
Steps to reproduce the behavior:

  1. Go to "Create project"
  2. "Web addresses"
  3. Use "https://query.wikidata.org/sparql?query=SELECT%20%3Fitem%20%3Furl%20WHERE%20%7B%0A%20%20%3Fitem%20p%3AP6269%20%5Bps%3AP6269%20%3Furl%20%3B%0A%20%20%20%20%20%20%20%20pq%3AP2700%20wd%3AQ458022%5D.%0A%7D%20LIMIT%20100&format=json"

Current Results

The default importer is "line-based text files"

Expected behavior

The JSON importer should be proposed by default.

Desktop:

  • OS: Windows, Linux

OpenRefine :

  • Version 3.3, still present in master

Additional context
Encountered in this video: https://www.twitch.tv/videos/659297903

Metadata

Metadata

Assignees

Labels

Type: BugIssues related to software defects or unexpected behavior, which require resolution.importAbout importers in general - add a label for the data format if available

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions