{

"QA_CONFIG_VERSION": "2.2",
"service_uri": "http://ld4l.org/ld4l_services/cache",
"prefixes": {
  "loc":     "http://id.loc.gov/vocabulary/identifiers/",
  "madsrdf": "http://www.loc.gov/mads/rdf/v1#",
  "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/loc_name_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":       "loc:lccn ::xsd:string",
    "label_ldpath":    "madsrdf:authoritativeLabel ::xsd:string",
    "altlabel_ldpath": "madsrdf:hasVariant/madsrdf:variantLabel ::xsd:string",
    "sameas_ldpath":   "skos:exactMatch ::xsd:anyURI"
  }
},
"search": {
  "url": {
    "@context": "http://www.w3.org/ns/hydra/context.jsonld",
    "@type": "IriTemplate",
    "template": "http://services.ld4l.org/ld4l_services/loc_name_batch.jsp?{?query}&{?maxRecords}&{?startRecord}&{?entity}&{?lang}",
    "variableRepresentation": "BasicRepresentation",
    "mapping": [
      {
        "@type": "IriTemplateMapping",
        "variable": "query",
        "property": "hydra:freetextQuery",
        "required": true,
        "encode": true
      },
      {
        "@type": "IriTemplateMapping",
        "variable": "entity",
        "property": "hydra:freetextQuery",
        "required": false,
        "default": ""
      },
      {
        "@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",
    "subauth": "entity",
    "start_record": "startRecord",
    "requested_records": "maxRecords"
  },
  "total_count_ldpath": "vivo:count",
  "results": {
    "id_ldpath":    "loc:lccn ::xsd:string",
    "label_ldpath": "madsrdf:authoritativeLabel ::xsd:string",
    "sort_ldpath":  "vivo:rank ::xsd:string"
  },
  "context": {
    "groups": {
      "dates": {
        "group_label_i18n": "qa.linked_data.authority.locnames_ld4l_cache.dates",
        "group_label_default": "Dates"
      },
      "places": {
        "group_label_i18n": "qa.linked_data.authority.locnames_ld4l_cache.places",
        "group_label_default": "Places"
      }
    },
    "properties": [
      {
        "property_label_default": "Preferred label",
        "property_label_i18n": "qa.linked_data.authority.locnames_ld4l_cache.type_label",
        "ldpath": "madsrdf:authoritativeLabel :: xsd:string",
        "selectable": true,
        "drillable": false
      },
      {
        "property_label_default": "Type",
        "property_label_i18n": "qa.linked_data.authority.locnames_ld4l_cache.type_label",
        "ldpath": "rdf:type :: xsd:string",
        "selectable": false,
        "drillable": false
      },
      {
        "property_label_default": "Variant label",
        "property_label_i18n": "qa.linked_data.authority.locnames_ld4l_cache.variant_label",
        "ldpath": "madsrdf:hasVariant/madsrdf:variantLabel :: xsd:string",
        "selectable": false,
        "drillable": false
      },
      {
        "property_label_default": "Citation note",
        "property_label_i18n": "qa.linked_data.authority.locnames_ld4l_cache.citation_note",
        "ldpath": "madsrdf:hasSource/madsrdf:citation-note :: xsd:string",
        "selectable": false,
        "drillable": false
      },
      {
        "property_label_default": "Citation source",
        "property_label_i18n": "qa.linked_data.authority.locnames_ld4l_cache.citation_source",
        "ldpath": "madsrdf:hasSource/madsrdf:citation-source :: xsd:string",
        "selectable": false,
        "drillable": false
      },
      {
        "property_label_default": "Citation status",
        "property_label_i18n": "qa.linked_data.authority.locnames_ld4l_cache.citation_status",
        "ldpath": "madsrdf:hasSource/madsrdf:citation-status :: xsd:string",
        "selectable": false,
        "drillable": false
      },
      {
        "property_label_default": "Earlier established form",
        "property_label_i18n": "qa.linked_data.authority.locnames_ld4l_cache.ealier_established_form",
        "ldpath": "madsrdf:hasEarlierEstablishedForm/madsrdf:authoritativeLabel :: xsd:string",
        "selectable": false,
        "drillable": false,
        "subauth": ["conference"]
      },
      {
        "property_label_default": "Later established form",
        "property_label_i18n": "qa.linked_data.authority.locnames_ld4l_cache.later_established_form",
        "ldpath": "madsrdf:hasLaterEstablishedForm/madsrdf:authoritativeLabel :: xsd:string",
        "selectable": false,
        "drillable": false,
        "subauth": ["conference"]
      },
      {
        "property_label_default": "Editorial note",
        "property_label_i18n": "qa.linked_data.authority.locnames_ld4l_cache.editorial_note",
        "ldpath": "madsrdf:editorialNote :: xsd:string",
        "selectable": false,
        "drillable": false
      }
    ]
  },
  "subauthorities": {
    "geographic":     "Geographic",
    "conference":     "ConferenceName"
  }
}

}