add cart choropleth column cross cube error file folder geo help home lock obs poi rdf remove search slice spreadsheet success table unlock warning

[this is a icon-] developer tool

SPARQL 1.1 Query: Results

Edit query
Query results
s p_blank o_blank
http://statistics.gov.scot/id/statistical-geography/S02002457 http://www.w3.org/1999/02/22-rdf-syntax-ns#type geosparql: Geometry
http://statistics.gov.scot/id/statistical-geography/S02002457 geosparql: asWKT MULTIPOLYGON (((-4.297385123595302 56.17674613036994, -4.296613278512552 56.17627813762563, -4.296726158872245 56.17582128901671, -4.2977192173074235 56.1746664889681, -4.2982803923247355 56.17467231885665, -4.299172878881422 56.17518847439704, -4.300242189995712 56.1753528094619, -4.29980357287608 56.17596581074993, -4.2988770360225335 56.176416503627514, -4.297385123595302 56.17674613036994)), ((-4.005288350070254 56.27494252551447, -4.003954704655798 56.27384083077553, -3.9953672668563383 56.267428528951456, -3.992253487705476 56.26515572459293, -3.988319408074649 56.2621591470443, -3.9764697442246577 56.253272789479574, -3.9721746885855054 56.249486190014075, -3.967312270750103 56.245481496850196, -3.970589487342057 56.24549455405531, -3.974543772361813 56.2461234480867, -3.976214779704403 56.24535089629119, -3.978498849613514 56.245826608524666, -3.983839835581534 56.24892224587988, -3.9901708834832177 56.249305820662826, -3.9994091612561666 56.251268658194405, -4.0090858517815775 56.25079736090735, -4.017398778884434 56.25140795159927, -4.01879172542733 56.24751207058035, -4.018383589534729 56.24374442184289, -4.018015251368922 56.23827768083333, -4.0174568887321485 56.2371724688109, -4.018640726030984 56.23575126530925, -4.015527974010461 56.235163991361176, -4.013959766584948 56.232646370329746, -4.0188934402537235 56.23074167881887, -4.017392384180239 56.226740235500166, -4.017884487137573 56.22658841421211, -4.017503334830743 56.22455471256356, -4.018689445090602 56.22410400506048, -4.018181516581478 56.22303391834577, -4.01896495838833 56.22106207696095, -4.018106648910195 56.22068966915528, -4.0174500924695105 56.22108680126179, -4.016670092405454 56.2203626333307, -4.016468454372195 56.21928754425997, -4.014420922328448 56.21930294439498, -4.013678998045526 56.21838043551727, -4.013605425943159 56.217285283702914, -4.012444023844809 56.21666615179373, -4.012001635580205 56.2159184873354, -4.012317557638075 56.21517645526258, -4.00984357249769 56.21443488023845, -4.008699884394006 56.21476798300312, -4.007691015277578 56.21459565283466, -4.007472610936628 56.213502850047604, -4.0084254157072525 56.21291224253878, -4.007480727536508 56.21242434208734, -4.006289532719691 56.21215611006639, -4.006578147665538 56.21119886084171, -4.007566569695464 56.21036504658401, -4.005884321821352 56.208720867402604, -4.002149011084455 56.208826346017595, -3.997162885174284 56.206894025389175, -3.996550949470942 56.20659836076721, -3.9993532570604615 56.20498943867676, -3.998672227884868 56.20460504636525, -3.9996858246827034 56.203016024364274, -3.9963542543743773 56.20188365661906, -3.995248700563239 56.20108373737948, -3.995622512210568 56.19990048629626, -3.9921328538826195 56.198509943560616, -3.9916324231699902 56.19818550838546, -3.9922156946994747 56.19699888393936, -3.9929327599031823 56.1949168809852, -3.9955243009837385 56.19336294524742, -3.9963840870132743 56.193197657782974, -3.9969974291340598 56.19258704043634, -3.9972280406479728 56.191923509581166, -3.9992058505957684 56.19202448190517, -3.99934422518521 56.19122265383145, -4.001364267670602 56.190708798884074, -4.00250843944314 56.18951597598932, -4.002670188346871 56.187209596784356, -4.002633005372028 56.18645237741753, -4.002276813413029 56.18621407524823, -4.0057142370901655 56.18261928491152, -4.003212484856094 56.18196507848966, -4.002959639352788 56.180155323521866, -4.003335918751107 56.17810029280082, -3.9990720862864757 56.177899753674886, -3.995946863431045 56.17728526868458, -3.9936848885534175 56.176539957353626, -3.988828628198213 56.17578246592166, -3.984555400779463 56.17539285507806, -3.9839537807800305 56.17528569119903, -3.982899721324526 56.17671348410524, -3.9839658758730834 56.179266501069264, -3.985897624141883 56.18017006662801, -3.988788431149682 56.17998878282464, -3.990888581974786 56.180718818441164, -3.992317289975923 56.17999484914022, -3.993021089168002 56.18082823015499, -3.9890489944591585 56.1822222206101, -3.9884827327149774 56.18404659916641, -3.9832961984738975 56.18439953106451, -3.97935182101121 56.18013509677103, -3.978739351261135 56.179763816255004, -3.977989524242198 56.18021708130844, -3.97689981295503 56.17991158051349, -3.976505377519182 56.180344107572225, -3.976368484762959 56.18119557878715, -3.974926269583849 56.182071276444795, -3.9724454335035033 56.18082582569634, -3.971494802989796 56.180439345477645, -3.9717657279407597 56.18012234020707, -3.971559025359747 56.179398761031834, -3.9709138084818307 56.179538511242136, -3.9694790625770686 56.18052503524758, -3.9685649376123204 56.18207348394533, -3.967003343361032 56.18208450866281, -3.966995018963884 56.18141797426811, -3.966122990022647 56.18142585631095, -3.9658711236156265 56.17924113850418, -3.9660940793515036 56.1754093732319, -3.962814581456052 56.17459880946136, -3.9609243313098594 56.17480854729647, -3.9596977728156446 56.17476509954512, -3.957740198102751 56.17396937759659, -3.9573298036351763 56.17160346473498, -3.9551902690516694 56.169759175387796, -3.9537414822764267 56.16819149566409, -3.95581181726937 56.168278397272445, -3.958925931299818 56.168029703027955, -3.9608791542037105 56.169183762404934, -3.962039597335996 56.17014486259985, -3.968556125657902 56.170319798918406, -3.969659771682522 56.16607859046765, -3.969490578060761 56.16403236761634, -3.9678893398638277 56.160750866971576, -3.9727837808645075 56.16198483563837, -3.9785486898981546 56.16228805644393, -3.977437612704636 56.1607242249475, -3.981396101171728 56.159726211064104, -3.9827673283427303 56.16071069872299, -3.9840414991814703 56.16012409513392, -3.9854617991201065 56.16174580619376, -3.9914356390087224 56.16235060947397, -3.9928304614872356 56.162229268078825, -4.000782015521096 56.16524603850976, -4.006108618140567 56.16763096328444, -4.008176993870158 56.16683350936826, -4.011863781574922 56.167726106836724, -4.01469401190941 56.168560672567885, -4.016423943093347 56.168990767500794, -4.020067914378995 56.16814043123101, -4.021011239591732 56.16831373210246, -4.02167876274591 56.167529959302854, -4.023299375890606 56.16802464382092, -4.024143371192391 56.167534541840226, -4.02034490843613 56.16513439318217, -4.018216348224873 56.16385714359149, -4.015657942122272 56.16175112254309, -4.014313597108164 56.161296760457105, -4.000833826690241 56.15478488752329, -3.994133959972876 56.1528892239107, -3.9928384880305132 56.151876715570246, -3.995882969550454 56.150353774674784, -3.9986458295605685 56.149922683443485, -3.998019888045466 56.148099557006766, -3.99543891862646 56.14675735152751, -3.9924553259435496 56.14665274220776, -3.9911525362270948 56.1446428945987, -3.9897683677386553 56.143641077850056, -3.9883400651612466 56.14365329430463, -3.986301434210117 56.143992785914364, -3.9849821582891827 56.14406803880188, -3.983940723001952 56.14360093681474, -3.9827281258652847 56.14273689896899, -3.98100816494618 56.14218181119823, -3.979111945066387 56.14206881043459, -3.976813941396655 56.14163188241259, -3.975325256520225 56.141181971625244, -3.9745643757923625 56.14063427832394, -3.974596205571146 56.139750913865356, -3.9749164441243 56.138475341441605, -3.974860167046285 56.13737805539369, -3.9741224615698374 56.136528524586694, -3.971860071326465 56.13602633877205, -3.970046895209534 56.1360122080879, -3.9682678105963367 56.13666503353889, -3.967884640661969 56.137467860307574, -3.968209355442856 56.13853933876325, -3.967545429300325 56.139131309061916, -3.9663849189420506 56.139817315107244, -3.965386201615972 56.14065146557366, -3.9636959666133835 56.14153967102276, -3.961536623876529 56.14230610204352, -3.959740675502409 56.142636072215346, -3.9578093851506595 56.14258056822396, -3.9571014810753837 56.14231185594688, -3.955858709503177 56.14138409023797, -3.95258667175198 56.140746805122596, -3.9514407616812908 56.14020505837559, -3.9509852471471585 56.139587798793535, -3.9511906668949712 56.13831410921109, -3.951735963332819 56.137659503519494, -3.9525927753852375 56.137064571643094, -3.954106790143353 56.13650230209423, -3.95771374556251 56.1353900640626, -3.9585959555954933 56.134596050506985, -3.959551123720048 56.13464828967297, -3.9594040306582654 56.13599249193792, -3.9631642086146113 56.13617749099145, -3.9638901270361724 56.133542087173275, -3.964177325953066 56.13319017442167, -3.965377807399201 56.13344601749012, -3.9701558488252293 56.13513273262735, -3.9739229580745987 56.13573566864637, -3.974730775024397 56.135674236984315, -3.975951285835158 56.136317803187545, -3.9797039128770755 56.137297951009316, -3.980354843670336 56.13730362837171, -3.9806547985224294 56.13531279950373, -3.9795630500610826 56.13473719346058, -3.9772553869297407 56.13492693060717, -3.9756561001775483 56.13480873123183, -3.974263037999422 56.134004258734656, -3.972751630636074 56.13528651984527, -3.969445577640218 56.13420698562538, -3.9668288256239035 56.133071456310745, -3.964557980870879 56.133035699123496, -3.9627498579572507 56.13260614661404, -3.963368804497304 56.13180549802262, -3.963022130327654 56.13125880761113, -3.9638163023459945 56.130986526105346, -3.965549139230981 56.13100439462059, -3.9650682364472254 56.13016335480474, -3.9643137639368926 56.12986187309118, -3.963835748650339 56.12911231012859, -3.9629575308179095 56.128377473805905, -3.959957237207519 56.12659067276129, -3.9585515862153744 56.12711699900619, -3.9572311620828535 56.126322204364996, -3.9549698487568663 56.12580097960063, -3.955765650943731 56.12540915833138, -3.9555774926896663 56.124691647589586, -3.9531327641407397 56.12452149336287, -3.951191936498546 56.12490816520306, -3.9504516461952703 56.124924200592226, -3.9506103118788833 56.12548499294312, -3.9485837183334564 56.1261445485956, -3.9490538508701016 56.12653253354136, -3.947127436470593 56.12725488025702, -3.945084973031267 56.12759260676971, -3.942818101186041 56.128266328271685, -3.94209605801915 56.12760615548039, -3.9414041927835997 56.12732591830661, -3.942552969638542 56.1254157927887, -3.9435080139873717 56.1244002861462, -3.945083999662271 56.123866003190855, -3.9442544874257877 56.12331237172, -3.9449117467032218 56.12288643386407, -3.9441663689460795 56.12264436712396, -3.9436044479010075 56.12312269219121, -3.942651498626108 56.12258915464406, -3.94313854865661 56.122143626457515, -3.9439904576767684 56.12216405177016, -3.945128387471763 56.122867942237335, -3.9463396313772194 56.12306176384696, -3.9474441596242356 56.123063355848544, -3.9476078434243718 56.122754075381124, -3.948844899699005 56.12240205890153, -3.947662269534387 56.12160295877198, -3.9464335775245316 56.12032191086853, -3.9479191405435734 56.119046741815446, -3.9483752925829236 56.1183497795632, -3.949383201757314 56.11859113589739, -3.9500619152565877 56.118476121824294, -3.949709408128657 56.11790458627346, -3.9485983816043877 56.117838694367, -3.948521234836155 56.11729757836274, -3.947893199922685 56.116445316809425, -3.947379896246766 56.11626887644877, -3.9455933715362423 56.114401461902965, -3.9451507927266403 56.11359965306764, -3.9478939124078867 56.11235053837277, -3.949121913009779 56.11155475346086, -3.949641360307066 56.11143497570783, -3.953542913581778 56.11227075712985, -3.9544315228759466 56.11236380370319, -3.956322021369293 56.11289317316148, -3.9610060034527406 56.11415763011955, -3.9634207366543213 56.11491903479028, -3.964393391048543 56.115620408196264, -3.9655655925666475 56.11690531767955, -3.965366096133126 56.1174272572655, -3.9664719091458776 56.11764243718107, -3.96602768951627 56.11616636914718, -3.9657311406572395 56.11595160429046, -3.9667130280325873 56.11487077017726, -3.9645759293521863 56.1123763943103, -3.9657440734995433 56.11244674067998, -3.96865216406835 56.11336162993888, -3.9695383277701075 56.113542153936045, -3.970109408386934 56.11395929127208, -3.972322819667049 56.11254787353035, -3.9749778369749054 56.11279363851307, -3.977527306958103 56.113894119969366, -3.9777312749241824 56.11442105839769, -3.9764129963569634 56.117884008237944, -3.9771364287239286 56.11881601166195, -3.9813484427165142 56.11845193962636, -3.981918478475452 56.11890110452474, -3.982346198140552 56.12252479843487, -3.9826075521163875 56.12260148123924, -3.9849418561298937 56.12075767658854, -3.9910340182832558 56.12003953019137, -3.9942489093791833 56.12030218758264, -3.9964126659614867 56.12201060661198, -3.998103472105956 56.122971780426624, -4.001878870011899 56.121940081727345, -4.006874738007324 56.1208704622809, -4.0096553494170175 56.12113078195329, -4.012240165586258 56.12164585488741, -4.0145643679256615 56.12271330900933, -4.016853036555362 56.12279277442188, -4.018131540449952 56.124164809388496, -4.0154243869222634 56.12531437527973, -4.014249250251535 56.12714884121748, -4.014477741152523 56.12813363920346, -4.018485621560906 56.129694768633996, -4.021860656650887 56.13114930720699, -4.022740046460017 56.13226721890514, -4.023207221726185 56.13258308400513, -4.02454886441488 56.13239035167144, -4.024449200324973 56.13110690052558, -4.0234226931305255 56.13025202282698, -4.027079893471047 56.129113652079965, -4.027775510910378 56.1273498409437, -4.032021883771785 56.12610279049914, -4.035481479720907 56.12610871910568, -4.035622645822022 56.127562227437025, -4.03559931512691 56.12925209954773, -4.036838325826867 56.12986073438735, -4.039933348014238 56.12874921445468, -4.041382804340255 56.12786256216046, -4.043317439909297 56.12854050221215, -4.044998810505847 56.12838684787822, -4.04646368397405 56.12839853633743, -4.048082627551562 56.129189482833, -4.0504689941863585 56.12897913541587, -4.051028869637414 56.129823571190336, -4.0500356058817575 56.1302085171776, -4.048846203969748 56.12993169626235, -4.048179870193341 56.130715602306296, -4.050366449848698 56.13158697079702, -4.053257643890842 56.13396461620625, -4.053095908465412 56.13448925059238, -4.050034011322451 56.134108754757555, -4.048416251345415 56.1333447635066, -4.04700298411432 56.131885407728646, -4.045259064283194 56.13207606149878, -4.044946477415342 56.13315963597695, -4.044416616322842 56.133788487275275, -4.042123166284012 56.13423981751098, -4.042304065999751 56.13491981092196, -4.045193416187528 56.136597432883924, -4.044709846812231 56.137189571584535, -4.040753448086774 56.138153672437696, -4.041140642377788 56.139081884049624, -4.0422324701703625 56.13963898003678, -4.044239766861031 56.13955185319365, -4.046181324848682 56.14034792964402, -4.047439425686562 56.140397517804516, -4.048025676357112 56.141735795006824, -4.058251430173565 56.14152088003673, -4.058119663091995 56.14056150236412, -4.059151749068976 56.139996112958215, -4.060018947285223 56.14026023882247, -4.061292257498523 56.1402929147911, -4.063562251286231 56.1430049328991, -4.068433777736166 56.1428964879347, -4.071436827838368 56.14276528049502, -4.076031130213971 56.15065035948222, -4.077898767107362 56.153036378740346, -4.08088933110747 56.1532556399958, -4.08386348100936 56.15257643527851, -4.08573143107947 56.152580857194046, -4.086755067580275 56.15304885210735, -4.086096934483287 56.153680050985976, -4.0874291777943474 56.15419674903703, -4.0870620836753035 56.154553433325866, -4.087993124028277 56.15628112265909, -4.086934686789935 56.157251598745944, -4.0907041909882365 56.15727773038468, -4.09089280723294 56.15600741992157, -4.093402014855951 56.156252491525805, -4.094519763130207 56.15548764724442, -4.096846812703222 56.15416306774511, -4.095743861780896 56.15253721215286, -4.096280146430304 56.1502634550611, -4.097395326899237 56.15004682572071, -4.098409615936887 56.14768405021266, -4.098242228556483 56.144613426060545, -4.099946752738275 56.14546516023355, -4.100862457678107 56.14690544274933, -4.101914367851904 56.147300937770865, -4.104571472007528 56.14937656899758, -4.1057637043010615 56.14939219733973, -4.10603564998492 56.14818333507505, -4.105936925934596 56.14755594491953, -4.110799347488745 56.14697867592958, -4.11163058129696 56.14569733285912, -4.109646790658626 56.14533581343901, -4.109064876635667 56.144411126700234, -4.107694994852168 56.14349988614249, -4.105720311384768 56.14241920807867, -4.1077077817600225 56.141675353078426, -4.111898928498916 56.140318649689476, -4.116196693541669 56.14207839170098, -4.1195589153447365 56.14291941838706, -4.120575806553217 56.142093151473176, -4.122979135174279 56.14247424473618, -4.124976774021541 56.14308694233191, -4.125843337458072 56.14420436861371, -4.124663278060145 56.14456062723036, -4.124070087428597 56.14445055927042, -4.12171290935097 56.14499277910618, -4.120899319292032 56.14554525895474, -4.120809734814312 56.146107744080595, -4.12151584303763 56.146521933846685, -4.125270125086731 56.14681639913998, -4.126204934148001 56.1472536597133, -4.126820042596197 56.148806594821956, -4.127910578383363 56.14898570254961, -4.128739536129397 56.14828601324401, -4.12936614119812 56.14746893390624, -4.131132641425353 56.146988992669215, -4.13222415763653 56.147221804297295, -4.13292777532765 56.14688246398385, -4.132671417643239 56.14589310069258, -4.133805725337336 56.14537941450386, -4.134828387129569 56.146024593682014, -4.135947182871068 56.14621150841184, -4.137696564247012 56.145656224560945, -4.140152178514777 56.146326231292484, -4.1413162541435735 56.14611854566084, -4.141278539849387 56.14444999217676, -4.14221244301067 56.14411543011947, -4.143668794476653 56.14430068848349, -4.144557982077395 56.14461849418863, -4.14577432496214 56.144747377522066, -4.14667575765636 56.144408151113424, -4.146421523476244 56.1437048365563, -4.147072770053834 56.14333726028006, -4.151439003434864 56.14273626028818, -4.153276061160323 56.14255423777148, -4.151271547745225 56.146756602926246, -4.154564888345755 56.14800241267403, -4.157964036046018 56.14775434962701, -4.162880032221133 56.14527785279744, -4.164956660905251 56.145277418650615, -4.1670461404936985 56.14607655826022, -4.1682382803521785 56.14609158431241, -4.168851129045344 56.145254029368296, -4.1707128928242785 56.14458325292223, -4.173034176648406 56.14549504786059, -4.174459419960988 56.14536212171085, -4.17723132029339 56.14655348665502, -4.180044013490347 56.14760926695504, -4.179455961399102 56.14603794531226, -4.18018330185444 56.144668082488685, -4.18220483901013 56.144263918246956, -4.184306892771913 56.144712055973244, -4.18596466954763 56.143855928161564, -4.188350367605336 56.14278018208639, -4.189290221503333 56.14345552143052, -4.189007650210206 56.14443112073169, -4.1909696511985315 56.144962510558464, -4.191728693416642 56.146701500125246, -4.193659053422752 56.1461100400446, -4.1986631701675545 56.14435560664436, -4.2020679893561725 56.14423490710981, -4.207194523164948 56.144925267943705, -4.209016513199596 56.145562720363294, -4.213340674088935 56.14542639721766, -4.21545615839064 56.14838023587842, -4.2228760940211085 56.14746596202211, -4.223775660460559 56.14826758890737, -4.225421823321536 56.148058199996996, -4.227536520006769 56.14871208252593, -4.228329912707763 56.149902034563574, -4.2299010716121295 56.150898202654, -4.22943899115441 56.15237143045476, -4.229890486046151 56.15293845099992, -4.232333177801725 56.15230118611267, -4.233901788966095 56.15269521005779, -4.238537634687257 56.15073299883825, -4.240681351404591 56.150496414558596, -4.242305414634164 56.15073655489975, -4.247760802968378 56.14875910063314, -4.2523641825212195 56.14873814258343, -4.2560142915064745 56.14783572684173, -4.256456812127112 56.147502993176474, -4.2547725568878345 56.14694367615882, -4.253760995492587 56.14546237138786, -4.253709346073604 56.14432288674406, -4.253439745055922 56.143634235452424, -4.255815123067047 56.14332280523777, -4.255230705515782 56.1424308221277, -4.255076072125852 56.14171467710477, -4.255874875186355 56.14106200417126, -4.257305194709481 56.14074828217462, -4.259376535936744 56.14093508368135, -4.261072518430747 56.13966381317238, -4.263829210670219 56.14055696944946, -4.266125681486319 56.14073953101074, -4.268054467214015 56.13959870630519, -4.2690961824154385 56.138429216391565, -4.26827047301923 56.13752769637912, -4.269416529129897 56.13649109348025, -4.272249882954903 56.136501902898424, -4.275924685911327 56.1382226777354, -4.277828864227488 56.1372169567186, -4.282963185241996 56.13802985313222, -4.285988255784241 56.138827676399266, -4.281886000700108 56.14293878328143, -4.283658782770679 56.14514382214596, -4.289991298141596 56.145781495065435, -4.294503788812142 56.14451143586875, -4.299913286583217 56.14424904955965, -4.304032359656318 56.1428691284797, -4.307445992576343 56.142347048726414, -4.306140811462782 56.14474405495699, -4.308438930711284 56.14548301140315, -4.309971379113109 56.14526562742077, -4.312811735408157 56.145113602337005, -4.316714233485329 56.1433508672016, -4.319903304534432 56.14311125901529, -4.321636556732431 56.14195528083396, -4.324191527490675 56.14188026258456, -4.325989720523488 56.1426013397903, -4.327363940320599 56.14110153657802, -4.3290989357987515 56.14051161620709, -4.330201416576536 56.141173852893495, -4.330795293855243 56.1424747900636, -4.331524999062942 56.14335974521192, -4.332202285585848 56.14311328773609, -4.3316213220750095 56.14255805807151, -4.332268917487992 56.14208747832386, -4.333075897687446 56.141856541004294, -4.33202756666604 56.14129216704011, -4.332735899505649 56.141027145314574, -4.3335577772508405 56.1413081989986, -4.335143908562983 56.14038847548903, -4.3360497481040685 56.14046121708036, -4.3369874777557715 56.140263729453245, -4.337776683301277 56.14053638619225, -4.337893033585005 56.13953659253387, -4.3374910803793 56.13901395014971, -4.33862034503723 56.139055472507465, -4.33955201303815 56.13822897672524, -4.340378538128229 56.13885141492968, -4.3403934417362 56.137772654626154, -4.343326373708499 56.13809450295312, -4.344752562526639 56.137725913658784, -4.345524921576036 56.136929348700676, -4.3468132595322375 56.136940821083435, -4.34730575826782 56.137362852637594, -4.3491643446661845 56.13616814401381, -4.352108535947857 56.13614804988805, -4.354264817912327 56.13640354247823, -4.35679349614432 56.13695746120293, -4.358150672869248 56.13677876692836, -4.361380534832939 56.13774160707299, -4.361692380105981 56.137052603578795, -4.36349527367696 56.13679342634158, -4.364918458237705 56.13637972208147, -4.366440752194756 56.136269681799995, -4.367529873195393 56.13696778749622, -4.368175892596098 56.13621843470944, -4.3687640890088275 56.13609930455494, -4.36927449148536 56.13680850390636, -4.37027410084195 56.13631298945771, -4.37157224680191 56.137267691368415, -4.373217110849034 56.136795708831556, -4.373402663566364 56.13327806920512, -4.372367961426301 56.13189591797615, -4.372293231606865 56.13120532377238, -4.366852745118211 56.131974794181744, -4.367481728834202 56.13042588354841, -4.3662751599071905 56.130170402643664, -4.367087898187948 56.12951672911354, -4.366097644485023 56.128852667170406, -4.367667100466344 56.12742054873044, -4.370307983825292 56.12745076615362, -4.374056140977757 56.128214584437714, -4.375698360157825 56.12796730007416, -4.375016699675531 56.12735129489374, -4.375859158940528 56.12666103080934, -4.372227649769521 56.12491539962897, -4.369676887249277 56.12332819816308, -4.3675889145078965 56.12143644033782, -4.367920592641707 56.12108884564183, -4.372618837274339 56.119426692849416, -4.379656287456915 56.11805883442082, -4.379618933690611 56.117485544830686, -4.381588799134166 56.116269017833794, -4.386035451004557 56.11662661306385, -4.388543580696724 56.11924027733275, -4.394877473533198 56.11757576090543, -4.399756713827125 56.1189898215929, -4.400547925117778 56.11820165016633, -4.404760250112876 56.11157673217159, -4.40510498953358 56.11147187226878, -4.4107048969189675 56.112082358557785, -4.414708641338047 56.11337812700993, -4.418359675404093 56.11651270667146, -4.418937281695961 56.11731926482806, -4.419993030946985 56.11828002169663, -4.4210724923788005 56.120548890371616, -4.426134051720184 56.12189062528247, -4.425037074227973 56.123889437055624, -4.42276270134563 56.12431157454467, -4.4219284787069455 56.125118835901404, -4.420574299775553 56.12533413059938, -4.4195402048831 56.124429223926406, -4.416072195516002 56.12609832752728, -4.418087462512147 56.126286915560925, -4.419053762533573 56.12653361320725, -4.422879831173893 56.12826973174398, -4.426566073073869 56.12983944538308, -4.431442084778916 56.13244815499886, -4.43581572248875 56.13352763176438, -4.438187526957737 56.13368946773732, -4.44094540661481 56.13374378407838, -4.44346305688672 56.13395821505324, -4.445707783665298 56.13425572556002, -4.447774961530136 56.134385735468065, -4.452180191195614 56.13496667550358, -4.455308195252891 56.13602360903509, -4.459358874853104 56.13700651269208, -4.461422809247942 56.138825826111784, -4.463471403259207 56.13939613348516, -4.4593591052003285 56.14129359857791, -4.445017251797141 56.15347792042066, -4.442826677231388 56.1544829323428, -4.439923021275122 56.15465716300198, -4.437613935091861 56.15379501336528, -4.435137701638617 56.153088905134936, -4.4334734337841235 56.15274422954662, -4.431605767458513 56.15325735110477, -4.429676054385611 56.15304367537399, -4.427928144546041 56.15315893415327, -4.426512735885098 56.15395068714083, -4.425183982469484 56.15356335847716, -4.424098014542982 56.153962151490724, -4.422682087275736 56.15346865698247, -4.420131357118506 56.1523412998544, -4.421019196014866 56.15084095397744, -4.419357405027694 56.15053200083878, -4.416334534725701 56.151624737778604, -4.415389018771638 56.15220944326462, -4.414803290649199 56.15211304638871, -4.413927701371516 56.15278624792168, -4.412733963191087 56.1524950104734, -4.410994457584921 56.15274467716585, -4.409853387477967 56.15175136134995, -4.408426976868574 56.15237235650035, -4.40806523115842 56.15148066312714, -4.406057390673048 56.15181637889309, -4.403132931369118 56.15290126204028, -4.3960018853325105 56.156406149129346, -4.394804660413493 56.15573789160585, -4.387715046844423 56.152558784970616, -4.386478331757882 56.15260964828679, -4.373656898478721 56.15776381515055, -4.374457573652715 56.16134337610208, -4.370572930928279 56.16129215112687, -4.370643234931999 56.16217157234727, -4.368478540141338 56.16285119658303, -4.365695503428468 56.164477308659364, -4.365768940983379 56.16567121922328, -4.366909926729245 56.16641328876927, -4.369637006289721 56.167798987294155, -4.369445325983855 56.169132791462985, -4.366796885579206 56.16967723116878, -4.365894983075296 56.169987106438775, -4.365625858098888 56.17056501386698, -4.366134997964202 56.17218311378229, -4.367367442523512 56.17246394229414, -4.367536887826784 56.1731114327958, -4.366148715303862 56.17424067241925, -4.37195705434316 56.173876228319536, -4.375358738785036 56.17598002052471, -4.374871145082915 56.176477451622496, -4.375102100849814 56.177069520957374, -4.374756182843929 56.17776306413225, -4.374171496949882 56.17826234902656, -4.37373627652745 56.179084137650804, -4.372392787278592 56.17936300523667, -4.371443174616303 56.17972469406187, -4.370315703525142 56.18046250118303, -4.37093938928902 56.18108425994565, -4.371739549990626 56.18230016985246, -4.372320041569209 56.18282826718315, -4.374106113258818 56.18278497770768, -4.376832384432363 56.18231016334619, -4.376972243776237 56.18196595372622, -4.375878323423938 56.1814747216236, -4.375830609464115 56.18044208472849, -4.374551956844691 56.17956792817858, -4.3744115719351875 56.17912125844103, -4.375773467736217 56.17925685296395, -4.379055031390747 56.17942738580064, -4.3797238631096755 56.17916260876945, -4.381833184988842 56.178992135558566, -4.381946441723221 56.179717587600095, -4.382697413534921 56.179998586586606, -4.383715991746806 56.17980656338816, -4.384434497587593 56.1799078735913, -4.385858840930546 56.17935063675693, -4.386947200445654 56.17969281507811, -4.389192922799115 56.180042107737506, -4.393575600093939 56.18094001501559, -4.3945171708456865 56.18129681648143, -4.395403301587526 56.181385351321794, -4.396469524253206 56.18191031154344, -4.397702535646625 56.18197319269752, -4.3994398062522 56.18228666306043, -4.403478681580878 56.18256976997217, -4.407764355242851 56.18213565611236, -4.4090683983723284 56.1819015961207, -4.4103183324361375 56.18195846739437, -4.410961334235073 56.18235659513993, -4.415372168643416 56.182436381495975, -4.415911795818339 56.1829604865524, -4.4169181235348205 56.183213253092546, -4.417295354003003 56.18357436863826, -4.416506431120859 56.1838950579224, -4.41727146757785 56.184693746499946, -4.4224681930513965 56.18515655444261, -4.4234461760848625 56.18400212678953, -4.426047690309755 56.18357293063711, -4.426632593541318 56.18475305895933, -4.428922540492149 56.18413893659664, -4.4299784313187205 56.18418932209134, -4.4308994238578165 56.18361986123846, -4.432315390346954 56.18307291614818, -4.43731821876085 56.183693338770425, -4.438391428079501 56.185622453825545, -4.438230736127234 56.18613790316845, -4.4368903428792725 56.18584080243044, -4.437011082144295 56.18672818361445, -4.436208770066876 56.18729223165501, -4.43678477593205 56.18824254567032, -4.436000070961762 56.189084865906885, -4.433460678417901 56.19072568153311, -4.43351791985915 56.19188393963877, -4.43311206071688 56.19260194183344, -4.431729807509642 56.1926650975462, -4.431979818167894 56.19355892559648, -4.431176156005554 56.1941049986932, -4.4314822101034395 56.19690306912861, -4.427477602981546 56.1970536880166, -4.4259602449592625 56.19753285379466, -4.422145289993084 56.19711336702781, -4.417298282459129 56.197199274590105, -4.41442349053757 56.19737230403159, -4.4133454599207536 56.198175264618605, -4.409739235838875 56.19825461491054, -4.404908325080711 56.19860035533642, -4.405710654863001 56.19931271193987, -4.408587205824692 56.19967910657236, -4.409083676064811 56.20039741102506, -4.407263022164997 56.20118782593203, -4.407554083758791 56.20197304848778, -4.406906643322131 56.202704649902564, -4.404182309478749 56.20271273297252, -4.398512819043327 56.203065537139864, -4.395341990480382 56.20418753494399, -4.392102546894012 56.20498723206707, -4.390315127342908 56.2070978888101, -4.38755722073939 56.207348909528676, -4.385746454628603 56.20857019981719, -4.379917039792359 56.20870055160465, -4.377754277087036 56.20788836651393, -4.375598822170591 56.20797473578245, -4.373928187428845 56.20860000179989, -4.37135391138664 56.20869434778819, -4.370648614823576 56.20824053571947, -4.368733658189728 56.20804357516017, -4.364194261753863 56.2086966750084, -4.353508161359726 56.20904438143372, -4.351417938505474 56.20677443323024, -4.357625172619426 56.203609515335124, -4.355684761318315 56.199575274289735, -4.361835204541892 56.19577311014872, -4.361202645240942 56.19334963876025, -4.358938396406387 56.191388710006656, -4.3580016332571585 56.189519254827324, -4.355156679064451 56.1904362842221, -4.3490838069509365 56.19075857260692, -4.338356539641517 56.193262741587034, -4.325586642876877 56.19932739990405, -4.317313815932046 56.201424007829495, -4.298197498964195 56.204468063067054, -4.272524795693176 56.208213998025705, -4.2662656179520315 56.21008136747492, -4.258920170563007 56.21295684837527, -4.254048968905813 56.215139731363905, -4.252588345693287 56.2141598068525, -4.24643491145948 56.21538615653837, -4.241619090820685 56.216048723301526, -4.236958037378289 56.2154950772398, -4.232170695484148 56.214431270924784, -4.2104004402083754 56.206338754113915, -4.1954716169902815 56.20327064923919, -4.194965048445069 56.20399859636415, -4.192912682603611 56.20278584403774, -4.18475340836192 56.20049487637403, -4.184620119801985 56.201836275836136, -4.185832824049324 56.20388181831324, -4.188041013597964 56.206700569701205, -4.184983927432221 56.20964841910185, -4.183853227551877 56.20961447658621, -4.177980565202213 56.2075702194482, -4.171093243738774 56.205534525969185, -4.170613298730369 56.20388937649119, -4.16841910720835 56.20357739833844, -4.159914378478816 56.20744683726697, -4.157589328988533 56.2085388840823, -4.158638697767871 56.21056955638465, -4.158148659521505 56.21275291666383, -4.1569419293612855 56.21337608137304, -4.152270739539596 56.21405062263323, -4.147432782793044 56.21434144224225, -4.144219077696093 56.21426241674661, -4.14181079156554 56.21301006616687, -4.13806539622793 56.20946221796635, -4.13334493969425 56.206344481782736, -4.1264699814143 56.20535756071366, -4.122593123656384 56.204642341332665, -4.117806243512883 56.20350224581897, -4.117320944038187 56.20464288501509, -4.119252127052877 56.20545454548889, -4.118626367514026 56.20609434132593, -4.117569615846254 56.20681340160002, -4.104103084574415 56.204401256469446, -4.1049702886068635 56.20728021534069, -4.100655326306934 56.20827922799911, -4.098812725095667 56.209083367434665, -4.099105241013587 56.20941990364172, -4.098572961623444 56.210597206645076, -4.0992305045834865 56.21200593709369, -4.099408065307603 56.21318916203615, -4.102151655299663 56.21381654510883, -4.1013641062301 56.21651694610036, -4.109499884535499 56.216063874762064, -4.112123963447661 56.21627070426841, -4.1142415195922375 56.21547963987723, -4.1152600544303315 56.21552511691295, -4.116129346204084 56.215788829715656, -4.11599388010275 56.21684260074083, -4.116807906331462 56.217565567444524, -4.118112572806149 56.21753423800039, -4.11884135610538 56.21846536407555, -4.118489553941432 56.21939701322447, -4.116907291027786 56.22112259748347, -4.120734639050435 56.22149737177152, -4.118428168316237 56.22383749291152, -4.1217528942031745 56.227078600030744, -4.1241912499308615 56.23091002515565, -4.128870733152853 56.23237526442484, -4.131451389397126 56.234972907055024, -4.136566866631879 56.235271069238486, -4.138463850357517 56.23572356647685, -4.136724889910273 56.23810814210498, -4.138968781756362 56.23957014748353, -4.13889847844433 56.24178208688066, -4.142267312548228 56.24315267373937, -4.145573348434959 56.241954055509176, -4.147699041084183 56.24215980543836, -4.14916196106287 56.245225832495514, -4.144108622098448 56.24693114027601, -4.144460287224481 56.24975587017414, -4.1412283295752115 56.25027016935444, -4.141035829028806 56.255494778198035, -4.141225421618868 56.2606229032409, -4.137126888951569 56.26530393739372, -4.127811905198504 56.27058687408252, -4.121442922922789 56.27719356792938, -4.115846310032083 56.281363104427705, -4.115702803803889 56.28103925467791, -4.112299909940701 56.28026611978318, -4.107883021854393 56.28029200152202, -4.107325383482088 56.28013973929533, -4.105212070361142 56.279164714290225, -4.103511116160447 56.27922509032249, -4.101257455361326 56.27878079576624, -4.093559948791612 56.27892652890648, -4.092179873720685 56.2793902092006, -4.088529521805929 56.28088072841904, -4.085004145736222 56.28081435902675, -4.08365227972396 56.28105729690085, -4.080710896523404 56.282522162724376, -4.079770655479891 56.28350401872698, -4.07901363396515 56.28667100917689, -4.078511598502157 56.28992357608937, -4.073514400211212 56.28671383247524, -4.070682624216092 56.28484261995546, -4.064935489262177 56.28118227982136, -4.061244600388553 56.278790492268264, -4.05221376981337 56.27349925940134, -4.049348106759325 56.274881241432844, -4.0385545863969545 56.28027165408853, -4.037968550329129 56.279580362767625, -4.037520716824638 56.27829818124363, -4.036741921325676 56.27732249145595, -4.035045090419184 56.27609230333099, -4.035633289809312 56.2746987165079, -4.036646362073364 56.27370252483029, -4.038320181017713 56.272376423287014, -4.038443490546374 56.27211378484726, -4.039620053147102 56.271460852669705, -4.038101181870235 56.27038503663648, -4.037721154921062 56.269312920083024, -4.037078067178079 56.26921567092939, -4.030085817415982 56.270903209022386, -4.029519853515096 56.27089002645272, -4.025641637899305 56.27023914990326, -4.02143331212095 56.271287486829145, -4.019246224356741 56.2719252841402, -4.016721395922666 56.27243824368445, -4.005288350070254 56.27494252551447), (-4.287080419372932 56.18223035658534, -4.288828688237947 56.181854858685334, -4.289763633443591 56.18135726525188, -4.291684356870726 56.180905105556356, -4.292127677084438 56.18060030733596, -4.2931247397939885 56.18065900829428, -4.293951878637905 56.17912581596663, -4.296495317254986 56.17913950557135, -4.298174117684454 56.17936577607009, -4.301180028330685 56.17862321438999, -4.302020856732994 56.17855165258153, -4.3034751359567025 56.17927138544949, -4.305977087217548 56.17992275464043, -4.307742482127979 56.179831829778955, -4.308685557191222 56.179493191125786, -4.310131101908146 56.178230885139385, -4.309957927369414 56.17631688448684, -4.310480354079908 56.17591877999289, -4.308701280560036 56.1754837115059, -4.3104358654101915 56.17510609076483, -4.311208773715943 56.174758480300916, -4.312164132228015 56.174034571705796, -4.312938370598628 56.173176721407295, -4.312583646654431 56.172170053731136, -4.311327367366529 56.17072523174686, -4.309659917798969 56.17003932513217, -4.306676992972656 56.17031613681343, -4.303291146230491 56.169754064637054, -4.301799322389922 56.1698515175624, -4.29999528323074 56.1695959068182, -4.297844982126342 56.16986958419455, -4.295983751470743 56.170263672677315, -4.294986682257888 56.17098050014076, -4.2947722016646726 56.171864866576875, -4.294842158326172 56.172939870008506, -4.295491703874088 56.17396222678156, -4.293598950437858 56.17382617073059, -4.292095867734567 56.17347831008782, -4.2930567934308685 56.172761279486565, -4.292943826792367 56.171404517399225, -4.29333775924424 56.17097858409996, -4.292834989648189 56.16986829464849, -4.2916226130274895 56.16925719288085, -4.288875712976803 56.16884527355541, -4.287936814520471 56.16884918321187, -4.286693446327357 56.16934043246318, -4.284883305671497 56.16856238232253, -4.283912012932184 56.168427559822014, -4.281419832487485 56.168831292673566, -4.281322595112849 56.16844124903029, -4.279800701187816 56.16852865623982, -4.27971972957253 56.16906488471335, -4.2786158302556325 56.168758117059255, -4.278719859787493 56.16834980038761, -4.277333758117258 56.167846914448155, -4.275491947675277 56.167846788998965, -4.27433576585856 56.16797852956814, -4.271692193750433 56.169452790847615, -4.271335430393207 56.169958134656085, -4.271727717103008 56.17054497049735, -4.272977532150589 56.17103928266346, -4.2739726712470345 56.17121734001759, -4.274125403097215 56.17165885196683, -4.2733932474283485 56.17247136985211, -4.274394679083197 56.173016611764375, -4.275522408678281 56.17385249989673, -4.275363751214988 56.17481677340237, -4.275977240055591 56.175439695314836, -4.2770810097601855 56.1760134077759, -4.277752226720887 56.17766428233797, -4.279068062796228 56.178503232732, -4.280540724301696 56.17863037122963, -4.28186125993373 56.17855881023688, -4.282982688517704 56.17871055926709, -4.284384223138418 56.179508597338796, -4.284469516067939 56.1805371253403, -4.284234182565335 56.18133575812875, -4.286228171728767 56.18223902703052, -4.287080419372932 56.18223035658534)))
SPARQL API: The Basics

The most flexible way to access the data is by using SPARQL, a query language, analagous to SQL for relational databases, for retrieving and manipulating data from graph databases like ours. We support SPARQL 1.1 query syntax. Many online tutorials are available.

To submit a SPARQL query from your code, you issue an HTTP GET or POST to our endpoint:http://statistics.gov.scot/sparql, with the query itself as a url-encoded parameter called query.

For example, to run the following simple SPARQL query and get the results as JSON:

SELECT * WHERE {?s ?p ?o} LIMIT 10

Option 1: POST (recommended)

Issue a POST to the endpoint, with the query in the body, and an Accept header of sparql-results+json:

POST http://statistics.gov.scot/sparql HTTP/1.1
Host: statistics.gov.scot
Accept: application/sparql-results+json
Content-Type: application/x-www-form-urlencoded

query=SELECT+%2A+WHERE+%7B%3Fs+%3Fp+%3Fo%7D+LIMIT+10

Option 2: GET

Issue a GET to the following URL (note the .json extension - see the formats section for more detail on this):

GET http://statistics.gov.scot/sparql.json?query=SELECT+%2A+WHERE+%7B%3Fs+%3Fp+%3Fo%7D+LIMIT+10

Scroll down to the end of this page for examples of both of these methods in a few different languages.

Results formats

