Class PluralMultilingualStringFieldStrategy<X>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ConverterWrapper<Object,
Object> protected static final Object
-
Method Summary
Modifier and TypeMethodDescriptionfilterOutInferredValues
(NamedResource subject, Set<Value<?>> values) Returns only values that are not inferred in the repository for the specified subject.toString()
-
Field Details
-
converter
-
LAZILY_LOADED_REFERENCE_PLACEHOLDER
-
-
Method Details
-
filterOutInferredValues
Returns only values that are not inferred in the repository for the specified subject.This method goes through the specified values and if the property represented by this strategy can contain inferred values (i.e.,
FieldSpecification.isInferred()
returns true), it returns only those values that are NOT inferred in the repository.The reasoning of this method is that the current implementation of a property values update is done by removing all its values as asserting new ones extracted from the entity. However, if an attribute value is a mix of inferred and asserted values, this will basically assert values that are already inferred, which is not correct. This method thus removes inferred values from the values passed to the OntoDriver for saving. Note that there is a minor caveat in that one is not able to intentionally assert already inferred values this way, but it is considered not important to work resolve at the moment.
- Parameters:
subject
- Subject whose property values are examinedvalues
- Values to filter- Returns:
- Asserted values
-
toString
-