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

Optimize AxiomTranslator#containsONTObject(..) and AxiomTranslator#findONTObject(..) for the case of named triple #20

Closed
sszuev opened this issue Sep 19, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@sszuev
Copy link
Contributor

sszuev commented Sep 19, 2020

If subject and object are URIs then there is no need to iterate for searching.

This is an optimization for the direct mode (i.e. when cache is disabled).
And it is, probably, the last thing for the 2.1.0 release

Update: add simplified contains/find for the case if the subject and object are anonymous individuals - since they are unique within the system and does not require complex hashCode/equlas.

For a case when triples has one anonymous expression (as subject or object), the optimization is also needed, but this can be next issue.

@sszuev sszuev added the enhancement New feature or request label Sep 19, 2020
sszuev added a commit that referenced this issue Sep 27, 2020
…lator for the case when declarations are not allowed in settings
sszuev added a commit that referenced this issue Sep 29, 2020
…f search-optimization base-functionality (see issue #20) + some other cosmetic changes
sszuev added a commit that referenced this issue Oct 1, 2020
sszuev added a commit that referenced this issue Oct 17, 2020
…ect(..) and AxiomTranslator#findONTObject(..) (#20)
@sszuev
Copy link
Contributor Author

sszuev commented Oct 21, 2020

rdfs:subPropertyOf: 4bd932f

sszuev added a commit that referenced this issue Oct 22, 2020
sszuev added a commit that referenced this issue Oct 23, 2020
…s for n-ary and individuals axioms + more tests
sszuev added a commit that referenced this issue Oct 24, 2020
sszuev added a commit that referenced this issue Oct 29, 2020
sszuev added a commit that referenced this issue Oct 29, 2020
@sszuev
Copy link
Contributor Author

sszuev commented Oct 29, 2020

There are following axiom types unhandled:

  • DisjointUnion
  • SubPropertyChainOf
  • HasKey
  • NegativeObjectPropertyAssertion
  • NegativeDataPropertyAssertion
  • Rule

there are no named main triple for these axioms;
also all of them are rare - i.e. standard searching would be efficient, no need any optimization.

done

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

No branches or pull requests

1 participant