Skip to main content Link Search Menu Expand Document (external link)

Lookup API

GET /api/dbpedia-lookup

Retrieve entities in the format of DBpedia-Lookup

DBpedia Lookup provides a way of searching through RDF data using natural language search queries. A user can therefore search for resources without having to use or learn SPARQL. This endpoint provides a way to use SANTé in accordance with DBpedia Lookup.

Parameters

Name In Type Required Description
maxResults query integer(int32) true Limit the amount of results
query query string false The natural language search query. Can be left empty, which will return all results.
minRelevance query number(double) false Set the relevance score a document must have to be considered as a result. Can be left empty, which will consider all scores.

Example responses

200 Response

{
  "docs": [
    {
      "score": [
        "string"
      ],
      "refCount": [
        "string"
      ],
      "resource": [
        "string"
      ],
      "typeName": [
        "string"
      ],
      "comment": [
        "string"
      ],
      "label": [
        "string"
      ],
      "type": [
        "string"
      ],
      "category": [
        "string"
      ]
    }
  ]
}

Responses

Status Meaning Description Schema
200 OK The query was successful and returned a result. DbpediaDocumentCollection
400 Bad Request The request contains invalid input. None
500 Internal Server Error There was an issue while processing the query. None

Response Schema