Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect query results - Literal value accidentally converted to URI #1334

Open
binh-vu opened this issue Dec 27, 2024 · 1 comment
Open

Comments

@binh-vu
Copy link

binh-vu commented Dec 27, 2024

Version: 7.2.14

I encounter a problem that literal values accidentally converted to URIs if there is an URI with the same value.

Here is an example for reproducibility.

  1. Insert the data: INSERT { <https://mrdata.usgs.gov/mrds> <https://example.com/uri> "https://mrdata.usgs.gov/mrds" . }.
  2. Query the data: SELECT ?s ?p ?o WHERE { ?s ?p ?o . VALUES ?s { <https://mrdata.usgs.gov/mrds> } }

This is the results in JSON:

{
  "head": {
    "link": [],
    "vars": [
      "s",
      "p",
      "o"
    ]
  },
  "results": {
    "distinct": false,
    "ordered": true,
    "bindings": [
      {
        "s": {
          "type": "uri",
          "value": "https://mrdata.usgs.gov/mrds"
        },
        "p": {
          "type": "uri",
          "value": "https://example.com/uri"
        },
        "o": {
          "type": "uri",
          "value": "https://mrdata.usgs.gov/mrds"
        }
      }
    ]
  }
}
@HughWilliams
Copy link
Collaborator

We are looking into this ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants