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

[question] what are possible use-cases of ConcurrentOWLOntologyImpl ? #1110

Closed
sszuev opened this issue Jul 21, 2023 · 3 comments
Closed

[question] what are possible use-cases of ConcurrentOWLOntologyImpl ? #1110

sszuev opened this issue Jul 21, 2023 · 3 comments
Labels

Comments

@sszuev
Copy link
Contributor

sszuev commented Jul 21, 2023

Is it important for OWLAPI ?
Which applications use this functionality?

see also owlcs/ont-api#51

@ignazio1977
Copy link
Contributor

ConcurrentOWLOntologyImpl is used when an ontology is accessed by multiple threads, some of which might be making changes to the ontology. (If all threads only read form the ontology, then there's no need to use locks).

Not sure which apps are currently relying on it. There was one such app when the functionality was introduced.

@sszuev
Copy link
Contributor Author

sszuev commented Jul 21, 2023

ConcurrentOWLOntologyImpl is used when an ontology is accessed by multiple threads, some of which might be making changes to the ontology. (If all threads only read form the ontology, then there's no need to use locks).

Not sure which apps are currently relying on it. There was one such app when the functionality was introduced.

Protege with awt\swing events in Event Dispatch Thread?

@ignazio1977
Copy link
Contributor

No it was an app being developed for an academic/commercial partnership. Details are a bit fuzzy as this was approximately 2010, we kept getting concurrent modification exceptions and hashmaps stuck because of add operations happening during get operations.

I think there was a second use case, where locking was required to allow imported ontologies to show as loaded while their imports closure was being loaded, but I can't recall enough details.

There's also the fact that many axiom indexes are lazily built and expensive, meaning that avoiding duplicate work is important, but I don't think the locks as implemented make a difference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants