object Query extends Serializable
The Query
companion object provides methods that work on triples.
- Alphabetic
- By Inheritance
- Query
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
- val CHAR_VARIABLE: Char
- val STR_REGEX: String
-
def
hasRegex[TLabel](triple: (TLabel, TLabel, TLabel)): Set[Int]
Determine which parts (s, p, o)/(1, 2, 3) of the triple include regexes, returning the set labels, e.g., {2, 3} that have one.
Determine which parts (s, p, o)/(1, 2, 3) of the triple include regexes, returning the set labels, e.g., {2, 3} that have one. A regex is indicated when a label ends with 'STR_REGEX'.
- triple
the triple to be check for regexes
-
def
hasVariable[TLabel](triple: (TLabel, TLabel, TLabel)): Set[Int]
Determine which parts (s, p, o)/(1, 2, 3) of the triple have variables, returning the set labels, e.g., {2, 3} that have one.
Determine which parts (s, p, o)/(1, 2, 3) of the triple have variables, returning the set labels, e.g., {2, 3} that have one. A variable is indicated when a label starts with 'CHAR_VARIABLE'.
- triple
the triple to be check for variables
-
def
hasWildcard[TLabel](triple: (TLabel, TLabel, TLabel)): Set[Int]
Determine which parts (s, p, o)/(1, 2, 3) of the triple have wildcards, returning the set labels, e.g., {2, 3} that have one.
Determine which parts (s, p, o)/(1, 2, 3) of the triple have wildcards, returning the set labels, e.g., {2, 3} that have one. A wildcard is indicated by the existence of a 'CHAR_WILD' character anywhere in a label.
- triple
the triple to be check for wildcards