ASF GitHub Bot commented on RYA-298:

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

    --- Diff: 
    @@ -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

Reply via email to