Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README docs do not work for ontology prefixes #18

Open
cmungall opened this issue Jun 6, 2021 · 0 comments
Open

README docs do not work for ontology prefixes #18

cmungall opened this issue Jun 6, 2021 · 0 comments

Comments

@cmungall
Copy link
Collaborator

cmungall commented Jun 6, 2021

Note: this is different than #17

the README has examples

    .prefixes.append(...)

I have found it to be necessary to make an ontology document wrapper and work at a lower level:

    doc = OntologyDocument(schema.CHR, o)
    doc.prefixDeclarations.append(Prefix('refseq', schema.REFSEQ))
    doc.prefixDeclarations.append(Prefix('insdc', schema.INSDC))
    doc.prefixDeclarations.append(Prefix('CHR', schema.CHR))
    doc.prefixDeclarations.append(Prefix('NCBITaxon', schema.NCBITAXON))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant