{

"QA_CONFIG_VERSION": "2.2",
"service_uri": "http://ld4l.org/ld4l_services/cache",
"prefixes": {
  "getty":   "http://vocab.getty.edu/ontology#",
  "skosxl":  "http://www.w3.org/2008/05/skos-xl#",
  "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/getty_lookup.jsp?uri={term_uri}",
    "variableRepresentation": "BasicRepresentation",
    "mapping": [
      {
        "@type":    "IriTemplateMapping",
        "variable": "term_uri",
        "property": "hydra:freetextQuery",
        "required": true,
        "encode":   true
      }
    ]
  },
  "qa_replacement_patterns": {
    "term_id": "term_uri"
  },
  "term_id": "URI",
  "results": {
    "id_ldpath":       "dc:identifier ::xsd:string",
    "label_ldpath":    "^foaf:focus/skosxl:prefLabel/skosxl:literalForm :: xsd:string",
    "altlabel_ldpath": "^foaf:focus/skosxl:altLabel/skosxl:literalForm :: xsd:string",
    "broader_ldpath":  "^foaf:focus/getty:broaderPreferred ::xsd:anyURI"
  }
},
"search": {
  "url": {
    "@context": "http://www.w3.org/ns/hydra/context.jsonld",
    "@type": "IriTemplate",
    "template": "http://services.ld4l.org/ld4l_services/getty_batch.jsp?{?query}&entity=Place&{?maxRecords}&{?startRecord}&{?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": "startRecord",
        "property": "hydra:freetextQuery",
        "required": false,
        "default": "1"
      },
      {
        "@type": "IriTemplateMapping",
        "variable": "lang",
        "property": "hydra:freetextQuery",
        "required": false,
        "default": "en"
      }
    ]
  },
  "qa_replacement_patterns": {
    "query":   "query",
    "start_record": "startRecord",
    "requested_records": "maxRecords"
  },
  "total_count_ldpath": "vivo:count",
  "results": {
    "label_ldpath": "^foaf:focus/skosxl:prefLabel/skosxl:literalForm :: xsd:string",
    "sort_ldpath":  "vivo:rank ::xsd:string"
  },
  "context": {
    "properties": [
      {
        "property_label_i18n": "qa.linked_data.authority.getty_tgn_ld4l_cache.preferred_label",
        "property_label_default": "Preferred label",
        "ldpath": "^foaf:focus/skosxl:prefLabel/skosxl:literalForm :: xsd:string",
        "selectable": true,
        "drillable": false
      },
      {
        "property_label_i18n": "qa.linked_data.authority.getty_tgn_ld4l_cache.variant_label",
        "property_label_default": "Variant Label",
        "ldpath": "^foaf:focus/skosxl:altLabel/skosxl:literalForm :: xsd:string",
        "selectable": false,
        "drillable": false
      },
      {
        "property_label_i18n": "qa.linked_data.authority.getty_tgn_ld4l_cache.parent_body",
        "property_label_default": "Parent body",
        "ldpath": "^foaf:focus/getty:parentString :: xsd:string",
        "selectable": false,
        "drillable": false
      },
      {
        "property_label_i18n": "qa.linked_data.authority.getty_tgn_ld4l_cache.parent_body_abbreviation",
        "property_label_default": "Parent body (abbreviation)",
        "ldpath": "^foaf:focus/getty:parentStringAbbrev :: xsd:string",
        "selectable": false,
        "drillable": false
      },
      {
        "property_label_i18n": "qa.linked_data.authority.getty_tgn_ld4l_cache.place_type",
        "property_label_default": "Place type",
        "ldpath": "^foaf:focus/getty:placeTypePreferred :: xsd:string",
        "selectable": false,
        "drillable": false
      },
      {
        "property_label_i18n": "qa.linked_data.authority.getty_aat_ld4l_cache.broader",
        "property_label_default": "Broader",
        "ldpath": "^foaf:focus/getty:broaderPreferred :: xsd:string",
        "selectable": false,
        "drillable": true,
        "expansion_label_ldpath": "skos:prefLabel ::xsd:string",
        "expansion_id_ldpath": "dc:identifier ::xsd:string"
      }
    ]
  }
}

}