Skip to content

Commit

Permalink
- AEM: Removed isAemObjectJsonFull
Browse files Browse the repository at this point in the history
  • Loading branch information
alegauss committed Dec 22, 2023
1 parent 7af6c6e commit 7b283e4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 32 deletions.
48 changes: 25 additions & 23 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Viglet Team <[email protected]>
:organization: Viglet Turing
:toclevels: 5
:toc-title: Table of Content
:viglet-version: 0.3.8
:viglet-version: 0.3.7

[preface]
image:https://img.shields.io/badge/Download-Release%20{viglet-version}-blue?style=for-the-badge&logo=Java[link="https://viglet.com/turing/download/"]
Expand All @@ -12,9 +12,9 @@ image:https://img.shields.io/github/last-commit/openturing/turing.svg?style=for-
image:https://img.shields.io/github/actions/workflow/status/openturing/turing/build.yml?branch=0.3.7&style=for-the-badge&logo=GitHub[link="https://github.com/openturing/turing/actions/workflows/build.yml"]
image:https://img.shields.io/badge/Sonar-Code%20Quality-brightgreen?style=for-the-badge&logo=SonarCloud[link="https://sonarcloud.io/organizations/viglet-turing/projects"]

= Preface
== Preface

Viglet Turing ES (https://openviglet.github.io/turing/) is an open source solution (https://github.com/openturing), which has Semantic Navigation and Chatbot as its main features. You can choose from several NLPs to enrich the data. All content is indexed in Solr as search engine.
Viglet Turing ES (https://openviglet.github.io/turing/) is an open source solution (https://github.com/openturing), which has Semantic Navigation and Chat bot as its main features. You can choose from several NLPs to enrich the data. All content is indexed in Solr as search engine.

:numbered:

Expand All @@ -28,7 +28,8 @@ Technical documentation on Turing ES is available at https://openviglet.github.i

To run Turing ES, just execute the following lines:

```shell
[source,shell]
----
# Turing App
mvn -Dmaven.repo.local=D:\repo spring-boot:run -pl turing-app -Dskip.npm
Expand All @@ -45,16 +46,17 @@ ng serve console
## Search
ng serve sn
## Chatbot
## Chat bot
ng serve converse
```
----
=== Docker Compose

You can start the Turing ES using MariaDB, Solr and Nginx.

```shell
[source,shell]
----
docker-compose up
```
----

=== URLs

Expand Down Expand Up @@ -82,7 +84,7 @@ It transforms data into insights for better decision-making and information mana
Website: https://www.opentext.com/

=== CoreNLP
CoreNLP is your one stop shop for natural language processing in Java! CoreNLP enables users to derive linguistic annotations for text, including token and sentence boundaries, parts of speech, named entities, numeric and time values, dependency and constituency parses, coreference, sentiment, quote attributions, and relations. CoreNLP currently supports 6 languages: Arabic, Chinese, English, French, German, and Spanish.
CoreNLP is your one-stop shop for natural language processing in Java! CoreNLP enables users to derive linguistic annotations for text, including token and sentence boundaries, parts of speech, named entities, numeric and time values, dependency and constituency parses, coreference, sentiment, quote attributions, and relations. CoreNLP currently supports 6 languages: Arabic, Chinese, English, French, German, and Spanish.

Website: https://stanfordnlp.github.io/CoreNLP/,

Expand All @@ -98,7 +100,7 @@ Website: https://polyglot.readthedocs.io

== Documents and OCR

It can read PDFs and Documents and convert to plain text and also it uses OCR to detect text in images and images into documents.
It can read PDFs and Documents and convert to plain text, and also it uses OCR to detect text in images and images into documents.

== Semantic Navigation

Expand Down Expand Up @@ -126,14 +128,14 @@ OpenText WEM Listener to publish content to Viglet Turing.

Learn more at https://docs.viglet.com/turing/connectors/#wem

==== Wordpress
Wordpress plugin that allows you to index posts.
==== WordPress
WordPress plugin that allows you to index posts.

Learn more at https://docs.viglet.com/turing/connectors/#wordpress


=== Named Entity Recognition (NER)
With NLP it is possible to detect entities such as:
With NLP, it is possible to detect entities such as:

* People
* Places
Expand Down Expand Up @@ -181,7 +183,7 @@ Turing ES detects Entities of OpenText Blazon Documents using OCR and NLP, gener
[[turing-console]]
== Turing ES Console

Turing ES has many components: Search Engine, NLP, Converse (Chatbot), Semantic Navigation
Turing ES has many components: Search Engine, NLP, Converse (Chat bot), Semantic Navigation

[[turing-console-login]]
=== Login
Expand All @@ -197,7 +199,7 @@ image::img/screenshots/turing-login.png[Login]
=== Search Engine

==== Configuration
Search Engine is used by Turing to store and retrieve data of Converse (Chatbot) and Semantic Navigation Sites.
Search Engine is used by Turing to store and retrieve data of Converse (Chat bot) and Semantic Navigation Sites.

[#img-se]
.Search Engine Page
Expand All @@ -211,7 +213,7 @@ It is possible create or edit a Search Engine with following attributes:
| Attribute | Description
| Name | Name of Search Engine
| Description | Description of Search Engine
| Vendor | Select the Vendor of Search Engine. For now it only supports Solr.
| Vendor | Select the Vendor of Search Engine. For now, it only supports Solr.
| Host | Host name where the Search Engine service is installed
| Port | Port of Search Engine Service
| Language | Language of Search Engine Service.
Expand All @@ -232,15 +234,15 @@ image::img/screenshots/turing-sn.png[Semantic Navigation Page]

The Detail of Semantic Navigation Site contains the following attributes:

.Semantic Navitation Site Detail
.Semantic Navigation Site Detail
[%header,cols=2*]
|===
| Attribute | Description
| Name | Name of Semantic Navigation Site.
| Description | Description of Semantic Navigation Site.
| Search Engine | Select the Search Engine that was created in Search Engine Section. The Semantic Navigation Site will use this Search Engine to store and retrieve data.
| NLP | Select the NLP that was created in NLP Section. THe Semantic Navigation Site will use this NLP to detect entities during indexing.
| Thesaurus | If will use Thesaurus.
| Thesaurus | If you use Thesaurus.
| Language | Language of Semantic Navigation Site.
| Core | Name of core of Search Engine where will be stored and retrieved the data.
|===
Expand All @@ -250,15 +252,15 @@ The Detail of Semantic Navigation Site contains the following attributes:
===== Fields Tab

Fields Tab contains a table with the following columns:
.Semantic Navitation Site Fields Columns
.Semantic Navigation Site Fields Columns
[%header,cols=2*]
|===
| Column Name | Description
| Type | Type of Field. It can be:

- NER (Named Entity Recognition) used by NLP.

- Seach Engine used by Solr.
- Search Engine used by Solr.
| Field | Name of Field.
| Enabled | If the field is enabled or not.
| MLT | If this field will be used in MLT.
Expand All @@ -269,14 +271,14 @@ Fields Tab contains a table with the following columns:

When click in Field appear a new page with Field Details with the following attributes:

.Semantic Navitation Site Fields Detail Attributes
.Semantic Navigation Site Fields Detail Attributes
[%header,cols=2*]
|===
| Attribute | Description
| Name | Name of Field
| Description | Description of Field
| Type | Type of Field. It can be: `INT`, `LONG`, `STRING`, `DATE` and `BOOL`
| Multi Valued | If is a array
| Multi Valued | If is an array
| Facet Name | Name of Label of Facet (Filter) on Search Page.
| Facet | To use this field like a facet (filter)
| Highlighting | If this field will show highlighted lines.
Expand All @@ -293,7 +295,7 @@ When click in Field appear a new page with Field Details with the following attr

Contains the following attributes:

.Semantic Navitation Site Appearance Attributes
.Semantic Navigation Site Appearance Attributes
[%header,cols=3*]
|===
| Section | Attribute | Description
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,21 +208,13 @@ private void getChildrenFromJson(String nodePath, JSONObject jsonObject) {
jsonObject.toMap().forEach((key, value) -> {
if (!key.startsWith(JCR)) {
String nodePathChild = nodePath + "/" + key;
if (isAemObjectJsonFull(jsonObject, key)) {
getNodeFromJson(nodePathChild,
jsonObject.getJSONObject(key));
} else {
getNodeFromJson(nodePathChild,
TurAemUtils.getInfinityJson(nodePathChild, hostAndPort, username, password));
}

}
});
}

private static boolean isAemObjectJsonFull(JSONObject jsonObject, String key) {
return jsonObject.has(key) && jsonObject.getJSONObject(key).has(JCR_CONTENT);
}

private void prepareIndexObject(CTDMappings ctdMappings, AemObject aemObject) {
switch (Objects.requireNonNull(contentType)) {
case CQ_PAGE:
Expand Down

0 comments on commit 7b283e4

Please sign in to comment.