You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@rya.apache.org by jessehatfield <gi...@git.apache.org> on 2017/08/04 18:04:26 UTC

[GitHub] incubator-rya issue #197: RYA-298, RYA-299 Domain/range inference.

Github user jessehatfield commented on the issue:

    https://github.com/apache/incubator-rya/pull/197
  
    Note that the results of a domain/range query can be huge, and hugely redundant, because: A) there can be many predicates inferring the same type, and we'll query for all of them; and B) even for one predicate, we'll generate a result for each instance of that predicate even if we end up inferring the same resource's type many times. (E.g. in a LUBM dataset, querying for all universities will give you the same solution of :University0 for every triple <?student lubm:degreeFrom :University0>.) Wrapping the query in a Distinct introduces its own computational costs, so the decision to do that is left to the caller.
    
    Some optimizations could be possible if we knew we were starting with a relatively small set of candidates: Asking "does this have the type?" for each candidate could be faster than asking for all the ways of inferring the type. But that optimization is more general than just domain and range queries (and could potentially be generalized even further), so I'd consider something like that outside the scope of this problem.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---