Skip to content
New issue

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

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

Already on GitHub? # to your account

Exception while axiom deletion when it reuse external components #5

Closed
sszuev opened this issue Oct 30, 2019 · 0 comments
Closed

Exception while axiom deletion when it reuse external components #5

sszuev opened this issue Oct 30, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@sszuev
Copy link
Contributor

sszuev commented Oct 30, 2019

The testcase:

    String ns = "http://x#";
    OntologyManager m = OntManagers.createONT();

    OntologyModel o = m.createOntology();
    OntGraphModel g = o.asGraphModel();
    g.createOntClass(ns + "X").addSuperClass(g.createOntClass(ns + "Y"));
    g.write(System.out, "ttl");
    o.axioms().forEach(System.out::println);

    List<RemoveAxiom> changes = o.axioms().map(x -> new RemoveAxiom(o, x)).collect(Collectors.toList());
    m.applyChanges(changes);
    g.write(System.out, "ttl");
    o.axioms().forEach(System.out::println);
@sszuev sszuev added the bug Something isn't working label Oct 30, 2019
@sszuev sszuev changed the title Exception when bulk delete Exception while axiom deletion when it reuse external components Oct 31, 2019
@sszuev sszuev closed this as completed in 1d81a9e Oct 31, 2019
sszuev added a commit that referenced this issue Oct 31, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant