Contains methods to parse the objects of a metadata graph according to the mapping type.
More...
|
JObject | ParseLiteralNode (string label, string type, ILiteralNode literalNode) |
| Parses literal nodes depending on the needed Elasticsearch type specified in the mapping for a label. More...
|
|
JObject | ParseBoolean (string label, ILiteralNode literalNode) |
| Parses a literal node into a boolean and adds second field for a written representation of the label and boolean value. More...
|
|
Contains methods to parse the objects of a metadata graph according to the mapping type.
◆ DataTypeParser()
SemanticSearchImplementation.DataTypeParser.DataTypeParser |
( |
RdfClient |
RDFClient | ) |
|
|
inline |
◆ Parse()
Parses the node given the mapping and profile.
- Parameters
-
label | The label of the field. |
node | The node which needs to be converted into a (list of) literal. |
indexMapper | The ElasticsearchIndexMapper . |
profile | The specific applicationprofile the node belongs to. |
- Returns
- A JSON object containing the label (key) and the corresponding literal/list of literals (value).
◆ ParseBoolean()
JObject SemanticSearchImplementation.DataTypeParser.ParseBoolean |
( |
string |
label, |
|
|
ILiteralNode |
literalNode |
|
) |
| |
|
inlineprivate |
Parses a literal node into a boolean and adds second field for a written representation of the label and boolean value.
- Parameters
-
label | The label of the property which is used as field. |
literalNode | The literal node which needs to be parsed. |
- Returns
- A JSON object containing the label (key) and the corresponding boolean (value) as well as a written variant.
◆ ParseDate()
JObject SemanticSearchImplementation.DataTypeParser.ParseDate |
( |
string |
label, |
|
|
ILiteralNode |
literalNode |
|
) |
| |
|
inline |
Parses a literal node into a date and adds fields for day, month and year.
- Parameters
-
label | The label of the property which is used as field. |
literalNode | The literal node which needs to be parsed. |
- Returns
- A JSON object containing the label (key) and the corresponding date (value) as well as pairs for day, year and month.
◆ ParseInt()
JObject SemanticSearchImplementation.DataTypeParser.ParseInt |
( |
string |
label, |
|
|
ILiteralNode |
literalNode |
|
) |
| |
|
inline |
Parses a literal node into an integer.
- Parameters
-
label | The label of the property which is used as field. |
literalNode | The literal node which needs to be parsed. |
- Returns
- A JSON object containing the label (key) and the corresponding integer (value).
◆ ParseLiteralNode()
JObject SemanticSearchImplementation.DataTypeParser.ParseLiteralNode |
( |
string |
label, |
|
|
string |
type, |
|
|
ILiteralNode |
literalNode |
|
) |
| |
|
inlineprivate |
Parses literal nodes depending on the needed Elasticsearch type specified in the mapping for a label.
- Parameters
-
label | The label of the property which is used as field. |
type | The type specified in the Elasticsearch mapping for the label. |
literalNode | The literal node which needs to be parsed. |
- Returns
- A JSON object containing the label (key) and the corresponding literal (value).
◆ ParseString()
JObject SemanticSearchImplementation.DataTypeParser.ParseString |
( |
string |
label, |
|
|
ILiteralNode |
literalNode |
|
) |
| |
|
inline |
Parses a literal node into a string.
- Parameters
-
label | The label of the property which is used as field. |
literalNode | The literal node which needs to be parsed. |
- Returns
- A JSON object containing the label (key) and the corresponding string (value).
◆ _RDFClient
RdfClient SemanticSearchImplementation.DataTypeParser._RDFClient |
|
private |
The documentation for this class was generated from the following file: