Package org.aksw.jenax.constraint.api
Interface VSpace
- All Superinterfaces:
Cloneable,Constrainable
- All Known Subinterfaces:
NVSpace
- All Known Implementing Classes:
VSpaceImpl
A value space intensionally describes a set of values possibly across multiple datatypes.
Because of its set nature, it is possible to form intersections and unions and test
for emptiness.
- Author:
- raven
-
Method Summary
Modifier and TypeMethodDescriptionclone()forDimension(Object dimensionKey) Create a new closed value space, adds the full range of the given dimension and intersect it with 'this'.Domain<?,?> default booleanisEmpty()Whether the set of values described by this value space is empty.booleanisLimitedTo(Object dimensionKey) Whether the value space only has ranges in the dimension with the given key (e.g.<X extends Comparable<X>>
VSpacemapDimensionToNewVSpace(Object fromDimKey, Class<X> itemType, Object toDimKey, Function<com.google.common.collect.Range<X>, com.google.common.collect.Range<X>> mapper) Create a new value space by mapping the values from a given dimension Issue: We don't know if the mapping is surjective - i.e.org.aksw.commons.algebra.allen.AllenRelationReturn a relation for how this space relates to another.stateIntersection(VSpace valueSpace) stateUnion(VSpace valueSpace) Methods inherited from interface org.aksw.jenax.constraint.api.Constrainable
isConflicting
-
Method Details
-
getDomain
Domain<?,?> getDomain() -
clone
VSpace clone()- Specified by:
clonein interfaceConstrainable
-
stateIntersection
- Specified by:
stateIntersectionin interfaceConstrainable
-
stateUnion
- Specified by:
stateUnionin interfaceConstrainable
-
forDimension
Create a new closed value space, adds the full range of the given dimension and intersect it with 'this'. -
relateTo
Return a relation for how this space relates to another. In particular, it allows for testing whether e.g. the values of this space appear all before the values in another one with respect to the domain. The returned relation is the bitwise OR of the Allen relation of each dimension. -
mapDimensionToNewVSpace
<X extends Comparable<X>> VSpace mapDimensionToNewVSpace(Object fromDimKey, Class<X> itemType, Object toDimKey, Function<com.google.common.collect.Range<X>, com.google.common.collect.Range<X>> mapper) Create a new value space by mapping the values from a given dimension Issue: We don't know if the mapping is surjective - i.e. if the src range is unconstrained, the tgt range in that dimension may yet be constrained. -
isLimitedTo
Whether the value space only has ranges in the dimension with the given key (e.g. numeric, iRI, text, ...) -
isEmpty
default boolean isEmpty()Whether the set of values described by this value space is empty. Technically an alias for isConflicting
-