Sha256: 722e6336aaa674fa3bb9b50968bc425911a7bb2ea7431c89e5cbd04f7c6780fa

Contents?: true

Size: 1.96 KB

Versions: 5

Compression:

Stored size: 1.96 KB

Contents

{
  "QA_CONFIG_VERSION": "2.1",
  "prefixes": {
    "nlmmesh": "http://id.nlm.nih.gov/mesh/vocab#",
    "vivo": "http://vivoweb.org/ontology/core#"
  },
  "term": {
    "url": {
      "@context": "http://www.w3.org/ns/hydra/context.jsonld",
      "@type":    "IriTemplate",
      "template": "http://services.ld4l.org/ld4l_services/mesh_lookup.jsp?uri={term_uri}",
      "variableRepresentation": "BasicRepresentation",
      "mapping": [
        {
          "@type":    "IriTemplateMapping",
          "variable": "term_uri",
          "property": "hydra:freetextQuery",
          "required": true
        }
      ]
    },
    "qa_replacement_patterns": {
      "term_id": "term_uri"
    },
    "term_id": "URI",
    "results": {
      "id_ldpath":    "nlmmesh:identifier ::xsd:string",
      "label_ldpath": "nlmmesh:prefLabel ::xsd:string"
    }
  },
  "search": {
    "url": {
      "@context": "http://www.w3.org/ns/hydra/context.jsonld",
      "@type": "IriTemplate",
      "template": "http://services.ld4l.org/ld4l_services/mesh_batch.jsp?{?query}&{?maxRecords}&{?lang}",
      "variableRepresentation": "BasicRepresentation",
      "mapping": [
        {
          "@type": "IriTemplateMapping",
          "variable": "query",
          "property": "hydra:freetextQuery",
          "required": true,
          "encode": true
        },
        {
          "@type": "IriTemplateMapping",
          "variable": "maxRecords",
          "property": "hydra:freetextQuery",
          "required": false,
          "default": "20"
        },
        {
          "@type": "IriTemplateMapping",
          "variable": "lang",
          "property": "hydra:freetextQuery",
          "required": false,
          "default": "en"
        }
      ]
    },
    "qa_replacement_patterns": {
      "query":   "query"
    },
    "results": {
      "id_ldpath":    "nlmmesh:identifier ::xsd:string",
      "label_ldpath": "nlmmesh:prefLabel ::xsd:string",
      "sort_ldpath":  "vivo:rank ::xsd:string"
    }
  }
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
qa_server-2.2.3 lib/generators/qa_server/templates/config/authorities/linked_data/mesh_nlm_ld4l_cache.json
qa_server-2.2.2 lib/generators/qa_server/templates/config/authorities/linked_data/mesh_nlm_ld4l_cache.json
qa_server-2.2.1 lib/generators/qa_server/templates/config/authorities/linked_data/mesh_nlm_ld4l_cache.json
qa_server-2.2.0 lib/generators/qa_server/templates/config/authorities/linked_data/mesh_nlm_ld4l_cache.json
qa_server-2.1.0 lib/generators/qa_server/templates/config/authorities/linked_data/mesh_nlm_ld4l_cache.json