Skip to content

URI conversion should be done in more robust ways #11

@cjmyers

Description

@cjmyers

All the URI, URIprefix, namespace, displayId, and version code in the Util package is very fragile and is should be rewritten.

Here are some notes on needed improvements:

<URI prefix>/<displayId>/<version>
<namespace>/<collection>/<displayId>

SBOL 2 to 3
<namespace> = <URI prefix>
<collection> = <version>

<namespace> = <domain>
<collection> = (<URI prefix> - <domain>)/<version>

for (namespace in set of namespaces)
if <URI prefix> startsWith namespace then
<namespace> = namespace
<collection> = (<URI prefix> - <namespace>)/version
set backport version to <version>

for (namespace in set of namespaces)
if <URI prefix> startsWith namespace then
<namespace> = namespace
<collection> = (<URI prefix> - <namespace>)
set backport version to <version>

SBOL 3 to 2
<URI prefix> = <namespace>/(<collection> - <backport version>)
<displayId> = <displayId>
<version> = <backport version>

<https://synbiohub.org/public/igem/BBa_J23101\> <http://sboltools.org/backport#sbol2version\> "1"

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