With
A key-value pair for semantic metadata. Used within @Semantics to define semantic properties of a field.
Kotlin example:
@Semantics([
With("predicate", "works at"),
With("inverse", "employs")
])
val worksAt: CompanyContent copied to clipboard
Java example (on class field):
@Semantics({
@With(key = "predicate", value = "works at"),
@With(key = "inverse", value = "employs")
})
private Company worksAt;Content copied to clipboard
Java example (on interface getter):
public interface Employee {
@Semantics({
@With(key = "predicate", value = "works at"),
@With(key = "inverse", value = "employs")
})
Company getWorksAt();
}Content copied to clipboard