Open Jackamus29 opened 5 months ago
Describe the bug When querying a subject by it's IRI with @base, it appears that the IRI is not correctly expanded.
@base
To Reproduce
Create ledger with data
{ "ledger": "base-test", "@context": { "@base": "https://flur.ee/" }, "insert": [ { "@id": "freddy", "@type": "Yeti", "name": "Freddy" } ] }
Query using @base and IRI literal
{ "from": "base-test", "@context": { "@base": "https://flur.ee/" }, "select": { "freddy": [ "*" ] } }
=>
[]
where+select query with @base and IRI literal
where
select
{ "from": "base-test", "@context": { "@base": "https://flur.ee/" }, "where": { "@id": "freddy", "?p": "?o" }, "select": [ "?p", "?o" ] }
Expected behavior The expected results are shown when manually expanding the IRI:
{ "from": "base-test", "@context": { "@base": "https://flur.ee/" }, "select": { "https://flur.ee/freddy": [ "*" ] } }
[ { "@id": "freddy", "@type": "Yeti", "name": "Freddy" } ]
This issue could be related to https://github.com/fluree/core/issues/53
Describe the bug When querying a subject by it's IRI with
@base
, it appears that the IRI is not correctly expanded.To Reproduce
Create ledger with data
Query using
@base
and IRI literal=>
where
+select
query with@base
and IRI literal=>
Expected behavior The expected results are shown when manually expanding the IRI:
=>