Github user ejwhite922 commented on a diff in the pull request:
https://github.com/apache/incubator-rya/pull/215#discussion_r135055461
--- Diff:
sail/src/main/java/org/apache/rya/rdftriplestore/inference/InferenceEngine.java
---
@@ -1281,4 +1324,34 @@ public void setSchedule(final boolean schedule) {
}
return null;
}
+
+ /**
+ * For a given type, return all sets of types such that owl:oneOf
+ * restrictions on those properties could imply this type. A
enumeration
+ * of all the types that are part of the specified class type.
+ * @param type The type (URI or bnode) to check against the known oneOf
+ * sets.
+ * @return A {@link Set} of {@link Resource} types that represents the
+ * enumeration of resources that belong to the class type.
+ * {@code null} is returned if no enumerations were found for the
specified
+ * type.
+ */
+ public Set<Resource> getEnumeration(final Resource type) {
+ if (enumerations != null) {
+ final Set<Resource> oneOfSet = enumerations.get(type);
+ return oneOfSet;
+ }
+ return null;
--- End diff --
Replaced with an empty set.
---
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.
---