Giter VIP home page Giter VIP logo

parenttree's Introduction

ParentTree API

ParentTree API for retreiving a parent tree for a set of concepts

Quick REST test

docker-compose up -d

For swagger documentation

http://localhost:9105/swagger

Curl Requests

JSON

curl -X GET --header 'Accept: application/vnd.ontotext.parenttree+json' --header 'X-Request-ID: 123123' 'http://localhost:9105/parenttree?conceptId=http%3A%2F%2Fontology.ontotext.com%2Fresource%2Ftsk9f4r0xn3c&conceptId=http%3A%2F%2Fontology.ontotext.com%2Fresource%2Ftsk9f4r0xn4c'

Response

{"tree":{"treeNode":{"id":"http://ontology.ontotext.com/resource/tsk9f4r0xn1c"},"children":[{"treeNode":{"id":"http://ontology.ontotext.com/resource/tsk9f4r0xn2c"},"children":[{"treeNode":{"id":"http://ontology.ontotext.com/resource/tsk9f4r0xn4c"},"children":null}]},{"treeNode":{"id":"http://ontology.ontotext.com/resource/tsk9f4r0xn3c"},"children":null}]},"nodes":[{"id":"http://ontology.ontotext.com/resource/tsk9f4r0xn1c","prefLabel":"Well drilling","altLabel":"well-drilling","prefLabelTree":"/Well drilling"},{"id":"http://ontology.ontotext.com/resource/tsk9f4r0xn2c","prefLabel":"Well planning","altLabel":"well-planning","prefLabelTree":"/Well drilling/Well planning"},{"id":"http://ontology.ontotext.com/resource/tsk9f4r0xn3c","prefLabel":"Well site preparation","altLabel":"well-site-preparation","prefLabelTree":"/Well drilling/Well site preparation"},{"id":"http://ontology.ontotext.com/resource/tsk9f4r0xn4c","prefLabel":"Wellbore design","altLabel":"well-bore-design","prefLabelTree":"/Well drilling/Well planning/Wellbore design"}]}```

### XML

curl -X GET --header 'Accept: application/vnd.ontotext.parenttree+xml' --header 'X-Request-ID: 123123' 'http://localhost:9105/parenttree?conceptId=http%3A%2F%2Fontology.ontotext.com%2Fresource%2Ftsk9f4r0xn3c&conceptId=http%3A%2F%2Fontology.ontotext.com%2Fresource%2Ftsk9f4r0xn4c'


#### Response
```

Integration Tests

Running Integration Test

''' mvn clean verify -P integration-test '''

Docker

Build

docker build .

Tag

Get the image id

docker images

Push to quay

Login

docker login -e="." -u="ontotext+ontotext" -p="XXXX" quay.io

tag

docker tag ${IMAGE} parent-tree 

docker tag ${IMAGE} quay.io/ontotext/parent-tree

push to quay

docker push quay.io/ontotext/parent-tree

Run Interactive

docker run --name parent-tree -it parent-tree /bin/bash

Run Daemon

docker run --name parent-tree -d parent-tree 

Shell to docker container

Get container ids

docker ps -a
docker exec -i -t ${CONTAINER_ID} /bin/bash

Invoke

Run via docker-compose

Environment

Create a .env file with the correct environment settings

SOME_THING=XXX

Interactive

docker-compose up

Daemon

docker-compose up -d

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.