| Package | Description |
|---|---|
| org.aksw.sparqlify.restriction |
| Modifier and Type | Method and Description |
|---|---|
static <T> ValueSet<T> |
ValueSet.create(boolean isPositive,
T... values) |
ValueSet<T> |
ValueSet.intersect(ValueSet<T> that)
case: positive - positive
Simply take the intersection
case: positive - negative
{1, 2, 3} intersect {not {2}}: -> {1, 3} (positive.removeAll(negative))
case: negative - positive
Same as above
case: negative - negative
Simply take the union
|
ValueSet<T> |
ValueSet.negate() |
ValueSet<T> |
ValueSet.union(ValueSet<T> that)
case: positive - positive
Simply take the union
case: positive - negative
{1, 2, 3} intersect {not {1, 4}}: -> {4} (negative.removeAll(positive))
case: negative - positive
Same as above
case: negative - negative
Simply take the intersection
|
| Modifier and Type | Method and Description |
|---|---|
ValueSet<T> |
ValueSet.intersect(ValueSet<T> that)
case: positive - positive
Simply take the intersection
case: positive - negative
{1, 2, 3} intersect {not {2}}: -> {1, 3} (positive.removeAll(negative))
case: negative - positive
Same as above
case: negative - negative
Simply take the union
|
ValueSet<T> |
ValueSet.union(ValueSet<T> that)
case: positive - positive
Simply take the union
case: positive - negative
{1, 2, 3} intersect {not {1, 4}}: -> {4} (negative.removeAll(positive))
case: negative - positive
Same as above
case: negative - negative
Simply take the intersection
|
Copyright © 2014. All Rights Reserved.