Skip to content

Exception while axiom deletion when it reuse external components #5

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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant