Skip to content

Feature Request: Methods for adding GCIs #15

@dosumis

Description

@dosumis

Could existing methods (disjointClasses, subClassOf, equivalentClasses) be extended to take class expression? Currently, doing this doesn't throw an error. It just silently fails:

(Code is Jython - but should be clear to read)

from uk.ac.ebi.brain.core import Brain
test = Brain()
test.addClass("foo")
test.addClass("bar")
test.addObjectProperty("part_of")
test.disjointClasses("part_of some bar", "part_of some foo")
test.subClassOf("part_of some bar", "part_of some foo")
test.equivalentClasses("part_of some bar", "part_of some foo")
test.save("tmp.owl")

=>

Ontology: <brain.owl>
ObjectProperty: part_of
Class: owl:Thing
Class: foo
Class: bar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions