[ 
https://issues.apache.org/jira/browse/RYA-298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16121677#comment-16121677
 ] 

ASF GitHub Bot commented on RYA-298:
------------------------------------

Github user ejwhite922 commented on a diff in the pull request:

    https://github.com/apache/incubator-rya/pull/197#discussion_r132466657
  
    --- Diff: 
sail/src/main/java/org/apache/rya/rdftriplestore/inference/InferenceEngine.java 
---
    @@ -73,6 +74,8 @@
         private Set<URI> transitivePropertySet;
         private Map<Resource, Map<URI, Value>> hasValueByType;
         private Map<URI, Map<Resource, Value>> hasValueByProperty;
    +    private Map<URI, Set<URI>> domainByType;
    --- End diff --
    
    We should probably start using ConcurrentHashMaps for all these maps.  The 
InferenceEngine is not very thread safe right now.


> Implement rdfs:domain inference
> -------------------------------
>
>                 Key: RYA-298
>                 URL: https://issues.apache.org/jira/browse/RYA-298
>             Project: Rya
>          Issue Type: Sub-task
>          Components: sail
>            Reporter: Jesse Hatfield
>            Assignee: Jesse Hatfield
>
> If a predicate has an *{{rdfs:domain}}* of some class, than the subject of 
> any triple including that predicate belongs to the class.
> If the ontology states that {{:advisor}} has the domain of {{:Person}}, then 
> the inference engine should rewrite queries of the form {{?x rdf:type 
> :Person}} to check for resources which have any {{:advisor}} (as well as any 
> specifically stated to have type {{:Person}} ).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to