A simple ui5 app to upload documents to SAP HANA to demo its text mining and analysis features.
There is a series of blog posts available that explains the background of this demo application, some of the design considerations, and some information concerning implementation details:
- Part 1 - an Overview: SAP HANA Text Analysis on Documents uploaded by an end-user
- Part 2 - Hands on: Building the backend for a SAP HANA Text Analysis application
- Part 3 - Presenting: A UI5 front-end to upload documents and explore SAP HANA Text Analytics features
- Part 4 - Deep dive: How to upload documents with OData in a UI5 Application
- Create a package with your favorite IDE for SAP HANA (Web IDE, SAP HANA Studio, Eclipse with SAP HANA Developer Tools)
- Download an archive of this repository
- Unzip the archive and transfer its contents to the HANA package you just created.
- If you're using the SAP HANA Web IDE, you might be able to import the .zip directy.
- If you're using SAP HANA Studio or Eclipse with SAP HANA Developer tools, you can right click on the your package and choose checkout. The package will the be available as a folder on your local file system, and you can simply copy the contents of the archive into that folder. The local folder that corresponds to the root of your repository is visible in the repository tab from the HANA Developer Perspective. The path of the folder corresponds to the path of the repository package. In Eclipse, you will need to right click your package and choose "Refresh" so the files will show up there too.
- With
db/CT_FILE.hdbdd
:- update the
namespace
, update the package identifier from"system-local"."public"."rbouman"."ta"
to the name of the package you just created. - modify the
@Schema
from'RBOUMAN'
to whatever schema you want to use. (Create a schema yourself if you don't already have one) - Activate
db/CT_FILE.hdbdd
. In the database catalog, you should now have this table. Hana should have created a corresponding$TA_
table as well.
- update the
- With
service/ta.xsodata
:- In the first entity definition, update the table repository object identifier
"system-local.public.rbouman.ta.db::CT_FILE"
so it matches the location of the table on your system. - In the second entity definition, update the catalog table identifier from
"RBOUMAN"."$TA_system-local.public.rbouman.ta.db::CT_FILE.FT_IDX_CT_FILE"
so it matches the database schema and catalog table name on your system. - Activate
service/ta.xsodata
.
- In the first entity definition, update the table repository object identifier
- You can now activate the package you created to activate all remaining objects, such as the
.xsapp
and.xsaccess
files, as well as theweb
subpackage and all its contents
After installation, you should be able to open the web application. You can do this by navigating to:
http://yourhanahost:yourxsport/path/to/your/package/web/index.html
where:
yourhanahost
is the hostname or IP address of your SAP HANA systemyourxsport
is the port where your HANA's xs engine is running. Typically this is 80 followed by your HANA instance number.path/to/your/package
is the name of the package where you installed the app, but using slashes (/) instead of dots (.) as the separator character.