Github user ejwhite922 commented on a diff in the pull request:
https://github.com/apache/incubator-rya/pull/218#discussion_r135878109
--- Diff:
sail/src/main/java/org/apache/rya/rdftriplestore/inference/ReflexivePropertyVisitor.java
---
@@ -0,0 +1,73 @@
+package org.apache.rya.rdftriplestore.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.
+ */
+
+import org.apache.rya.api.RdfCloudTripleStoreConfiguration;
+import org.openrdf.model.URI;
+import org.openrdf.query.algebra.StatementPattern;
+import org.openrdf.query.algebra.Var;
+import org.openrdf.query.algebra.ZeroLengthPath;
+
+/**
+ * Expands the query tree to account for any relevant reflexive properties
+ * known to the {@link InferenceEngine}.
+ *
+ * A reflexive property is a property for which any node can be inferred
to have
+ * reflexively: If :p is a reflexive property, then <?x :p ?x> is true for
all ?x.
+ *
+ * Applies to any statement pattern whose predicate is defined (not a
variable)
+ * and is a reflexive property according to the InferenceEngine. If the
property
+ * is reflexive, then the statement pattern should match when the subject
equals
+ * the object. Therefore, replace the statement pattern with a union of
itself
+ * and a ZeroLengthPath between the subject and object. This union is
similar to
+ * the ZerOrOnePath property path expression in SPARQL: <?x :p? ?y>
matches if
--- End diff --
typo. ZeroOrOnePath
---
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.
---