GitHub user jessehatfield opened a pull request:
https://github.com/apache/incubator-rya/pull/218
RYA-301 owl:ReflexiveProperty inference
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
## Description
1. Added owl:ReflexiveProperty inference: If :hasFamilyMember is reflexive,
then `?x :hasFamilyMember ?y` is true for `?x==?y`. Inference engine now loads
reflexive properties like it does transitive and symmetric properties, and a
visitor expands triples involving reflexive properties to match both when the
triple actually exists or when the subject and object are the same.
2. Minor cleanup to wrap up latest inference changes: added/fixed
configuration constants to enable/disable those inference visitors that were
missing them or using the wrong one; fixed packaging for two test classes.
### Tests
Test rewriting done by ReflexivePropertyVisitor; test that InferenceEngine
correctly determines property types; test queries involving reflexive
properties.
### Links
[Jira](https://issues.apache.org/jira/browse/RYA-301)
### Checklist
- [ ] Code Review
- [ ] Squash Commits
#### People To Reivew
@meiercaleb @pujav65 @ejwhite922 @isper3at
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jessehatfield/incubator-rya
RYA-301-reflexiveproperty-inference
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-rya/pull/218.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #218
----
commit 86b5124015de895a451f2385be1f638c2c95f2ed
Author: Jesse Hatfield <[email protected]>
Date: 2017-08-28T22:46:02Z
RYA-301 owl:ReflexiveProperty inference
----
---
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 [email protected] or file a JIRA ticket
with INFRA.
---