Harold-Solbrig / funowl

Pythonic representation of OWL through the OWL functional syntax
Creative Commons Zero v1.0 Universal
50 stars 5 forks source link

README docs do not work for ontology prefixes #18

Open cmungall opened 3 years ago

cmungall commented 3 years ago

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))