[ https://issues.apache.org/jira/browse/RYA-298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16131226#comment-16131226 ]
ASF GitHub Bot commented on RYA-298: ------------------------------------ Github user meiercaleb commented on a diff in the pull request: https://github.com/apache/incubator-rya/pull/197#discussion_r133814275 --- 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 -- Can one of you create a ticket for this? The solution of this is probably not within the scope of this task, but this should be resolved. > 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)