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/S02001438 http://www.w3.org/1999/02/22-rdf-syntax-ns#type geosparql: Geometry
http://statistics.gov.scot/id/statistical-geography/S02001438 geosparql: asWKT POLYGON ((-3.1125511273164252 55.356779355614954, -3.112021379055621 55.35627492998881, -3.113629355208789 55.354557396831716, -3.112633252053026 55.35165942566796, -3.110817447917971 55.34876890047397, -3.109343205471771 55.34793309513521, -3.1069827542850987 55.34952709323472, -3.10476027441859 55.350135805576905, -3.1020248524494343 55.351584822842746, -3.1012869644886805 55.34971784858479, -3.101263896193095 55.34888683096131, -3.1001573987829163 55.34765670001651, -3.0988191940596153 55.3451750648359, -3.098321599688494 55.34371927715966, -3.0984083740581663 55.342581739267104, -3.1009738099357707 55.34099055079442, -3.0996867255913174 55.339209388956284, -3.099137746236914 55.333049769533716, -3.0990840535069033 55.33167985042983, -3.0987072379027927 55.33144959774035, -3.0920960570049703 55.329788015370255, -3.0862684231543978 55.32793938737826, -3.0858888958568707 55.32328339656841, -3.085584786189729 55.32051833642661, -3.084087727435843 55.31878830122652, -3.082175457155512 55.315983577615526, -3.081761877251837 55.315551408363824, -3.077485372262274 55.31502757101178, -3.0761438345439336 55.315237096400196, -3.0701488393427643 55.31642653159675, -3.069511282595206 55.31674214133929, -3.069085888975364 55.313524299669055, -3.067795916070104 55.31184167872664, -3.0642524745919917 55.3098417187864, -3.061300976822252 55.30698731444176, -3.0633171069997416 55.30520847244603, -3.0611634027072236 55.304490334584436, -3.0566287791205102 55.301312580883554, -3.0547531392948843 55.30037625474327, -3.0540785341652845 55.29958679744, -3.0534546334184363 55.2992237455968, -3.0519723183610545 55.29737187940328, -3.051524174416709 55.29710165904092, -3.0477932759681416 55.295974506311715, -3.046639291964484 55.295512625841546, -3.0489860978033505 55.29402772862814, -3.050229594069125 55.29310942793113, -3.051872133257389 55.2920978144978, -3.0524824211580697 55.291059136056965, -3.053852594723096 55.28916379756591, -3.0545433600631338 55.28730396753993, -3.0544797110903668 55.286922601149776, -3.0528999998646453 55.28411185260533, -3.054544960323589 55.281664173115054, -3.054625598957931 55.28060848830112, -3.0535583366993078 55.27972177248142, -3.0513291957658906 55.27853233705857, -3.0477742643991794 55.276488870299936, -3.046294328986657 55.2757619941437, -3.0463427709266058 55.2755090647219, -3.0452043604937997 55.27429848205393, -3.0429548512274693 55.2715301816074, -3.039728330879746 55.2726782954942, -3.0369437587457093 55.27388008164017, -3.0338547007153447 55.2747590799445, -3.0326418043655803 55.27521147045628, -3.0276458337599914 55.277840773362854, -3.0223667252734114 55.27885112153269, -3.0199336178126748 55.279123089179535, -3.0157099621691996 55.27709147034946, -3.0142822461929506 55.27635299068838, -3.0131757215474235 55.27555341845112, -3.0118264654551643 55.272635096084976, -3.011798791664833 55.270927939514586, -3.0112882157565624 55.26879793775556, -3.0101675944082524 55.26743232173757, -3.0092536254176103 55.26707593962204, -3.006342289936185 55.26708200576608, -3.0031629655306027 55.26800680179674, -3.0021275693367966 55.26845113968386, -2.9986167793837764 55.269032567212726, -2.9968667835678757 55.26891207875169, -2.9959268273829927 55.26908599716922, -2.9938236483432106 55.26994784522807, -2.9930550587312 55.27194454961055, -2.9924105726693395 55.27292479631653, -2.992014687177933 55.27409172985459, -2.9909355305529335 55.276266173523524, -2.9899084579261395 55.277375317923166, -2.989027549877652 55.27803395858249, -2.9861380112054188 55.27895146297421, -2.983867813549183 55.27945503600415, -2.9822179639632074 55.2808566900339, -2.980919622136016 55.2815141357528, -2.980028289981163 55.28175942874137, -2.9779702695821744 55.28193768438652, -2.9768171300988864 55.28178067212188, -2.975990823036837 55.282110784012666, -2.97322078663454 55.282788890171425, -2.970330644592333 55.28371051471976, -2.9688653036537587 55.28431074778887, -2.967592319374597 55.28440621247227, -2.967633637811592 55.28545726817017, -2.9679367852896417 55.28659161680455, -2.9660643409025207 55.28858789951002, -2.9645730196213185 55.289749920898885, -2.9620817327874507 55.290263816978424, -2.9601141025536406 55.28898979097694, -2.957709124060444 55.288837942850506, -2.9569566874653344 55.28897863535582, -2.9543685154683783 55.28906629056764, -2.9526791381728446 55.288549301071676, -2.9515036865198665 55.28845063369373, -2.950086440177308 55.28778770878743, -2.9497463961621846 55.28739496345799, -2.9473604463484353 55.28770555117224, -2.9457296634732546 55.28765978459066, -2.94535094731807 55.28729428522439, -2.9441225837384213 55.287285818259036, -2.943380556749557 55.287069596198, -2.9422034540181246 55.28736354725079, -2.9412180478588095 55.28631078192948, -2.9404977309206135 55.286145596157006, -2.938169990549102 55.284918923771244, -2.9350171826489997 55.28408493387406, -2.934014850648949 55.283975786589004, -2.932584268503771 55.28406759857523, -2.932139924888193 55.28391822756406, -2.931576428755656 55.28305087220297, -2.9295966987229343 55.28187529833269, -2.9286779685886724 55.2816351716621, -2.928054440984687 55.281226550506965, -2.927040559939191 55.28095568338383, -2.9264089804256694 55.28053812888536, -2.924411034119086 55.279582770463605, -2.9235152674267857 55.279310979774614, -2.9220127488081618 55.27934929584356, -2.921094434391635 55.27912258850451, -2.917056373875428 55.277409678404005, -2.9162460170071243 55.27776622317907, -2.9161203946041283 55.27880506565129, -2.9164654052299106 55.280455926168514, -2.914990552411833 55.28169898916114, -2.9125069216115724 55.283581303396495, -2.9114851682936247 55.28365183926782, -2.9110132854060806 55.284014806812486, -2.908439793691298 55.28473490200071, -2.9069303450054402 55.28551443856001, -2.9039677377443818 55.28540161926537, -2.902375982891185 55.284640588529356, -2.901053898540301 55.28431337404247, -2.8984849502433194 55.283501091623386, -2.897367704540899 55.28248039835611, -2.8964636709104057 55.28183644513539, -2.8944651404055524 55.28082578838737, -2.893050928870404 55.27989259959062, -2.8938710146100557 55.27890710997387, -2.8939849118649175 55.27802114264573, -2.8923009702242104 55.275584744109665, -2.8913366739057875 55.273996751564326, -2.889242376809733 55.272903138320615, -2.8876948360125647 55.27232491253777, -2.8858606289491617 55.270886978405414, -2.886985218752794 55.26944103051023, -2.8877800857706797 55.268033414865414, -2.8843244103641204 55.265146993888166, -2.8853937999184787 55.263346506384835, -2.8849228434013146 55.26268944079952, -2.8861150742152812 55.26252353300517, -2.891147069444726 55.26272053433069, -2.8940063784947765 55.261464027667124, -2.8997888108172294 55.259709670403616, -2.9016950255958136 55.2587700270402, -2.9030755596366533 55.25824311490133, -2.9050103312090543 55.25718189443133, -2.9049277954727377 55.25701176933959, -2.906387268287021 55.25581027126227, -2.907221669836539 55.25479851876162, -2.9084557162116984 55.254411020606035, -2.908351006355292 55.252924588453105, -2.910049629211747 55.250840619003206, -2.9114311602727887 55.24934309521629, -2.913378569913863 55.24886125256052, -2.9151161505660816 55.24575339095423, -2.9153457946113424 55.24411078989407, -2.9165890838358757 55.243117468380554, -2.917773340185796 55.24195384009389, -2.920491257859872 55.23910271219966, -2.921442636245537 55.23671957773332, -2.9200787221435185 55.23622125166439, -2.9177305399910507 55.23463489950304, -2.9151553327324824 55.23445205404802, -2.9120087184071357 55.23472273735055, -2.9084508993669544 55.23454709191858, -2.9053580305910085 55.23580119184952, -2.902069430849465 55.23605919239376, -2.9006550961031348 55.236101093124475, -2.8971540507445255 55.23600557465639, -2.8946812362272647 55.23548006909537, -2.8926815859291417 55.23431303316898, -2.891712101621322 55.233502380007394, -2.8892634159175814 55.23369548380539, -2.88702229146773 55.234030808368885, -2.885467737094533 55.23448242395226, -2.8844800323172284 55.234615395094345, -2.8816199843885393 55.234344045430475, -2.8804730441193263 55.234743226897855, -2.8776562027877324 55.23607550449407, -2.873985357310851 55.236838721994594, -2.8718985976691553 55.23669639480983, -2.8691659894546375 55.23722361088596, -2.8682548487819126 55.23690659659108, -2.866940592400509 55.23685303936707, -2.863839587285424 55.23634934472765, -2.863723101898797 55.23351503530006, -2.864036872794002 55.23130670972683, -2.8644533787833804 55.230211939603436, -2.8653743143590633 55.22954043371071, -2.865705549705732 55.22814163238107, -2.8657430803775195 55.22733620483278, -2.861913633724637 55.22328359858409, -2.8622799775988117 55.22277778352356, -2.8655343474569297 55.220620516861544, -2.8669890578548687 55.21956778826552, -2.8723704815699365 55.2165909341011, -2.878882874040765 55.21290926282682, -2.8878826138674167 55.20806790457442, -2.8881844909311507 55.207863516498094, -2.887390670205172 55.207145904207515, -2.8871938227245453 55.20571403378945, -2.8859849356552787 55.20257764330531, -2.8871445963852547 55.2010280743145, -2.888478660443805 55.19955360600648, -2.889699906540004 55.1976036749715, -2.892826890235471 55.19587792736734, -2.896568932920381 55.19357245733806, -2.895745262098582 55.19326848523381, -2.89523594082075 55.18947104124131, -2.8990613644836514 55.18427579373209, -2.8997684829803005 55.18359660734028, -2.900628588173834 55.18239058992364, -2.902549766082344 55.17915031067386, -2.9032889146421836 55.176076022276156, -2.904749521964048 55.17366585330975, -2.8995430721309 55.16975940476829, -2.9003249729837317 55.16265895441886, -2.9000013780290805 55.15770090618914, -2.9004093201197816 55.15525811088186, -2.8997843746383327 55.15189735318833, -2.897310569767991 55.147602162048365, -2.8969132938633284 55.14667949599573, -2.8954494112442486 55.14611963041321, -2.892749895458201 55.14573055961321, -2.8902810562542705 55.14583399138924, -2.891609749495411 55.1445572065478, -2.891079166998538 55.14292557785275, -2.8903009015785837 55.14108907113289, -2.8859195311588626 55.14159727909757, -2.881721218806406 55.142016837429004, -2.8812256178926883 55.14216600077843, -2.879751672313272 55.141844157694024, -2.8792430705748746 55.14190174646937, -2.876471474632692 55.141782425833824, -2.87584502866261 55.14183186168543, -2.8743746579541645 55.14131222932614, -2.873641341626315 55.14077831078046, -2.873704759376995 55.140449855869456, -2.8721555678414283 55.13811103467018, -2.871599867802705 55.137445530923664, -2.8703581074976006 55.13696914654656, -2.868146092906828 55.136957968243856, -2.866167797746544 55.13614980042369, -2.8661491551552576 55.135651192873695, -2.865114603910769 55.13532155627788, -2.864440709273118 55.13389751624167, -2.863944549208567 55.13343824049507, -2.8632352082243986 55.13218518487532, -2.862068911090697 55.12937623391167, -2.861481172283424 55.128665979269456, -2.8612615621647777 55.12757120151995, -2.8613675600787993 55.12666732733038, -2.860690650564352 55.12545446538312, -2.8607148781179146 55.12439390855708, -2.861089827649925 55.123964408680365, -2.860317936942923 55.1227072840453, -2.860156565441509 55.12140091357538, -2.8604496136124578 55.1211741859511, -2.8604173693427053 55.118580959946506, -2.8607052787353204 55.11797055157394, -2.860228976084526 55.11638153835966, -2.860871808396637 55.11616402098459, -2.8606555598627463 55.115585930633465, -2.860858119383773 55.11501746165994, -2.8595470840817345 55.11434285998757, -2.8593893727953033 55.11364214009233, -2.8586766062096025 55.112352235912105, -2.8582716518240563 55.11210976301229, -2.8577332861722216 55.1101769997007, -2.8573636380979184 55.10923963118481, -2.85853733907806 55.1083444119785, -2.8605360990134194 55.10820719392907, -2.862277387271743 55.107833627926176, -2.8629397840444044 55.10743982790716, -2.863610648918473 55.10671257067173, -2.864736616181187 55.1066650418149, -2.86625271579658 55.106972385180555, -2.8679427102244515 55.10705740645876, -2.8701882294775247 55.10659476227606, -2.871131688390841 55.10601199269797, -2.8717913592151665 55.10427470310164, -2.871690242140984 55.10294185116283, -2.872730868002488 55.102148092103086, -2.872737197218485 55.10157561546005, -2.87132186834946 55.100418420903296, -2.871879547622892 55.099687432872244, -2.873362125524073 55.098754808729325, -2.8742781517944334 55.09764381139989, -2.876106655585902 55.09655590081567, -2.876691392425795 55.09534931589308, -2.877067423932852 55.095060841521175, -2.8789733900606396 55.094798176992384, -2.881051084002255 55.095219900985605, -2.8844554132482005 55.09546930843927, -2.885854014646392 55.09508171468027, -2.8865460324765504 55.0943469844081, -2.8862680961361855 55.09375410877581, -2.885537014552237 55.09343052552524, -2.882967445472666 55.09336830633315, -2.8823717837064216 55.09307337728675, -2.88226940493507 55.092409126678184, -2.882784414480801 55.091106861620005, -2.8831230650851936 55.09069013369392, -2.8839966773971644 55.09023357687054, -2.885969708915719 55.08954435982803, -2.886270450345302 55.089328295227084, -2.8856230344120095 55.088604209148194, -2.884133679286398 55.08834813622364, -2.8837630043870206 55.087666962627615, -2.8848121569402854 55.086862250488856, -2.886028245800323 55.08666559209755, -2.8887482443673536 55.087101380113495, -2.889719380225963 55.087162584784515, -2.8900719246381286 55.08808111407694, -2.891019292339128 55.08827008904549, -2.892790808672542 55.088038743962734, -2.893594988290837 55.08756734964383, -2.8938028874336914 55.08698440364153, -2.8937142391742205 55.08617088628093, -2.8925690180413253 55.085186288913235, -2.892989437723023 55.0842980455723, -2.894446668865501 55.08220699639845, -2.895806123305494 55.07981290715535, -2.896437544933389 55.07827967065027, -2.8970438840717563 55.07786722148504, -2.899675692319695 55.07704711247879, -2.901648860277151 55.07696152313979, -2.9040892201397 55.077173478691876, -2.906171953327198 55.07756957348787, -2.907787440696135 55.07732029743382, -2.9103558062863204 55.077097128567836, -2.9108807465126256 55.07724507305324, -2.9117782552619693 55.07855396844238, -2.9124308557243315 55.07894178653574, -2.9136789161518863 55.07906452768395, -2.915157646020835 55.07886201096014, -2.9165906899659135 55.07844324711667, -2.9172640846557587 55.07795830019743, -2.9165696395438165 55.076358552692895, -2.917142828409066 55.07526058676745, -2.9190587966498462 55.07377865272801, -2.9202788743488983 55.072961555006, -2.921381727894811 55.07242930369773, -2.9261809550229656 55.07055965164743, -2.9273891026731027 55.07032040113105, -2.929441138757475 55.070343393803384, -2.9318284207823173 55.07091016298318, -2.9324861379021674 55.071178315293345, -2.9353017452621373 55.07103629808133, -2.936823113957797 55.07066514199904, -2.93970252362469 55.069572662398215, -2.941766301142831 55.06829681181509, -2.942257074173305 55.06785717037573, -2.942859002027858 55.06655126868882, -2.943115754533827 55.06508448442893, -2.943055099719056 55.06430313087898, -2.94269681290805 55.06358249457325, -2.941784930827328 55.06262350651982, -2.94055820081043 55.06179005956756, -2.9388732125457713 55.06104191268271, -2.937149957976963 55.0605294829574, -2.936503422983375 55.06006356741519, -2.936447516579865 55.05961377499309, -2.937387332315022 55.0590970078412, -2.938709639283498 55.059271040512556, -2.9404496448905553 55.05896375156969, -2.9436644978672972 55.05819478980392, -2.944998481821726 55.05760211624332, -2.946324547348382 55.05641009047255, -2.9474714489955085 55.055721789486846, -2.948896590178604 55.0555568424943, -2.9468719267727934 55.058243570882816, -2.9460891396039037 55.05957067127703, -2.945792443908485 55.06159493602945, -2.9459494841696117 55.062941688148, -2.945643393826513 55.06390561977805, -2.9456064716055352 55.0669882684218, -2.945977846672543 55.06812666545439, -2.946056295700375 55.07145105038318, -2.9477909257305717 55.07129377484191, -2.947918590098243 55.07205663089496, -2.9486167834916888 55.073102609652004, -2.949412800436779 55.07298856702829, -2.9498341863478683 55.07358737369209, -2.951850405870873 55.07275384907404, -2.9514768607079094 55.07351164162715, -2.9514613256080393 55.0741767618698, -2.952308190369152 55.07422405948197, -2.9529188248039127 55.074875293967715, -2.954422110469951 55.074863518584706, -2.9564006201275603 55.07467600031211, -2.9594769740198017 55.075228583023495, -2.9626077167889595 55.07559143901735, -2.968397814202711 55.07701775083652, -2.9685634452221406 55.077685090423316, -2.9637823432817987 55.07788112987622, -2.9639787963830093 55.0788860598781, -2.962355487619731 55.07912356318381, -2.962146056695365 55.07888258357587, -2.959509713270719 55.07933473877848, -2.962620424542412 55.083632676726666, -2.9628769550317924 55.08452929502465, -2.9620102692421657 55.08562350759487, -2.96417530066801 55.08705320426124, -2.9657405409511375 55.08764289352828, -2.9671299266236177 55.08678713873255, -2.9684944417502286 55.08620115959763, -2.9697929964825183 55.086127919097066, -2.9707160674639126 55.086722657426066, -2.9714245976951728 55.085575725231266, -2.9789420160385642 55.08804072071118, -2.97891881068864 55.08837340683679, -2.982176730797905 55.08961426588253, -2.982142953083445 55.09015372684935, -2.9815520835304077 55.09033822047282, -2.981658624748164 55.09084959966058, -2.9802202156010775 55.09161604125284, -2.979999079330168 55.092183968717414, -2.980585534950348 55.09245782837282, -2.9821192081281427 55.0936586336793, -2.984235077769915 55.094953585027554, -2.9849698767751534 55.09488473885099, -2.9856557467409166 55.09601148487485, -2.9847719871390344 55.09639607512369, -2.9861055724295733 55.09773324541699, -2.98579552967211 55.09787055247929, -2.9878592625110523 55.09957923191798, -2.9880069313461557 55.09984762804682, -2.9861212204251055 55.100914327537204, -2.9861634170776354 55.10135432255712, -2.9871227801280913 55.10149033405316, -2.987900781084025 55.101897403169524, -2.987715914561876 55.10266275189489, -2.9880217673586573 55.10425986123909, -2.9887732881992695 55.104226803096154, -2.988637075200209 55.10569270179149, -2.989374914420381 55.10700771988848, -2.990412018833445 55.107745167131526, -2.9923480443152 55.10869994668584, -2.9926241217658682 55.11035120520263, -2.9931004814500306 55.11122799493218, -2.995707772009025 55.112689474834085, -2.998348604900123 55.11360245066639, -2.9993268792753462 55.11322598410516, -3.0002990725077527 55.112606925118016, -3.001346067497342 55.11247251219463, -3.0021612516081655 55.11184574222843, -3.003562851476463 55.111474744051876, -3.0050520404483927 55.11147145204544, -3.0062462353494173 55.11095835049194, -3.0064319132009736 55.11023789897936, -3.0078045440504453 55.109965942037974, -3.0089075834760006 55.10957040124668, -3.00953765675198 55.10969098232729, -3.0104544007506324 55.1093688541342, -3.011674791967285 55.10927784566802, -3.0125585983304686 55.109513136604896, -3.0139241529486713 55.10958265536095, -3.0155512875612054 55.10884119504592, -3.017103308558552 55.10884621789422, -3.0190352259743807 55.10838074611441, -3.0196031978947047 55.10913984407619, -3.019581353483376 55.11012854000078, -3.0204573079037784 55.11066937999485, -3.0249809800696634 55.11162889773403, -3.027414733685162 55.11300129929692, -3.034712824611359 55.118169660548894, -3.035709193756768 55.11728950418224, -3.0370152191803843 55.11686501458611, -3.039820758168255 55.11441474550678, -3.0439170767101498 55.113382207760196, -3.0460152004990393 55.112681234447514, -3.052935017822339 55.11112985413036, -3.0571925912878877 55.1108862860131, -3.0598296499088997 55.11101614049937, -3.063053648193318 55.11199453657569, -3.0653388073334584 55.11303498166309, -3.066422805744111 55.11370847203512, -3.069158770515557 55.11342387937115, -3.0717915115227954 55.11279864526167, -3.0739698871334156 55.11218634728928, -3.0760977951938164 55.111448644365645, -3.0768502994458826 55.11086685572405, -3.077730428650806 55.10862142316626, -3.077231004427228 55.107538469573726, -3.0782492456679793 55.10576809700767, -3.0785891996677828 55.103841965764, -3.0825224906397333 55.10323193052107, -3.0846207669984014 55.10315934336196, -3.089515580582541 55.10275619243354, -3.094265140368655 55.102776518127456, -3.0987058037157067 55.10581893287778, -3.100540524032157 55.10698859559767, -3.106348155967366 55.10897593337897, -3.107800917219481 55.109358138336496, -3.1105109615660798 55.1104208358584, -3.111331383159455 55.11682077702857, -3.111181951933844 55.11821505753133, -3.1118665812609336 55.11971855307022, -3.113888683901909 55.12251287396316, -3.114070054195311 55.12395805137077, -3.1170519505082384 55.13134465431614, -3.1154222828798765 55.131961683372445, -3.11590596272107 55.13355685969343, -3.1152883304890584 55.134470155744715, -3.115826604323862 55.13633442838488, -3.118042026746397 55.13814738385243, -3.1200921744907237 55.14021342398348, -3.1215521175651957 55.1419254109889, -3.1211346138816443 55.14270209526964, -3.120101341926798 55.1433406549906, -3.1210334384524985 55.14468905063051, -3.1284430813288355 55.15094718434365, -3.1281549315825443 55.151857491935814, -3.129644743417133 55.15348822721538, -3.1282340257671652 55.154103392446316, -3.1280910992883744 55.155156139293204, -3.1282531598628815 55.15644869901068, -3.1305747684646685 55.15807171978194, -3.1320751687592234 55.15895644545617, -3.13267963020516 55.160900905637455, -3.1342098799352676 55.16449027132781, -3.132674310471327 55.167910440122604, -3.1318730538254655 55.17065876883469, -3.129801638095555 55.172358461339485, -3.128030323932309 55.174127232809106, -3.1268429523715326 55.17545024279848, -3.127855764714199 55.176285607612996, -3.1291610458690995 55.17691156612188, -3.1298247602056044 55.177615350208036, -3.132421652878793 55.17782491373201, -3.1341008992361665 55.17779132196755, -3.135502392976028 55.17682570696581, -3.137130753248055 55.176109590652274, -3.138690301438671 55.175735564391914, -3.1406421758639356 55.17645421122232, -3.1419036747809654 55.176640104851884, -3.14348996327412 55.176104018370594, -3.1453533778808858 55.175924768341744, -3.146471278456645 55.17603108513041, -3.1475674467681185 55.17756645258229, -3.1484977294194634 55.17933702245603, -3.149963529686945 55.18170463157271, -3.149042431387243 55.18407677740326, -3.150557429132146 55.1854194440514, -3.1506670150973504 55.18649679085165, -3.1484545418324776 55.18820711348482, -3.1476352565591896 55.18921232921927, -3.14715682305911 55.190600752187855, -3.1473896410018867 55.19159606277755, -3.1483483605488485 55.19161399704412, -3.150112814519147 55.1912468935787, -3.152649311556429 55.1909623336588, -3.155222640160933 55.19086608847499, -3.158068913257823 55.19097388662895, -3.1605341311755115 55.19094146162505, -3.16360969343787 55.190292080694306, -3.1669753977002912 55.18990045419464, -3.1684415839069464 55.190084116364886, -3.1696619858069477 55.191528232047354, -3.169026022893223 55.191803926519576, -3.1680198735145515 55.19338620926754, -3.168283060134534 55.19432727216485, -3.168818250195767 55.19543647129549, -3.1675363251619575 55.196724836770436, -3.170677862358451 55.197242904045865, -3.1725772512633252 55.19611930416346, -3.1741889583259364 55.19536690082154, -3.174951209804068 55.19457773112023, -3.1762013364468618 55.19381979747556, -3.1777766405272074 55.19343614442078, -3.1796425958985353 55.1927890499776, -3.181880059966485 55.19248880107055, -3.1837789300827017 55.19242544849418, -3.184843444098156 55.19388890116693, -3.184624707430665 55.19498738351285, -3.1848281416313826 55.196018849262536, -3.186052956591277 55.196528170215345, -3.1890583671540105 55.195105988207565, -3.1893225833450516 55.19448334033127, -3.1910683918470615 55.1940259596484, -3.1938292721855466 55.19231847647543, -3.1951397998994038 55.19201805990979, -3.1971575170617674 55.191728679043145, -3.2000699732847147 55.19246390672739, -3.2021594208549016 55.19142784381013, -3.2046481761461205 55.19113368462475, -3.20694592172487 55.19023926545783, -3.209960747745267 55.189166943758025, -3.209893494006152 55.190057281502284, -3.2106290185726087 55.19100256616943, -3.2122524492815154 55.19221758790699, -3.2127281961809846 55.193399084199825, -3.214063213599793 55.19390702038177, -3.2186805497540987 55.1943821819812, -3.2227618130184537 55.195302888268465, -3.2239195783398737 55.19565972284375, -3.2253270349678793 55.1969845971051, -3.226115141234278 55.198091010896796, -3.2229642124643485 55.20139375449425, -3.2215363780905424 55.20351092125624, -3.220955653500792 55.204559177855, -3.2210387733136403 55.206247809959976, -3.220472332321129 55.2072509967283, -3.2203344351260474 55.20839366920253, -3.2209024095866976 55.20949333098767, -3.2217061050349085 55.21007839556025, -3.2209144440836766 55.21091308589863, -3.222250429193534 55.21142991148069, -3.223724541940319 55.2113252645215, -3.2251030194654304 55.211688861290696, -3.2252651482889894 55.21287345794248, -3.223532424356239 55.21325930088673, -3.2225579517824623 55.21530901913343, -3.2215153450555167 55.21616420034729, -3.2209493288946107 55.21718534694244, -3.2192854971123155 55.21828936171171, -3.21600745317355 55.21904100804596, -3.2148637495025256 55.21968146168942, -3.213544136145344 55.220224793742666, -3.211294837878124 55.220696486051494, -3.2106505186233605 55.22070288259659, -3.2102236911085966 55.221659689756045, -3.210033672263617 55.22265009243382, -3.2095561169294964 55.22349057519361, -3.2094199441335745 55.22418388742727, -3.21001546513508 55.225157512400145, -3.2108432260615647 55.2260120047665, -3.2116898936220717 55.226452923915836, -3.2104762696325713 55.22842403308036, -3.209939532052248 55.23042436359741, -3.209004932277939 55.23278809458651, -3.2088677188554633 55.233966686598855, -3.2046492953365697 55.234871116387225, -3.2028389797301946 55.235329316212, -3.2037413587457175 55.23656953934043, -3.204684203140558 55.23810591063068, -3.204474752685908 55.239500885011225, -3.2041974784468623 55.24021355475928, -3.2043753500138155 55.240894772430046, -3.203976867648786 55.241240191765236, -3.2044160637543366 55.24172112761077, -3.2042122316589206 55.24226232881182, -3.2046777117013314 55.24257227001227, -3.2041789412510884 55.243242184506386, -3.204633343001593 55.24370499650559, -3.2045081265138395 55.24424543081761, -3.204644046497153 55.24561901222018, -3.204951598319726 55.24694597508218, -3.2043250554979177 55.24755425472799, -3.2043772213943797 55.24927914397256, -3.203760682021639 55.25021982117154, -3.205584221495576 55.250696075277, -3.2066029973692625 55.25109039754485, -3.2084864330913194 55.250945949189024, -3.2087237924933283 55.251509746611404, -3.212001070319445 55.25270838887662, -3.2130007547989647 55.257119804485896, -3.2219553938930465 55.261281078906386, -3.2217174576313954 55.262757243789856, -3.2218692353153533 55.2636004444335, -3.2228860202669605 55.26442600343267, -3.225367120483254 55.26578504578572, -3.2258466011213214 55.26653509530847, -3.225340475272599 55.267474771225764, -3.2271945738112984 55.26788749442834, -3.2276564563743624 55.26857480849115, -3.2287355938986306 55.26937273281263, -3.231999210353378 55.27057098299915, -3.2336643041017283 55.27147977287569, -3.232337667032187 55.272859118616466, -3.231035876902407 55.27351928059368, -3.2300858085989996 55.27435560500165, -3.2300130408930787 55.27505729211183, -3.2290530225516885 55.276082433081484, -3.228197625386924 55.277439003772685, -3.228891263270962 55.27798020636208, -3.229724431196959 55.27896032742992, -3.231974441125008 55.27790419695612, -3.233503080044239 55.27947936542637, -3.235378765079973 55.28056573411513, -3.237431122643496 55.28125487888887, -3.2364337896375686 55.28209173049957, -3.2364727103720963 55.28283722222265, -3.237094842710456 55.28360375575964, -3.237043808054401 55.28449393319258, -3.2378949326966606 55.28603996468356, -3.237966607944636 55.28783653082233, -3.239137162602778 55.28952309744825, -3.2458036644193347 55.289697889660715, -3.2477301254351523 55.2898669329589, -3.250629878152358 55.29043935787196, -3.2515931825540987 55.29452731834349, -3.261699929540203 55.303823152801684, -3.263643671705548 55.305007241315394, -3.2677679947909817 55.30639334276692, -3.2701469869073247 55.30738409371685, -3.271595095249774 55.307836320285496, -3.275973359556687 55.30779065233802, -3.2794901679248563 55.30741236972332, -3.283544397803815 55.30709124342353, -3.2917867755225987 55.31202778504343, -3.301170658841576 55.31085877246627, -3.302006449503921 55.31136209570375, -3.3023011548785948 55.3126619970667, -3.304000948770935 55.313084198467315, -3.3055070225395498 55.31480249562291, -3.306062965308052 55.31685447079852, -3.3064459755302025 55.31891727052202, -3.307296625046856 55.32082229373153, -3.3077053183945786 55.322705083918834, -3.307524401236784 55.323911211548065, -3.308300053214737 55.32544858359787, -3.3085528397808797 55.32690168812368, -3.3096138930984917 55.32944248123729, -3.30749623662147 55.33071428818076, -3.3063266172410906 55.33205680142952, -3.3043677357971912 55.334809623410635, -3.303580439006241 55.33675910587729, -3.304315688816622 55.33850362067043, -3.304098241484565 55.34004262869676, -3.3015728258614394 55.34092327400974, -3.2990714706663393 55.34157894899574, -3.296677857426975 55.34239935386815, -3.2915092983250576 55.342308843501364, -3.2898631827018296 55.3432329660971, -3.2885665758144835 55.34341379582584, -3.288081665858812 55.34392304865611, -3.286729842860509 55.344298547988274, -3.2856694624953984 55.345444698299595, -3.284266203287304 55.34613343913885, -3.283961133173478 55.34679355389505, -3.2832567456964594 55.347394957271334, -3.282013833080739 55.348852124435716, -3.2811321265638416 55.34962971206522, -3.2804774366817804 55.349526041647195, -3.278430803738643 55.35002914481703, -3.276696836355721 55.351281110353895, -3.275468155773497 55.35132809035064, -3.2739871085820815 55.35186565191407, -3.2725325047486535 55.35288459165752, -3.2714084144498043 55.35299783935497, -3.2702289052961055 55.35364634416839, -3.2685834770047046 55.35403008299617, -3.267885554877806 55.35469692875329, -3.2668714433794612 55.35529246166803, -3.2655809565225598 55.35563114164287, -3.264262360604631 55.356474235632824, -3.2652165487946436 55.35701432755271, -3.2673188912047006 55.35843575836857, -3.267073188747498 55.3596325985254, -3.265521291655189 55.3614729175093, -3.26438575147112 55.36168057470722, -3.262622291521875 55.36233324616784, -3.258858613000147 55.36254730790532, -3.2574375160685305 55.36250801990191, -3.254506176757307 55.3628526692516, -3.253254992634078 55.363198002421456, -3.250590688525469 55.36425872833744, -3.2500781974312303 55.3647672082761, -3.25009377553982 55.365261299223235, -3.249572529738047 55.365742907305595, -3.2470654778486785 55.36754781468295, -3.2446524954468923 55.36783301658027, -3.2443784216283595 55.36739547585421, -3.2434600663804334 55.36729249337074, -3.2417032273640745 55.366865530592484, -3.2410225818501672 55.36729929585603, -3.2397924510984386 55.36706465602882, -3.2379133414014465 55.36726792391963, -3.2372832325284615 55.366541916969496, -3.234889891509187 55.36644480747589, -3.233961952947211 55.36780662519332, -3.2338251551624912 55.36924132822383, -3.2315198591777006 55.370967490033486, -3.2265186811649924 55.37227137288375, -3.2248304986364498 55.37253542603317, -3.2254596457208597 55.37451060487958, -3.2253332537200574 55.375373660608076, -3.2241099496242525 55.37602933858409, -3.2233901908437548 55.37622975054993, -3.2217600791350915 55.376335918327165, -3.2173902345787155 55.37613239510643, -3.2162029472553115 55.375241089890196, -3.216182240757189 55.374823432305035, -3.2153111609927776 55.37343472453833, -3.213532706402083 55.37255825663946, -3.2122806367435497 55.37263807891084, -3.211242534159617 55.37145768435714, -3.210226642716267 55.370744349470485, -3.2080984299721766 55.37003301973758, -3.2071175529317153 55.3691710390777, -3.205859253531987 55.36878356947238, -3.206127718045192 55.36723527467294, -3.2059294227538766 55.36694068309071, -3.204480947696683 55.3662630207731, -3.2014036057726134 55.36571818661084, -3.196646857012688 55.36676682709255, -3.194552133153966 55.36610436015209, -3.1933572332819127 55.36598123895559, -3.19194157810782 55.3642876567781, -3.1903934827931884 55.36369617036781, -3.189566819516667 55.36269775403767, -3.1891515086005384 55.362526563033626, -3.1877072691506028 55.3627652650493, -3.1792539104208686 55.36046576038363, -3.181260352879646 55.359507314483245, -3.1817419531057887 55.358199645163836, -3.1819058502071895 55.35655356729645, -3.1795605802048725 55.352743570791745, -3.178414274045322 55.35158641156985, -3.1779552030631293 55.35073264596226, -3.176325225293108 55.34921618384099, -3.1752979554209158 55.347545630251076, -3.1742492681190018 55.34674694558522, -3.172308106612889 55.3469632843892, -3.171049463232838 55.34679562803508, -3.1695036057129653 55.34704857119241, -3.168052740828754 55.348118339691524, -3.1636987969987524 55.35022223780523, -3.1570950137525213 55.350909498402594, -3.1560025554771785 55.35157583700228, -3.1530306401378874 55.35405267632077, -3.151744964736463 55.3548600859504, -3.1501262063843867 55.355333632119844, -3.1483429571860424 55.35557505964284, -3.144536097895545 55.3559297870122, -3.1410082287111276 55.356663706595214, -3.139392493091497 55.35724940939618, -3.1351492373554306 55.35779662240457, -3.1345322770452535 55.358561689593806, -3.1336261612541003 55.35914521816605, -3.1313688234045434 55.35908975443896, -3.127238587325757 55.35973898647013, -3.1252534782101997 55.35899345143276, -3.125107149034007 55.3577277396419, -3.123220362352654 55.3573856472693, -3.1172367506382264 55.35579601956954, -3.1167721947433353 55.35582273159117, -3.1154061143548737 55.35660353096008, -3.113538884599532 55.35695305050867, -3.1125511273164252 55.356779355614954))
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>