public enum TripleTableForm extends Enum<TripleTableForm> implements java.util.function.Supplier<TripleTable>, java.util.function.Predicate<Set<TupleSlot>>
| Enum Constant and Description |
|---|
OSP
Object-subject-predicate.
|
POS
Predicate-object-subject.
|
SPO
Subject-predicate-object.
|
| Modifier and Type | Field and Description |
|---|---|
Set<TupleSlot> |
onePrefix
Prefixes of the pattern for this table form.
|
Set<TupleSlot> |
twoPrefix
Prefixes of the pattern for this table form.
|
| Modifier and Type | Method and Description |
|---|---|
static TripleTableForm |
chooseFrom(Set<TupleSlot> pattern) |
TripleTable |
get() |
static java.util.stream.Stream<TripleTableForm> |
tableForms() |
boolean |
test(Set<TupleSlot> pattern) |
static TripleTableForm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TripleTableForm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfand, isEqual, negate, orpublic static final TripleTableForm SPO
public static final TripleTableForm POS
public static final TripleTableForm OSP
public static TripleTableForm[] values()
for (TripleTableForm c : TripleTableForm.values()) System.out.println(c);
public static TripleTableForm valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic TripleTable get()
get in interface java.util.function.Supplier<TripleTable>public boolean test(Set<TupleSlot> pattern)
test in interface java.util.function.Predicate<Set<TupleSlot>>pattern - public static TripleTableForm chooseFrom(Set<TupleSlot> pattern)
pattern - public static java.util.stream.Stream<TripleTableForm> tableForms()
Licenced under the Apache License, Version 2.0