Skip to content

Resolve relative URIs #55

@renyuneyun

Description

@renyuneyun

So, I'm trying to parse a Solid WebID Profile document, which contains many relative URLs (e.g. #me).
The current rdflib implementation does not resolve it to absolute URIs during querying, resulting in empty results if I do the following:

graph.objects(sub: URIRef('https://url.to/profile/card#me'));

It would be best to allow them to be resolved, such as supporting manually setting @base, or allow setting a parameter during parsing. E.g. This is supported in Python's rdflib.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions