Skip to content

Better URI resolution and comparison #33

@justincy

Description

@justincy

In ResourceReference.matches() and some other places, we assume that ResourceReferences are fragment identifiers. However they can also be absolute or relatives URIs. In those latter cases we fail to properly compare them.

Can we provide generic utilities that can solve these problems? I'm worried that we won't always be able to compare.


The current case I'm struggling with is a response for Person Matches from the FamilySearch API. The response is essentially a list of GEDCOM X documents with some metadata in the Atom format. Relationship resource references have absolute URIs even though the persons being pointed to are in the document (yet relationships from other endpoints use fragments identifiers). I can create an FS custom solution for comparing absolute person URIs to person IDs or just use the resourceId property but neither of those will necessarily work for GEDCOM X data from other sources.

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