{ "term": { "url": { "@context": "http://www.w3.org/ns/hydra/context.jsonld", "@type": "IriTemplate", "template": "http://services.ld4l.org/ld4l_services/geonames_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": { "label_predicate": "http://www.geonames.org/ontology#name", "altlabel_predicate": "http://www.geonames.org/ontology#countryCode", "broader_predicate": "http://www.geonames.org/ontology#parentFeature", "sameas_predicate": "http://www.w3.org/2000/01/rdf-schema#seeAlso" } }, "search": { "url": { "@context": "http://www.w3.org/ns/hydra/context.jsonld", "@type": "IriTemplate", "template": "http://services.ld4l.org/ld4l_services/geonames_batch.jsp?query={?query}&entity={?subauth}&maxRecords={?maxRecords}&lang={?lang}", "variableRepresentation": "BasicRepresentation", "mapping": [ { "@type": "IriTemplateMapping", "variable": "query", "property": "hydra:freetextQuery", "required": true }, { "@type": "IriTemplateMapping", "variable": "subauth", "property": "hydra:freetextQuery", "required": false, "default": "all" }, { "@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", "subauth": "subauth" }, "language": ["en"], "results": { "label_predicate": "http://www.geonames.org/ontology#name", "altlabel_predicate": "http://www.geonames.org/ontology#countryCode", "sort_predicate": "http://vivoweb.org/ontology/core#rank", "context": { "Parent": "http://www.geonames.org/ontology#parentADM1", "Parent2": "http://www.geonames.org/ontology#parentADM2", "Parent Country": "http://www.geonames.org/ontology#parentCountry", "Children": "http://www.geonames.org/ontology#childrenFeatures", "Country": "http://www.geonames.org/ontology#countryCode", "Population": "http://www.geonames.org/ontology#population", "Latitude": "http://www.w3.org/2003/01/geo/wgs84_pos#lat", "Longitude": "http://www.w3.org/2003/01/geo/wgs84_pos#long", "Altitude": "http://www.w3.org/2003/01/geo/wgs84_pos#alt", "Feature Class": "http://www.geonames.org/ontology#featureClass", "Feature Code": "http://www.geonames.org/ontology#featureCode" } }, "subauthorities": { "area": "A", "place": "P", "area_and_place": "AP", "water": "H", "park": "L", "road": "R", "spot": "S", "terrain": "T", "undersea": "U", "vegetation": "V", "all": "all" } } }