As with other aspects of our API, to get the data in different formats, you can use either (a) a format extension or (b) an HTTP Accept header. Available result formats depend on the type of SPARQL query. There are four main forms:

SELECT queries return tabular results, and the formats available reflect this:

Format Extensions Accept Headers
XML .xml application/xml,
application/sparql-results+xml
JSON .json application/json,
application/sparql-results+json
Text .txt, .text text/plain
CSV .csv text/csv

CONSTRUCT and DESCRIBE queries return graph data, so the results are available in the same formats as our resource APIs:

Format Extensions Accept Headers
RDF/XML .rdf application/rdf+xml
N-triples .nt, .txt, .text application/n-triples,
text/plain
Turtle .ttl text/turtle
JSON-LD .json application/ld+json,
application/json

ASK queries return a boolean result:

Format Extensions Accept Headers
XML .xml application/xml,
application/sparql-results+xml
JSON .json application/json,
application/sparql-results+json
Text .txt, .text text/plain
Results pagination

We accept page and per_page parameters for paginating the results of SELECT queries (we automatically modify your query to apply LIMIT and OFFSET clauses). For other query types (i.e. DESCRIBE, CONSTRUCT, ASK), pagination like this doesn’t make so much sense, so these parameters are ignored.

For requests made through the website (i.e. HTML format), the page size is defaulted to 20. For requests to our sparql endpoint for data formats (i.e. non-HTML), there will be no defaults for these parameters (i.e. results are unlimited. For performance reasons we generally advise LIMITing your query if possible).

