Open danielbakas opened 2 years ago
I suspect this may be related to: https://github.com/inrupt/solid-client-js/pull/1545
Though it might be worth testing if this works for you:
const thing = getThing(dataset, getSourceIri(dataset) + "_:Thing")
Also related: https://github.com/inrupt/solid-client-js/issues/1511
Seems to also be in https://github.com/inrupt/solid-client-js/issues/948
Search terms you've used
Bug description
I was trying to iterate all things from a Dataset, but
getThing
throws an error if the subject URI is a Blank Node (_:example
)To Reproduce
resource
with a thingThing
with a Blank Node as subject:_:Thing
const thing = getThing(dataset, "_:Thing")
Expected result
A Thing with a Blank Node as subject URI and no errors.
Actual result
The following error:
Error: Expected a valid URL to identify a Thing, but received: [_:Thing].
Environment
Additional information
https://jeff-zucker.solidcommunity.net/sp4/glossary-data.ttl
which has a few Blank Nodes as subjects