{

"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_demographics_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":    "skos:prefLabel ::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_demographics_batch.jsp?{?query}&{?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":    "skos:prefLabel ::xsd:string",
    "sort_ldpath":     "vivo:rank ::xsd:string"
  },
  "context": {
    "groups": {
      "hierarchy": {
        "group_label_i18n": "qa.linked_data.authority.locdemographics_ld4l_cache.hierarchy",
        "group_label_default": "Hierarchy"
      }
    },
    "properties": [
      {
        "property_label_i18n": "qa.linked_data.authority.locdemographics_ld4l_cache.preferred_label",
        "property_label_default": "Preferred label",
        "ldpath": "skos:prefLabel :: xsd:string",
        "selectable": true,
        "drillable": false
      },
      {
        "group_id": "hierarchy",
        "property_label_i18n": "qa.linked_data.authority.locdemographics_ld4l_cache.broader",
        "property_label_default": "Broader",
        "ldpath": "skos:broader :: xsd:string",
        "selectable": true,
        "drillable": true,
        "expansion_label_ldpath": "skos:prefLabel ::xsd:string",
        "expansion_id_ldpath": "loc:lccn ::xsd:string"
      },
      {
        "group_id": "hierarchy",
        "property_label_i18n": "qa.linked_data.authority.locdemographics_ld4l_cache.narrower",
        "property_label_default": "Narrower",
        "ldpath": "skos:narrower :: xsd:string",
        "selectable": true,
        "drillable": true,
        "expansion_label_ldpath": "skos:prefLabel ::xsd:string",
        "expansion_id_ldpath": "loc:lccn ::xsd:string"
      },
      {
        "property_label_i18n": "qa.linked_data.authority.locdemographics_ld4l_cache.variant_label",
        "property_label_default": "Variant",
        "ldpath": "madsrdf:hasVariant/madsrdf:variantLabel :: xsd:string",
        "selectable": false,
        "drillable": false
      },
      {
        "property_label_i18n": "qa.linked_data.authority.locdemographics_ld4l_cache.earlier_form",
        "property_label_default": "Earlier form",
        "ldpath": "madsrdf:hasEarlierEstablishedForm/madsrdf:authoritativeLabel :: xsd:string",
        "selectable": false,
        "drillable": false
      },
      {
        "property_label_i18n": "qa.linked_data.authority.locdemographics_ld4l_cache.related",
        "property_label_default": "Related",
        "ldpath": "skos:related/skos:prefLabel :: xsd:string",
        "selectable": false,
        "drillable": false
      },
      {
        "property_label_i18n": "qa.linked_data.authority.locdemographics_ld4l_cache.note",
        "property_label_default": "Note",
        "ldpath": "skos:note :: xsd:string",
        "selectable": false,
        "drillable": false
      },
      {
        "property_label_i18n": "qa.linked_data.authority.locdemographics_ld4l_cache.example",
        "property_label_default": "Example",
        "ldpath": "skos:example :: xsd:string",
        "selectable": false,
        "drillable": false
      },
      {
        "property_label_i18n": "qa.linked_data.authority.locdemographics_ld4l_cache.citation_note",
        "property_label_default": "Citation note",
        "ldpath": "madsrdf:hasSource/madsrdf:citation-note :: xsd:string",
        "selectable": false,
        "drillable": false
      },
      {
        "property_label_i18n": "qa.linked_data.authority.locdemographics_ld4l_cache.citation_source",
        "property_label_default": "Citation source",
        "ldpath": "madsrdf:hasSource/madsrdf:citation-source :: xsd:string",
        "selectable": false,
        "drillable": false
      },
      {
        "property_label_i18n": "qa.linked_data.authority.locdemographics_ld4l_cache.citation_status",
        "property_label_default": "Citation status",
        "ldpath": "madsrdf:hasSource/madsrdf:citation-status :: xsd:string",
        "selectable": false,
        "drillable": false
      },
      {
        "property_label_i18n": "qa.linked_data.authority.locdemographics_ld4l_cache.scheme",
        "property_label_default": "Scheme",
        "ldpath": "madsrdf:isMemberOfMADSScheme/rdfs:label :: xsd:string",
        "selectable": false,
        "drillable": false
      }
    ]
  }
}

}