Parameter Substitution

You can parameterise your SPARQL by including %{tokens} in your queries, and providing values for the tokens in the request parameters.

Note that the following tokens are reserved and cannot be used as parameters for substitution:

  • controller
  • action
  • page
  • per_page
  • id
  • commit
  • utf8
  • query
Cross Origin Resource Sharing

Our servers are configured to allow access from all domains. This means that if you’re writing JavaScript to request data from our server in to a web page hosted on another domain, your browser should check this header and allow it.

If you need to support very old browsers, you can additionally pass a callback parameter and the results will be wrapped in that function. For example:

http://statistics.gov.scot/sparql.json?callback=myCallbackFunction&query=SELECT+%2A+WHERE+%7B%3Fs+%3Fp+%3Fo%7D+LIMIT+10

This help topic on the jQuery website has more details.

Examples

Using cURL

Here’s a couple of examples running a query using the widely available cURL command line program.

Request the results as XML, using a POST:

curl -X POST -H "Accept: application/sparql-results+xml" -d "query=SELECT%20*%20WHERE%20%7B%3Fs%20%3Fp%20%3Fo%7D%20LIMIT%2010" http://statistics.gov.scot/sparql

Request the results as JSON, using a GET:

curl -X GET -H "Accept: application/sparql-results+json" http://statistics.gov.scot/sparql?query=SELECT%20*%20WHERE%20%7B%3Fs%20%3Fp%20%3Fo%7D%20LIMIT%2010

Using JavaScript

This example HTML page uses jQuery to issue a POST to our SPARQL endpoint, requesting the results as JSON.

<!DOCTYPE html>
<html>
<head>
	<script src='http://code.jquery.com/jquery-1.9.1.min.js'></script>
</head>
<body>
<script type='text/javascript'>

	var query = 'SELECT * WHERE {?s ?p ?o} LIMIT 10';
	var url = 'http://statistics.gov.scot/sparql.json';
	$.ajax({
		method: 'POST',
		dataType: 'json',
		url: url,
		data: {query: query},
		success: function(data) {
			alert('success: ' + data.results.bindings.length + ' results');
			console.log(data);
		}
	});
</script>
</body>
</html>