Skip to content

ONKI Legacy API support using Skosmos REST API

License

Notifications You must be signed in to change notification settings

SemanticComputing/ONKILegacy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ONKILegacy

ONKI Legacy API support using Skosmos REST API

Installing

apt install php7.2-soap
cd soap
php composer.phar self-update
php composer.phar install

Running tests:

pip3 install suds-py3

Additionally the following (partial) virtual host configuration may be of use:

# map /rest to REST API calls
RewriteEngine On
RewriteRule ^/rest/v1/(.*) /var/www/$SKOSMOS_PATH/rest.php/$1

# Rule for HTTP method calls
RewriteRule ^/key-.*/api/v2/http/(.*) /http/http.php/$1?rest_base=$SKOSMOS_API_URL/rest/v1/ [QSA]

# Rule for SOAP method calls
RewriteRule ^/key-.*/api/v1/soap/(.*) /soap/soap.php?vocid=$1&rest_base=$SKOSMOS_API_URL/rest/v1/

# Rule for WSDL file requests (note: query string parameters are preserved)
RewriteRule ^/api/v1/soap/wsdl/$ /soap/onki-wsdl.php?h=$LEGACY_URL [QSA]

# allow caching of static resources for one day
<FilesMatch "(Onki|Create|Concept|Generate|engine).*\.js">
    ExpiresActive On
    ExpiresDefault "access plus 1 day"
</FilesMatch>

About

ONKI Legacy API support using Skosmos REST API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 71.4%
  • PHP 23.6%
  • Python 3.5%
  • CSS 1.5%