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/S03000006 http://www.w3.org/1999/02/22-rdf-syntax-ns#type geosparql: Geometry
http://statistics.gov.scot/id/statistical-geography/S03000006 geosparql: asWKT MULTIPOLYGON (((-3.3025089553682068 56.03033154138565, -3.3014303601617008 56.030516347313956, -3.3002589159109594 56.030374151836924, -3.2996789613090414 56.0299732213041, -3.298664631808735 56.03059042685679, -3.298230671501178 56.03042696655298, -3.2973734699603794 56.029319088895164, -3.2963766732099087 56.02907168635739, -3.297036152720476 56.02849597079061, -3.297812506459178 56.02853452854199, -3.299132643207252 56.02899686173909, -3.300403630611664 56.02985775691107, -3.301330931657058 56.029803048956964, -3.3023230085537265 56.02938463567186, -3.3029646385190827 56.02856736629905, -3.3031137596723013 56.0279925154487, -3.302779296340874 56.02744793285479, -3.3055127945539287 56.027281550066505, -3.306550099372138 56.02687520294326, -3.3075534185825046 56.02745761395133, -3.3073350200648193 56.02797479912593, -3.306503449127771 56.02810671244469, -3.306044799516649 56.02849525148786, -3.305027868107489 56.02874592909468, -3.304996677574859 56.02962863608838, -3.3037504687689845 56.03007671408957, -3.303261169286544 56.030747711191815, -3.3025089553682068 56.03033154138565)), ((-3.218892930381823 56.15941998744974, -3.2269977951675224 56.15758765657859, -3.2271578335602484 56.15806228346517, -3.235955178156988 56.155755246443874, -3.23579186564222 56.15518182441999, -3.2400337504947543 56.15342314364013, -3.2378984693460637 56.151602579099006, -3.238851313608364 56.15119767770597, -3.2384608609207772 56.15006945211986, -3.237565478694662 56.150258129109176, -3.2364355006753214 56.149658445437225, -3.2351039509699113 56.15030072941962, -3.233662849288338 56.150539758388646, -3.235144061221772 56.14904239353481, -3.2345480168860807 56.148024034133186, -3.2353249596273512 56.14765685800599, -3.233974298142036 56.14519042601062, -3.2320885551111234 56.14209136292289, -3.232751906390912 56.141195203855226, -3.234763244564844 56.14118410171527, -3.233196222506129 56.13798303199492, -3.2405322051056187 56.135420658882246, -3.239431030502869 56.134703903715405, -3.237644075011841 56.13467689464103, -3.2370915407789975 56.133505358672515, -3.2380780587439673 56.13265984388138, -3.2374503148797737 56.13165079896965, -3.237924315731217 56.130379125915724, -3.238638380748857 56.129069099581784, -3.238502407750993 56.12834265517389, -3.239941389699473 56.12756446921602, -3.2419340334782523 56.127993712293296, -3.243072729625924 56.127883420848605, -3.244817460202552 56.12711108422415, -3.2469111777518953 56.126685624469786, -3.2471663530093133 56.12562278381514, -3.247119744324626 56.1246797989614, -3.247916912734098 56.12396190716214, -3.2450909321062222 56.12312784048118, -3.24413623377269 56.12345194785727, -3.2436731767272042 56.12106652045882, -3.2548825832293167 56.118536080559004, -3.253500107752237 56.1180649127237, -3.252560856795977 56.11737358904115, -3.252754419552743 56.1164012113012, -3.2538743323808896 56.11572493066354, -3.25249724705098 56.11492124315234, -3.252271901529964 56.11442035060721, -3.2545624500609436 56.11364233396276, -3.255000032703034 56.113745711451166, -3.257944097482145 56.11328445980922, -3.2582127575327386 56.11363214874271, -3.2613976252883847 56.113159375345134, -3.262926075568494 56.113179694156415, -3.265087133654703 56.11238483594603, -3.269368846674514 56.11055281072949, -3.268517556190948 56.11009432091632, -3.270158504191954 56.109628183994815, -3.2721581733924165 56.10882587432247, -3.2752275738913 56.108282045611055, -3.278731485663372 56.10775161528614, -3.282178658619697 56.10648487017905, -3.284121091488422 56.10590759186092, -3.285062331412046 56.106167359650804, -3.286607167775824 56.10721379438924, -3.287673280967027 56.10746493524966, -3.28910724201007 56.107265216205505, -3.2966799917535474 56.10637723631802, -3.302655700508887 56.10552305506832, -3.301996903729805 56.104657863876895, -3.300254336380015 56.101765514729614, -3.3020100932915932 56.10122417794113, -3.3024496845434363 56.100762409747546, -3.3061543182975464 56.098609452650194, -3.3061336867541895 56.098118842672456, -3.3043639436732577 56.09633878208808, -3.3034641530469373 56.09563731468343, -3.302807512830495 56.095426350578585, -3.3020746709748887 56.093717310944335, -3.301455447225403 56.093065658934584, -3.300582733807628 56.09283561883031, -3.3007659515250083 56.09207217448277, -3.300544922480497 56.09086484070728, -3.3012733945762305 56.09101890313132, -3.303406974598062 56.09089755349291, -3.305148856682627 56.09060060036233, -3.3063134783480725 56.089869447561014, -3.3085420806512893 56.089234834500814, -3.311284380235917 56.087166042423284, -3.309371198467385 56.08619795255056, -3.3102807076053375 56.08553236545411, -3.3133428172805792 56.08484388559521, -3.3134294177266304 56.084555429957625, -3.3117780367277496 56.08419560141553, -3.3170779197480997 56.080805560210905, -3.321623530476259 56.07746829348676, -3.3241933802796444 56.07322656240583, -3.324925886161667 56.06929204525113, -3.324918554615689 56.068141982413046, -3.3252959674034384 56.06696981879916, -3.326608317203991 56.066829919095795, -3.3289025557227623 56.06581683201665, -3.3294392185206396 56.066008730521126, -3.3307172374306266 56.06580626092126, -3.332719143435261 56.066566395635974, -3.334203644243095 56.06583151456959, -3.332279183738284 56.06452245340589, -3.337213804406232 56.064163568716125, -3.346199858517825 56.06438035675431, -3.3460600993638954 56.062674634008225, -3.352018967295084 56.063597894294055, -3.3515065017278487 56.062722927601236, -3.352938250440032 56.061413321622275, -3.3555649720335397 56.06066452521193, -3.355169020953488 56.059191877183096, -3.353196930488483 56.055874828316036, -3.3473500056287206 56.055912427088, -3.3457689775598958 56.05616330382058, -3.3413514696376474 56.05612155406453, -3.340295917383612 56.055782588739156, -3.335758617476431 56.056919039766356, -3.3365463453843707 56.057871960074124, -3.3350678692987583 56.05923579359326, -3.3301816773614092 56.05911784091909, -3.330487041619423 56.059590779266216, -3.325093659028369 56.06294649347403, -3.322933444419422 56.061774602447976, -3.3210684131471555 56.05936850146704, -3.3169395572234017 56.05696858618399, -3.3159286028333166 56.05981878498757, -3.315883830541308 56.06086157817012, -3.314708497794813 56.05983179110506, -3.312344959152663 56.05880565181144, -3.3116548456062893 56.058345745049735, -3.3097985631124884 56.05759271136793, -3.3091105556574165 56.05671943814504, -3.307303073284886 56.0554772653822, -3.3050932384673968 56.05554109456584, -3.303719249248388 56.05531693846633, -3.3036810484665455 56.055716638444814, -3.3043095347239126 56.05625811168519, -3.303857046768473 56.05664926755453, -3.3025781004814108 56.056834057052754, -3.302946522299181 56.05759506573748, -3.3027408140101744 56.05874231679272, -3.3009899981299085 56.059000593579015, -3.3005936938662983 56.058453847676994, -3.299167950845029 56.05855872145241, -3.2973330207238876 56.05904695115956, -3.2954150468797434 56.059110906238146, -3.2947854693556042 56.05940281234964, -3.2929647890503206 56.058295910277344, -3.2939196954987184 56.057813039828055, -3.292460275787644 56.056520953135724, -3.2881054842813127 56.05622167723369, -3.287581503904582 56.05543642689699, -3.2874872473750307 56.05405364940434, -3.288124417471018 56.05239480046586, -3.287724337855693 56.051351047356825, -3.2866713076667757 56.05096386047834, -3.2856094654834447 56.05085474937942, -3.285439567896187 56.051307777159145, -3.284916003076741 56.0503703623929, -3.285692720082985 56.05021401059802, -3.287943395258144 56.050155492196254, -3.28881663986059 56.050246111551154, -3.2901303742788928 56.05131512849617, -3.2915247061119977 56.05176688552888, -3.29363477723059 56.052925468514346, -3.2946488272662844 56.05304691821039, -3.2948151240344608 56.05230746661941, -3.2974416190999514 56.050909590389324, -3.298481021815435 56.049779964267564, -3.2982411865241237 56.04947518514848, -3.298920348689792 56.04842482303605, -3.299580760831138 56.0481069705945, -3.299781110336839 56.047237761495836, -3.300432090414713 56.04721293023373, -3.30079506555653 56.04783718844445, -3.3019461456853643 56.04807394393574, -3.303818990928827 56.04781335428126, -3.3046723803906306 56.04722117449471, -3.3053212707086916 56.046326544584, -3.3052484975408674 56.04569293926812, -3.3059369837943184 56.045163596098675, -3.3070151146060467 56.045238438981514, -3.3088047042813566 56.0447998432899, -3.3105868281381836 56.043574171257866, -3.311185165964317 56.04252010404369, -3.311238736766414 56.041591332549366, -3.3108590089953713 56.040854963095754, -3.310027190161344 56.04041901743444, -3.3086870649819713 56.04075672005655, -3.307711191899241 56.040806605388326, -3.3071830588708613 56.04052107295872, -3.3072182246740183 56.039852179367415, -3.30809189349401 56.03910700548834, -3.309017351410745 56.03889681143097, -3.3096290585833428 56.03932791243094, -3.3108983417557294 56.03926950262752, -3.3128340565064107 56.03827488749448, -3.313656098660633 56.03757335309069, -3.313152401287491 56.036731382836784, -3.3158397459809494 56.036322657444636, -3.3171434611887682 56.036430047445386, -3.317774167573479 56.03614565857784, -3.318796628820853 56.03515980227497, -3.3205003128230817 56.0343849941199, -3.321792344022131 56.03410518369694, -3.322572822621401 56.03472939840872, -3.3227594442996553 56.0361498056891, -3.32322958225379 56.037787316678674, -3.324413945157031 56.038344288075685, -3.3266780012072883 56.03893097415863, -3.329906397506298 56.03950542895192, -3.3342768932869897 56.0395894210787, -3.3352913400762434 56.03926395026007, -3.3369447880764302 56.039407780441664, -3.3410897565250264 56.03886678437042, -3.3433171220035565 56.03843550305868, -3.3460873410988805 56.0374159946022, -3.346312480434216 56.036875302823944, -3.347503262242026 56.036410326632975, -3.346679907088901 56.03581189493263, -3.344468115642209 56.0353472088366, -3.342923024913293 56.03522296735793, -3.34237512612213 56.03437350680298, -3.3415588748918816 56.03397624051357, -3.3419791337621225 56.03309108463132, -3.342837246097771 56.03270704765672, -3.343797467476243 56.03295267824667, -3.3457697472111265 56.03216560508483, -3.3460394060881 56.03115268546143, -3.3486728903825886 56.0311068447169, -3.3502495204592484 56.03048396738934, -3.352140211695413 56.028931214332594, -3.3522207671568554 56.028206093890944, -3.351843151319304 56.02768637446414, -3.3524760673678102 56.02743053504501, -3.3534532669741597 56.027521352134656, -3.35419804235174 56.0271609420369, -3.3559493060135215 56.0269035826401, -3.357351033851835 56.02628882514222, -3.3591293392061066 56.02671133149429, -3.36066147962863 56.02693165707024, -3.362475455927427 56.02663397617739, -3.36364255094272 56.025921099679216, -3.364339342630659 56.02679667726301, -3.365279430082339 56.02729036590508, -3.366470093988492 56.02760874804715, -3.367931269040443 56.02749910000955, -3.3694929433875185 56.02759948029015, -3.3697819940342533 56.02801320214108, -3.3711836942673856 56.028036264490545, -3.372240144718988 56.02832373522375, -3.3726656542287365 56.028964166441504, -3.3736142430450076 56.029286072718776, -3.3748024866223347 56.02930697855744, -3.3767857435100668 56.02912131746787, -3.3780376113027493 56.02863109922613, -3.380284012045372 56.027097294603635, -3.3820775965015324 56.02672676925185, -3.3827189785502396 56.026219979621374, -3.3841864526415213 56.02548197271878, -3.385327357630987 56.0257522095955, -3.386150385762545 56.025345797286704, -3.3869531013480367 56.025447295754844, -3.389075027078546 56.02524280312115, -3.389906735331291 56.02543650785127, -3.3916653900672276 56.02655245937363, -3.3935061893749334 56.02740687476441, -3.3941517735686246 56.02751010202891, -3.395520506739935 56.028976353513954, -3.3953128781179718 56.026690959729166, -3.3984979574213225 56.02566736169574, -3.400099893170525 56.026170353406066, -3.401492218516104 56.02456318084535, -3.402193692054323 56.024615411113814, -3.402722732032767 56.02411608266623, -3.400108088118292 56.02395889273155, -3.402216801489028 56.02339399837222, -3.401572189239335 56.02309491530617, -3.3977369752826108 56.02330287999309, -3.397520557369799 56.023618931659314, -3.3964644139364486 56.02351947338268, -3.3955501932476846 56.02370683928277, -3.3954932446906905 56.023062314579846, -3.3947675416716083 56.02287104300004, -3.3927072462237495 56.02300035785468, -3.3897850501060973 56.02289853926477, -3.388825170644908 56.023110630967324, -3.3880431905838986 56.02246797645113, -3.3879997925628684 56.021169142254834, -3.3883494162387575 56.01977962158416, -3.3882286734633316 56.019142102058694, -3.3892851119452327 56.0179135491354, -3.3904871693443583 56.01703378471722, -3.3906090134047386 56.015157106540215, -3.389281580007106 56.01473267122771, -3.388714852675223 56.01409388570853, -3.3883990372131256 56.01248990996016, -3.387699600490437 56.011459042714066, -3.388459014724293 56.010763990091945, -3.391190292417872 56.009819363024114, -3.3896847389802627 56.00947691469398, -3.3890274750455953 56.009039530979386, -3.3892116173524793 56.007869321375004, -3.3888039357443054 56.00759266312624, -3.3896331627930345 56.00678988656551, -3.39054750908305 56.00666096712621, -3.3909046441225725 56.00593269463063, -3.3921003183156904 56.00617978438298, -3.3917602861182705 56.00675870542955, -3.3931287918228623 56.00779636963322, -3.393299877311621 56.00840546133153, -3.3943337495483172 56.008655256747545, -3.3951930536996042 56.007755057058986, -3.3957958855301715 56.007838090771415, -3.395214145962407 56.00882950365184, -3.395574746001185 56.00988932504765, -3.3964165827041612 56.01001637596038, -3.399269742915995 56.009344250719636, -3.3984479135424297 56.008172857899105, -3.3999188942751783 56.00831251587371, -3.4001478914102137 56.009233642434964, -3.4013681716785005 56.009004123235975, -3.4033039702829258 56.009532029752734, -3.4041315310630993 56.00961875505215, -3.404365324343107 56.010713243130375, -3.4052627052664177 56.01108760587092, -3.4056303506887127 56.01175913796992, -3.40683082645503 56.01226302189369, -3.407719214981775 56.01304991209362, -3.4078120908936222 56.013530483872074, -3.4095981980137235 56.01557678395012, -3.409032348276581 56.016205059547424, -3.4100448622418384 56.01621235573017, -3.4204048685529886 56.01822486075774, -3.421822169914539 56.0185499835477, -3.430421802873586 56.020301584213684, -3.4305465301008247 56.02042054573396, -3.4394463335874845 56.02223992498096, -3.438462512007703 56.02378526439888, -3.440089032509277 56.02411762298932, -3.4411047376639003 56.023128113155636, -3.4425592855150975 56.02319467445152, -3.4418207013149877 56.02447209386875, -3.4439759667011005 56.02491143873659, -3.445011111268065 56.02332771302609, -3.446030783394906 56.02326364392062, -3.4466482120407207 56.02209724509088, -3.4429939846562436 56.02134212623619, -3.443059158188026 56.02123982503608, -3.446934937767746 56.02204176408815, -3.4482540581508725 56.02192024821316, -3.4490730728616805 56.02129780086146, -3.4485408476309636 56.020795461711764, -3.445626383933023 56.01995624942979, -3.4458776960191937 56.01942584127847, -3.442737062017558 56.018024011540085, -3.4428051364679186 56.01791358930418, -3.4506505880127505 56.019510863067175, -3.451811028341321 56.01952416382581, -3.4559421522255303 56.020374930916816, -3.4575001915669787 56.02148693191139, -3.4576809099851578 56.02189724116862, -3.455033240091992 56.02598286959479, -3.45404539169619 56.027407076069025, -3.455386318478732 56.02734902658385, -3.457329491176613 56.0275597093692, -3.459103815165245 56.02754771615355, -3.4596344783968696 56.02825759952288, -3.4596042851489663 56.02903072955897, -3.4609822855288965 56.0296128633646, -3.4628503647038418 56.030125371559755, -3.4651475515287005 56.03048359178333, -3.4691505872958546 56.029444846047326, -3.470253892094087 56.029508975959324, -3.472406372801968 56.03078623083293, -3.473456753390763 56.03118703109692, -3.474576029934153 56.0313318036204, -3.475385990363246 56.031024689038944, -3.4767321295893345 56.03152076661448, -3.4774438942747667 56.031584128533645, -3.478510321913041 56.03126942798438, -3.479109259730488 56.031907423887404, -3.4806310515581385 56.03242022284677, -3.4822448593885826 56.03382508170669, -3.4839732563256516 56.03403073981884, -3.4855058022237744 56.03436004053921, -3.4861682004805035 56.03401419633708, -3.4872332769495955 56.034624071786546, -3.4914937987705916 56.03489701212579, -3.49348968213926 56.035252060807565, -3.4956488397729957 56.03497249914677, -3.4985041472884295 56.03497288734116, -3.499309806925898 56.03464050713593, -3.4995048075714936 56.0334609991267, -3.5013229360289073 56.033743500015134, -3.500756674804405 56.03519800109535, -3.5034394859176037 56.035467251711346, -3.5034135281638212 56.034675920274445, -3.505168087926303 56.034889949233154, -3.505697968211933 56.03423650491736, -3.5066665885314148 56.034669473367344, -3.508470378487117 56.03602135423348, -3.5102366897428707 56.037191256543196, -3.5106788045324047 56.03782563116004, -3.5123681728620317 56.03907641950831, -3.512214081185248 56.03944582771277, -3.5133304812074226 56.04032712141898, -3.5211286453996884 56.04167252719257, -3.5223747184207514 56.04172275147032, -3.5237834718441796 56.041583150290876, -3.5253297446586886 56.041715001222926, -3.526816618111416 56.04152138300549, -3.527818939852647 56.04060320230681, -3.527994810932763 56.03961078667971, -3.5292555735130042 56.03922225102657, -3.5310041908600986 56.03915563061368, -3.531378852291715 56.03982042370762, -3.5353319648353634 56.04000940755011, -3.537593695547043 56.03988778266544, -3.5444039783076664 56.04011271443624, -3.546148130529882 56.04045568996347, -3.5473474212679337 56.04138236848033, -3.5504451012223464 56.042330118577404, -3.5513200805879626 56.04245210845864, -3.5545413636035192 56.04431296238519, -3.555978220444364 56.04455274101652, -3.5560477044873338 56.04579999996334, -3.556511909307054 56.046722382545035, -3.55832364493001 56.04900977339066, -3.5594718504129808 56.0499297932508, -3.5615148344883107 56.05093822350233, -3.56360858811361 56.05272235522963, -3.565265663773408 56.053592739829256, -3.5661194236789187 56.053698721275765, -3.567213982552796 56.05431742670418, -3.570175991332109 56.05655139188637, -3.5724903146906826 56.05785811538753, -3.574612859755007 56.05863258481278, -3.575727540187289 56.05883221788288, -3.5793592659524855 56.05872737533775, -3.5845040519733993 56.058510449363915, -3.5858178774207516 56.05859151605476, -3.5899645120037644 56.059760231438986, -3.590526149274668 56.059358512066176, -3.590497808318611 56.05812421564672, -3.5897229330736287 56.05759774422733, -3.5867772792740147 56.0561044673485, -3.587160719443443 56.05550916218259, -3.5860135175158683 56.05459477369885, -3.5859076391561278 56.054127969775756, -3.586623777324844 56.053540070591616, -3.5863354793560496 56.052502312709095, -3.5864434399883063 56.051025440319485, -3.586715774645817 56.05018894520539, -3.587411571579179 56.04902979881092, -3.5888115270651455 56.047620758790266, -3.5899936751592216 56.046851610337285, -3.5923317550077396 56.046044171407765, -3.5949008065205965 56.04573960857675, -3.605853800920707 56.04571163325851, -3.6074397960000155 56.04589945079165, -3.610381752912682 56.04734196371245, -3.611503297424662 56.04874889392107, -3.6121617404860946 56.05017624442395, -3.6128608417804084 56.05299947484073, -3.613162738378016 56.053691937924796, -3.6139921662595835 56.05459585847823, -3.6148187148724893 56.05516104142575, -3.61645062476973 56.05582170401572, -3.617840168414758 56.05594726579029, -3.619216702265691 56.05557066840241, -3.6266755555970174 56.05445264470919, -3.629413518352768 56.054338336573686, -3.633094121845035 56.05468056103176, -3.638707833862207 56.054596240322965, -3.650134496055663 56.052626967326695, -3.653031306668197 56.05228895299433, -3.6537262217142663 56.05190492329744, -3.6548582177161553 56.05182863909359, -3.654910881837613 56.05133370205804, -3.660528082885157 56.048577691738465, -3.662800736447778 56.04769879848026, -3.6650402371614 56.047096181209405, -3.669715864587361 56.04624760342657, -3.671408356226811 56.046179752827136, -3.673434474053659 56.04625292754323, -3.6768148709980735 56.04667789312372, -3.685006897964325 56.047795560798704, -3.686352534138257 56.048056639876954, -3.6933459397972728 56.050424824228074, -3.696719477110515 56.05144781572687, -3.7018720733760606 56.05330166250816, -3.704989166751639 56.054579578919565, -3.708413378784086 56.05636986604716, -3.7097883171115997 56.05720989017544, -3.716295436620844 56.06175637170243, -3.7210936110018595 56.064975755243914, -3.722808170574724 56.0659618666545, -3.7237819959453318 56.06722968545721, -3.7242970365372536 56.067611587940924, -3.7241276708391235 56.06849549183356, -3.7243477248119916 56.06892644601409, -3.725433384809614 56.069386635383815, -3.732730614126008 56.073836752315664, -3.7353386925476078 56.075168690785944, -3.7391518972514617 56.07685382616071, -3.7392980613176316 56.07706653463263, -3.736558631240632 56.08067799278442, -3.735781293183491 56.08122360172551, -3.736350963758673 56.08202703440008, -3.7360142040272426 56.08268596062683, -3.7363461113593583 56.08331211661128, -3.735478748671203 56.08375115616362, -3.735624883059535 56.08442755241321, -3.734377420727646 56.085314044728705, -3.7335403520035744 56.08521257954079, -3.731408062963437 56.08568732166133, -3.7306887267615174 56.085594968850124, -3.7300802015472208 56.08632508366075, -3.728722782711084 56.08741614398658, -3.7286546411781156 56.087904144482486, -3.7265658308663046 56.088313492396715, -3.723319646626139 56.08936889318465, -3.7225744956998192 56.08902344575821, -3.72215034546068 56.08805527343495, -3.721452325852925 56.08779273235846, -3.719815928563417 56.09023998666049, -3.71939941466062 56.09175005741321, -3.7187270256380844 56.09235250200055, -3.71787134789434 56.0942901269132, -3.7176787030841085 56.095451111084856, -3.7176944015889206 56.09843875732605, -3.717530073874643 56.09886428697639, -3.7175568062545903 56.102316357031064, -3.717447655527795 56.10275369901225, -3.7159021271949717 56.10390204009174, -3.714486329363559 56.1045345577756, -3.7137357254739536 56.104650115827646, -3.709528685915989 56.104563766456174, -3.7086828385967627 56.10423580380409, -3.701918794873239 56.1030100849428, -3.6932654593177268 56.10239491489271, -3.6909299485734435 56.10211780684947, -3.6882419427235877 56.10216178290936, -3.6861776501157952 56.10187189015659, -3.6806185373091718 56.10207439446003, -3.6803413891783636 56.1023558339644, -3.6744804205614523 56.10023749681556, -3.6739951722755313 56.100873994648836, -3.675028042308116 56.10133354608998, -3.6747347507987045 56.101984515473134, -3.6749369040539914 56.10275187124472, -3.6744001267577695 56.1030538924596, -3.674894098618801 56.10354321784688, -3.6743954309465514 56.10409363338434, -3.6747290522556657 56.104852017457794, -3.6747406239395035 56.10593287298878, -3.673968544304878 56.106742196306065, -3.6724598714939387 56.10780950710036, -3.671185316444743 56.10749069038424, -3.669799576956152 56.10694332378117, -3.666985457295634 56.10746299834715, -3.6661779190971435 56.107419084382435, -3.6644739963247064 56.10780599810044, -3.663677986221579 56.10814111943254, -3.6635260729831574 56.108570897492356, -3.662049224414723 56.10934021454489, -3.657997218583856 56.10950162542601, -3.6564896038281858 56.10929631394864, -3.656037654346578 56.109032798478225, -3.6567793152433303 56.10832913435215, -3.655980806406133 56.10785909908565, -3.6552514010542585 56.10802433661089, -3.653297112811724 56.1075634834652, -3.6525724460535223 56.1081770396296, -3.651243936112945 56.10839699745328, -3.6501813143800774 56.10836717313536, -3.6497271941970464 56.10891599158858, -3.6490074416606384 56.109195184104905, -3.6477910726161706 56.10910538949449, -3.6471467058119518 56.109530934015794, -3.6461075966842467 56.109148512775604, -3.644635550779107 56.10936042797226, -3.643810039145053 56.10900839014931, -3.6429682836022343 56.10925592346584, -3.6412933781100327 56.10897177983952, -3.640777716126353 56.10928685018291, -3.6392403061581136 56.10913474158518, -3.637399385689815 56.109181633419944, -3.636457713292978 56.10938731468626, -3.634938916141194 56.10883952635021, -3.6326929148699896 56.10945961992407, -3.6310396668551532 56.11002781246921, -3.628793069286121 56.11044655803705, -3.6292377799546314 56.11145609609704, -3.6322455670232237 56.11230148219581, -3.644298381351764 56.11559395198375, -3.6510224268108122 56.117756101076736, -3.655457207957801 56.118396730769255, -3.6571629708735145 56.11886268578612, -3.659651537715751 56.1198374858592, -3.663003356579189 56.12236147058048, -3.663887839184211 56.122950715390424, -3.6632093553870666 56.12359336300205, -3.660553297743758 56.12418982731694, -3.6584039990828714 56.12418995351975, -3.6570816706372575 56.12430385299091, -3.6546219998984912 56.12486879842961, -3.6541603426585874 56.12509513766625, -3.6529060960687314 56.12668446474874, -3.6520080441926908 56.12739019260318, -3.651887769061212 56.12807473003129, -3.650733041724234 56.129174767516815, -3.648700879671353 56.12958740691758, -3.6464766907420585 56.129573945589975, -3.6456345158141814 56.12993472096503, -3.6436502465868124 56.129661913854996, -3.641570846626835 56.13017660426656, -3.641053584213234 56.12993187357034, -3.6387706438209935 56.12989928502351, -3.637272094770594 56.1296585692413, -3.636445015044532 56.13037671896194, -3.635047376157697 56.130201134543725, -3.6347751378429582 56.130648640250335, -3.6319071066373017 56.13120056004349, -3.628382858983098 56.131228204597534, -3.6283533543664794 56.132775958247834, -3.626647191477672 56.13242103416192, -3.6247034929328734 56.13269013384626, -3.6234885828159102 56.133376453252346, -3.622334259794594 56.13351562517307, -3.6185987323357938 56.13453240892733, -3.6181234647299263 56.134748904677075, -3.615921415361269 56.134962841107445, -3.6149030201794647 56.13539040696492, -3.6139172755788276 56.13502319037125, -3.612186896481569 56.1346270484993, -3.6070598542917915 56.13489244895114, -3.605876226738665 56.13533466952324, -3.6043057484007286 56.1364189977475, -3.602137029771634 56.13678052003907, -3.597830847829122 56.137057349505746, -3.596494521079237 56.13723637295348, -3.5947094288176364 56.137732084853326, -3.59364473158774 56.1376703451728, -3.5915822576052636 56.13791978489247, -3.590949024827031 56.13766735460559, -3.5880913932549405 56.137562152055274, -3.5847481405945723 56.1382089343059, -3.5833537788863 56.13885761676743, -3.580930578387828 56.13933973948417, -3.5808870272017304 56.14004298392953, -3.5782582357078803 56.14108749733379, -3.580926660764187 56.14277235236407, -3.5811204442394273 56.14372865320452, -3.5829026225108085 56.14385589227385, -3.583806154209029 56.14406536138808, -3.5839553691545736 56.144758048009685, -3.582658447999381 56.14860530035639, -3.5828998301400414 56.149347127256306, -3.582891967066968 56.150878401047244, -3.579026688234551 56.15354631014296, -3.5783071624556984 56.15370646437587, -3.577462959661913 56.15455651417162, -3.575608747909308 56.15551289363525, -3.5714218649236495 56.15738672410456, -3.571522987927289 56.15765500983033, -3.568833326330068 56.159098151378565, -3.567759609640537 56.15803798583928, -3.563923247630853 56.15987565900183, -3.5618833352595343 56.15964357132263, -3.5587873448607548 56.15850194552757, -3.556389826715376 56.157347852683245, -3.549259533722165 56.15837017774489, -3.54608831373102 56.15855007606374, -3.5439041544106487 56.15459762668632, -3.5419905029418572 56.150876290003836, -3.5405896175827283 56.14994308068218, -3.5402646523019805 56.148258721443, -3.539905351648281 56.147284658770644, -3.540011129662795 56.14646833794527, -3.532934379692518 56.147461210287354, -3.5302455874795187 56.14801301778659, -3.529522625602695 56.14825110525821, -3.5277759931779165 56.146870053758356, -3.525642889617299 56.146172169636216, -3.5245873275260053 56.14658775870515, -3.5221079903072257 56.14686094388165, -3.5176718286349584 56.14755709680552, -3.515570423697297 56.14753796576819, -3.5112799624129587 56.147931979752734, -3.5025074801013916 56.149180155845215, -3.500432938565186 56.14964566389673, -3.4991595416551076 56.149809385204534, -3.498134665267275 56.14974094661726, -3.4970986147347363 56.14938509508703, -3.4959948734246495 56.14935802977606, -3.491640854596158 56.14978357813953, -3.4865748931522034 56.14865853842299, -3.481207865936446 56.14723139234158, -3.4784920997359015 56.146931456142, -3.4761941215832404 56.1478709735218, -3.4751169786441163 56.14790630336633, -3.4740902403020786 56.14841725852887, -3.4732987772095547 56.14855699046558, -3.4718763403157773 56.1484032190924, -3.47115506390884 56.148694855938096, -3.469769109834097 56.14886410677011, -3.4688168998933877 56.14922137592803, -3.4669485533659867 56.14898299259242, -3.4655480760274617 56.147925837497226, -3.4650282873884493 56.14716822862709, -3.4633084734693385 56.14681121705352, -3.4614407882429967 56.14658622184229, -3.460309985598825 56.14626712753443, -3.4586403721889893 56.146808014695594, -3.458392130157344 56.14705355566412, -3.456772638127448 56.14998398444217, -3.4565062342167354 56.15017582209389, -3.4537050183160236 56.15038403217705, -3.4526169096880923 56.148851315322716, -3.452027409418233 56.147092583730654, -3.4484799658637435 56.14718454592255, -3.444837033406597 56.147091522154604, -3.44415203460414 56.14681019684827, -3.442542175277369 56.14650372828999, -3.4411474309627463 56.14588023578782, -3.4403674703998703 56.14503840122487, -3.4348254483700833 56.14511726932957, -3.4343855953340343 56.14501904353024, -3.433630436122134 56.14375815361601, -3.4336556321625293 56.1430515983335, -3.432854878831279 56.142207263033484, -3.430910855421191 56.14251553604864, -3.4298431764499924 56.141935752083945, -3.4284286082687196 56.14185237757949, -3.427764668542332 56.141568921927266, -3.426123804635711 56.14167593386119, -3.4246355451297554 56.1407747856325, -3.4242610869288193 56.140266928717324, -3.4224968248433356 56.13986403931723, -3.420261110205352 56.1395932420908, -3.4190165961598487 56.13914299318641, -3.4185267304760005 56.13873259004064, -3.4166206315901255 56.13840762301806, -3.4147727206099225 56.138701960667824, -3.413796337506499 56.139021342340214, -3.412868254156761 56.13903465648751, -3.4121120061987043 56.139389245813604, -3.410837592323931 56.13939392348509, -3.410349941795772 56.13895381099273, -3.4086026522651394 56.13958116765668, -3.40719041208654 56.13951369811219, -3.4070833827805047 56.13984378654806, -3.4060067847310425 56.13988929127402, -3.40463824217195 56.1405787723362, -3.4031388068093618 56.141078333703206, -3.4011550006902556 56.141580675770705, -3.399726433768968 56.14093284332804, -3.398012163071236 56.14185619516786, -3.397126403495604 56.142062099451515, -3.3950360023340735 56.14202462211122, -3.395018382672754 56.142293486872134, -3.3923784483808372 56.142281038373255, -3.3919844142741282 56.14215518958719, -3.390358272104982 56.14267309435123, -3.389764113271393 56.14257644710247, -3.3881939743084675 56.142952621181365, -3.387299870006056 56.14270568079297, -3.383548532590115 56.14320690810967, -3.3829081784629302 56.14348184475677, -3.3808018644649867 56.14304714715651, -3.379448812388997 56.14422947357431, -3.3769534056055535 56.14488629378747, -3.375732283029431 56.14485586947057, -3.374316280373762 56.14540806087516, -3.3730992926420895 56.145584229612, -3.3724286865495 56.14542005932318, -3.371879960386268 56.146011106086306, -3.370224771321877 56.146131909122914, -3.36951995684297 56.14699693483118, -3.3683566596164964 56.15094993601821, -3.366587641600977 56.154989593567045, -3.3673460937366855 56.154858102281, -3.3674101005202206 56.15616117836512, -3.3685057909176677 56.15804227561049, -3.3705313147623674 56.161976105283436, -3.3716865826364506 56.164435174473006, -3.37044495028302 56.16438874814636, -3.369885459050332 56.1648666857066, -3.3673764645407793 56.16568159502195, -3.3662822922077758 56.16570717525466, -3.3652551858839774 56.16626124507748, -3.3629986917463257 56.1666626417307, -3.3611752159419748 56.166741145134374, -3.3586967208269463 56.16701461963919, -3.3575051801464575 56.16743115828035, -3.3557156564851303 56.16852006380441, -3.3519044971948078 56.16937229515559, -3.3506582208297915 56.17002298527941, -3.348682279801591 56.170397689628345, -3.3486544587027924 56.171257893360945, -3.348257742263835 56.171795054398004, -3.345946763987367 56.172770895608295, -3.34402354306582 56.17332286022083, -3.341953454072132 56.1737757532794, -3.3393602130778266 56.17391620022124, -3.337094392752871 56.17328210763159, -3.3365016539130283 56.17295785790391, -3.333386795546169 56.17291872119529, -3.332166513720833 56.173076544540244, -3.33012657717577 56.17296104008281, -3.3277815152989074 56.17240490464973, -3.3272278473497683 56.171996627514766, -3.3242773637115453 56.17191056971996, -3.323246624199152 56.17125759364623, -3.3204836648565346 56.16996989568143, -3.3180828289527526 56.16801156333531, -3.3164187170813038 56.16649191054913, -3.3132085835907166 56.167183790559406, -3.3099045419875215 56.1673913744009, -3.3088312467127916 56.16718080872888, -3.3078847747133584 56.16762122595307, -3.305675408493254 56.168101940933354, -3.3074848429153314 56.169358725823216, -3.307476697303014 56.16968767461136, -3.2965594621203733 56.1705709349724, -3.29640859702426 56.17221143627285, -3.292922904529176 56.173451081335784, -3.2940030052724696 56.17434010381552, -3.2945539883748354 56.17530025283248, -3.298580098391755 56.17536943495592, -3.2991943125592775 56.176385506891364, -3.3005096247869807 56.177220784609396, -3.2987445381010785 56.17794918252428, -3.300178213994454 56.17861519504775, -3.3027304775034314 56.17896390655437, -3.3056103613338763 56.17904403901137, -3.3072221086946203 56.180299322460854, -3.3091262223383966 56.18531183725829, -3.290618813202854 56.18950669613102, -3.2766557210308873 56.19260993132468, -3.2729241504746835 56.19043144553455, -3.2707861294016296 56.18863842427583, -3.2608779855172716 56.1877065786696, -3.2607315565559047 56.18618956906025, -3.2599882272872605 56.184157499334916, -3.2585411178939294 56.18277054513312, -3.2508389875191526 56.18422346419138, -3.247807208442771 56.184137297979134, -3.2476352170521627 56.18280922172727, -3.241976150147838 56.182183335029286, -3.2402914455435257 56.182397927323116, -3.2387767505544867 56.18288933162266, -3.2365341389993447 56.18379233511212, -3.2357469520014335 56.18386310357123, -3.2342842091194135 56.18447074299338, -3.233433131763603 56.18504587170947, -3.232545874375323 56.1853411140507, -3.229087217703937 56.18330615469714, -3.2274626151252273 56.18346718313337, -3.2258601427922273 56.18250706991415, -3.2284336648164706 56.18144541912865, -3.225865102271598 56.18015177604158, -3.224075654962802 56.17910027210806, -3.218651700827486 56.1807801884637, -3.2175792686354527 56.17998208871987, -3.213757681967002 56.18037908168915, -3.2098399396402586 56.180282712683294, -3.2080682131938607 56.177730282652135, -3.205831248550138 56.1742029812024, -3.206764134000548 56.17313362669865, -3.2085220644559698 56.173206299700176, -3.2070450805583985 56.17079473573572, -3.2129558201738644 56.17079077555377, -3.2113603203243724 56.168712875641994, -3.209722910785801 56.16580872780428, -3.213185860919475 56.16582868974766, -3.2169905808954415 56.16596199979984, -3.2200388148460144 56.16661481945416, -3.2200996796759913 56.16294825325656, -3.218892930381823 56.15941998744974)))
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>