Skip to content

Weird offset in picking prefixes #71

Closed

Description

@matentzn

Given http://purl.obolibrary.org/obo/xao.owl

turned into sql like:

xao.db: xao.owl
	@rm -f .template.db
	@rm -f .template.db.tmp
	RUST_BACKTRACE=full semsql make $@
	@rm -f .template.db
	@rm -f .template.db.tmp

The wrong prefixes are assigned.

For example:

runoak -i sqlite:ontologies/xao.db terms 
ZFA:0005234 ! small secretory cell
ZFA:0005235 ! dorsal telencephalon
...

It should be:

XAO:0005234 ! small secretory cell
XAO:0005235 ! dorsal telencephalon

This is a pretty dangerous error and should be prioritised above everything else.

cc @hrshdhgd

Activity

  1. matentzn commented on Mar 17, 2023

    @matentzn
    ContributorAuthor

    I noticed that given a prefix map, the next prefix in line is picked. I am assuming this is an issue with an index access on the prefix map.

    semsql should be using the curies module for this!

  2. hrshdhgd commented on Mar 20, 2023

    @hrshdhgd
    Collaborator

    Solved by INCATools/ontology-development-kit#833

    The ODK Docker image was published with an old version of semsql. After the PR linked above and after confirming via GH Actions, the latest version of semsql should be shipped via docker and the mangled prefixes should not exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions