Skip to content

Commit

Permalink
Merge pull request #4 from theweekendgeek/master
Browse files Browse the repository at this point in the history
added sdk and plugin info
  • Loading branch information
theweekendgeek committed May 23, 2018
2 parents 0a59c51 + 51bc3f0 commit 58b8505
Show file tree
Hide file tree
Showing 6 changed files with 91 additions and 6 deletions.
2 changes: 1 addition & 1 deletion conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = 'de'
language = 'en'

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down
16 changes: 16 additions & 0 deletions getting_started/how_to_develop_plugins.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Third-Party integrations

It is very easy to integrate aiphilos into a third-party system. To begin you only have to:

### create an aiPhilos account
To be able to develop and test your plugin you will need to create an account on our webseite aiphilos.com. A freemium account should be sufficient to develop and test a working integration.

### get in touch about becoming a affiliate developer
Visit our [webseite](https://www.aiphilos.com/partnerprogramm/entwicklungspartner) and get in touch with us via one of the described methods. You will receive the neccessary information to start developing your third-party integration as an affiliate developer.


### download the neccessary SDK
we provide SDKs to make aiPhilos integration easier. Download the one you need and integrate it into your project.

### start developing!

7 changes: 7 additions & 0 deletions getting_started/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
aiPhilos Integration
====================

aiPhilos is usually utilized via the use of small applications, usually called plugins or addons.
These small applications are then integrated into third party solutions like Shopware and enable them to leverage the capability of aiPhilos semantic search.

.. toctree::
:maxdepth: 1
:name: toc-getting_started

how_to_develop_plugins
shopware
8 changes: 4 additions & 4 deletions index.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
.. aiphilos documentation master file.
aiPhilos Dokumentation
aiPhilos Documentation
======================

Willkommen in der offiziellen aiPhilos-Dokumentation.
Welcome to the official aiPhilos documentation.

.. toctree::
:maxdepth: 2
:caption: Über aiPhilos
:caption: About aiPhilos
:name: sec-about

about/index
Expand All @@ -26,7 +26,7 @@ Willkommen in der offiziellen aiPhilos-Dokumentation.

sdks/index

Index und Verzeichnisse
Index And Directories
=======================

* :ref:`genindex`
Expand Down
10 changes: 10 additions & 0 deletions sdks/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
SDKs
====

Here you'll find a list of our SDKs that are currently available on github_.

.. toctree::
:maxdepth: 1
:name: toc-sdks

php

Need a SDK for another language? Contact us or create it!

.. _github: https://github.com/aiphilos

54 changes: 53 additions & 1 deletion sdks/php.md
Original file line number Diff line number Diff line change
@@ -1 +1,53 @@
# aiPhilos PHP
# aiPhilos PHP-SDK

[![Build Status](https://travis-ci.org/aiphilos/api-sdk-php.svg?branch=master)](https://travis-ci.org/aiphilos/api-sdk-php) [![Latest Stable Version](https://poser.pugx.org/aiphilos/api-sdk-php/v/stable)](https://packagist.org/packages/aiphilos/api-sdk-php) [![Total Downloads](https://poser.pugx.org/aiphilos/api-sdk-php/downloads)](https://packagist.org/packages/aiphilos/api-sdk-php) [![Latest Unstable Version](https://poser.pugx.org/aiphilos/api-sdk-php/v/unstable)](https://packagist.org/packages/aiphilos/api-sdk-php) [![License](https://poser.pugx.org/aiphilos/api-sdk-php/license)](https://packagist.org/packages/aiphilos/api-sdk-php)

Currently, **aiPhilos** provides two sets of APIs:
- **items** provides a real-time database and search engine using the **semantics** API (see below) improving search results and indexing through understanding natural language, adding natural language analysis and Artificial Intelligence as a component to understand your data set
- **semantics** can split natural human language input into machine-readable chunks and attach additional information usable to deepen natural language understanding in your application (tokenization, part of speech tagging, word classes and categories, named entity recognition, lexicographical data, synonyms/hypernyms/hyponyms, similarity and sentiment data, and learned knowledge)

## Installation
The easiest way to install this library is to use [composer](https://getcomposer.org/).

```json
{
"require": {
"aiphilos/api-sdk-php": "1.*"
}
}
```

## Usage
### Semantics (Semantic analysis of natural language input)

#### Creating and configuring the client
```php
// Create client
$client = new Aiphilos\Api\Semantics\Client();

// Configure client
$client->setAuthCredentials('user', 'pass');
$client->setDefaultLanguage('de-de');
```

#### Parsing a single string
```php
$res = $client->parseString('Ordner');
```

#### Parsing multiple strings
```php
$res = $client->parseStrings(array('Ordner leitz', 'tastatur'));

// Alternative
$res = $client->parseStrings(array('example_1' => 'Ordner leitz', 'example_2' => 'tastatur'));
```

#### Using custom implementations for Lexemes and Synsets
```php
Aiphilos\Api\Semantics\LexemeFactory::setDefaultClass('My\Namespace\And\Classname'); // Instance of Aiphilos\Api\Semantics\LexemeInterface
Aiphilos\Api\Semantics\SynsetFactory::setDefaultClass('My\Namespace\And\Classname'); // Instance of Aiphilos\Api\Semantics\SynsetInterface
```

### Items (Database and search engine)
**TBD**

0 comments on commit 58b8505

Please sign in to comment.