a short description, you can change this at any time
10K+
Provides a public API for Concordances stored in a Neo4j graph database
This Go app provides an endpoint for the retrieval of concordance data given one or more parameters. This app directly depends upon a connection to a Neo4j database.
Installation assumes that go and dep have been installed and are available on the PATH.
go get -u github.com/Financial-Times/public-concordances-apicd $GOPATH/src/github.com/Financial-Times/public-concordances-apidep ensurego install$GOPATH/bin/public-concordances-api --neo-url={neo4jUrl} --port={port}Both arguments are optional.
--neo-url defaults to http://localhost:7474/db/data, which is the out of box url for a local neo4j instance.
--port defaults to 8080.
Running the tests
docker run --rm \
--publish=7474:7474 --publish=7687:7687 \
-e NEO4J_ACCEPT_LICENSE_AGREEMENT="yes" \
-e NEO4J_AUTH="none" \
neo4j:3.4.10-enterprise
go test -race ./...
Based on the following google doc
- GET /concordances?conceptId={thingUri} - Returns a list of all identifiers for given concept
- GET /concordances?conceptId={thingUri}&conceptId={thingUri}... - Returns a list of all identifiers for each concept provided
- GET /concordances?authority={identifierUri}&identifierValue{identifierValue} - Returns the apiUrl that matches the corresponding identifier
- GET /concordances?authority={identifierUri}&idenifierValue={identifierValue}&idenifierValue={identifierValue} - Returns a list of all apiUrl's for the corresponding identifiers
- GET /__health
- GET /__build-info
- GET /__gtg
Content type
Image
Digest
sha256:44aeb2fbc…
Size
6.5 MB
Last updated
about 11 hours ago
docker pull coco/public-concordances-api