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://opendatacommunities.org/id/geography/administration/md/E08000034 http://www.w3.org/1999/02/22-rdf-syntax-ns#type geosparql: Geometry
http://opendatacommunities.org/id/geography/administration/md/E08000034 geosparql: asWKT MULTIPOLYGON (((-1.6816174237143489 53.75645342663141, -1.6767057145121986 53.75396676534877, -1.675660565503103 53.752621961476585, -1.676133981617384 53.75237613869889, -1.6758857745412723 53.7521165967792, -1.674562209963871 53.75207168024784, -1.673334226368843 53.75163326548916, -1.6639639487032933 53.747599580616374, -1.660837352418216 53.746833123305635, -1.6583644995850189 53.74660407453533, -1.6586587573902516 53.74622383647511, -1.6580562464364363 53.74610441078205, -1.6584406779270005 53.745442195481154, -1.6421236319861217 53.74761197908775, -1.637878391255364 53.74771335476634, -1.6395364468772018 53.746753034722545, -1.6384311731888146 53.74603248407925, -1.6388270474836444 53.745135754185405, -1.6377498488376734 53.74380229018338, -1.6358606389804482 53.74257148382341, -1.6368091573405146 53.74105535741716, -1.6367937431746675 53.74002979328909, -1.6362847454376366 53.7394485042339, -1.6347496639313326 53.73988871334627, -1.634273581958818 53.73955111405883, -1.6362541138343132 53.7386088942125, -1.6363102927243287 53.737892738226535, -1.6355920672662712 53.73680744262644, -1.6345105119333665 53.7361713901336, -1.633697828275388 53.73392549334399, -1.6327190899598587 53.732301958565756, -1.632088768903772 53.7320923707005, -1.6322119453437622 53.729447584958656, -1.6311882908478168 53.72829123737438, -1.6314737914457043 53.728225621864276, -1.630544576808957 53.727892004633375, -1.630748654029438 53.727605904151616, -1.6299872299518015 53.727150596604474, -1.6305002384062082 53.72690498532726, -1.6297408919369338 53.72672733541825, -1.6291361548768066 53.7260351971964, -1.626672028995249 53.724652402992774, -1.6268672850843142 53.72381079478705, -1.6252580497802152 53.72328353705138, -1.6249381750135223 53.72141390099015, -1.6228998971711364 53.72107854653785, -1.6229198137563947 53.720038711293974, -1.6235346198550011 53.719581390908644, -1.6229285069938364 53.7194014828233, -1.623368195415371 53.718531893965455, -1.6214447267289873 53.718590532718764, -1.619536621793622 53.71930001379938, -1.6189825927663528 53.71888923255988, -1.6181627742336584 53.71889839562172, -1.6104728319670765 53.720979517436994, -1.6083315886591751 53.72114425724439, -1.605752020216628 53.72085356643325, -1.6054520811747937 53.721168063428536, -1.6015763334005113 53.71980615575784, -1.5996676250969357 53.719735011879386, -1.5922010168293292 53.71852079038368, -1.592167345850838 53.71824293145466, -1.5897748634788884 53.71791209823965, -1.5878666901429468 53.7165563709045, -1.5851633779040604 53.7165686135912, -1.583613322026345 53.71610039316229, -1.5829772936978732 53.71483624812444, -1.5833782974486532 53.71458505807468, -1.5814034436517808 53.71357691632811, -1.5806206995727605 53.71290727064136, -1.5809314896775502 53.7127330487788, -1.5797766473267447 53.71246294376659, -1.5785580261632777 53.710838115860135, -1.5785699742847326 53.70979196571635, -1.5767874639798938 53.70942976715913, -1.575077532354912 53.70862373187977, -1.5739426055378432 53.70864755915358, -1.5739816751521791 53.7083780404862, -1.5736800613585462 53.70854688597318, -1.5737394872282975 53.70820375748608, -1.572879602042287 53.70814318987637, -1.57294161954145 53.707853085882064, -1.5710201783586417 53.70701568694677, -1.5711189799532155 53.70638866632949, -1.5763644202158447 53.704635806563665, -1.5812579006864107 53.70350697608161, -1.5844484809266324 53.70299853145399, -1.5864628427601672 53.70302885903356, -1.589914761268859 53.702272268915515, -1.5912233470946426 53.7013464590872, -1.5950142088924482 53.699980486375395, -1.5958109868764843 53.70060515764947, -1.5983726551509887 53.69976534786969, -1.5995748398736733 53.69806156682194, -1.601366770122984 53.69644339156948, -1.6021546866390675 53.69623565618009, -1.6025517034187677 53.69332572747238, -1.6018959485196556 53.69268629233783, -1.6024960366994396 53.69215615573455, -1.5954899780833018 53.691265427730286, -1.5922995988253528 53.69154853793807, -1.5919167228938027 53.68931907295336, -1.593074207416224 53.68894633110767, -1.5958767093037012 53.68677257715425, -1.5988345604868053 53.68368256440296, -1.6022249687366847 53.68396343247953, -1.6035283647250662 53.68237055722942, -1.6050461015684594 53.67937715552938, -1.6074984800196332 53.679071523600065, -1.6108145802145941 53.6778590337752, -1.611579241648852 53.67800618295022, -1.6123585593212213 53.67771298891688, -1.6137593865597473 53.677823632335304, -1.6141053010637785 53.67757305907482, -1.6152135039163955 53.67756583888584, -1.6146743377909503 53.67460424140883, -1.6139443086052427 53.67365004414456, -1.6102764023303147 53.672522786142004, -1.608021136196532 53.6723419182832, -1.60758119726048 53.67196658621605, -1.608491223766822 53.67094582896486, -1.6067130948405974 53.66912167388474, -1.602875618590337 53.6691835994656, -1.5991118772574504 53.66737798286465, -1.5951342939493258 53.66470315094103, -1.5912264510549503 53.6628553739384, -1.5914115504618649 53.66233294971917, -1.5905577355289726 53.66173949799305, -1.590305752649041 53.66103847433075, -1.5906228332380183 53.660647603775494, -1.5908787645779598 53.66047685209942, -1.5918441511514878 53.66079383352378, -1.5925886508461342 53.659071479785915, -1.5952294754176022 53.659819320563024, -1.5961180670160375 53.65947888671059, -1.5965612447168926 53.65886297538348, -1.597137156494339 53.658927812660274, -1.5984558332258205 53.658370455569894, -1.6003587838351288 53.65859885272665, -1.600170158593379 53.658227834675905, -1.6022479114795563 53.6578851173295, -1.6031454060921695 53.658021171067446, -1.6063038155648273 53.65699248840147, -1.6086131955629723 53.65712773967823, -1.60985426539389 53.656765082445695, -1.6104763406635785 53.65690997867239, -1.6111215324378316 53.656183157598164, -1.616738986327165 53.65574460509819, -1.6177680987765346 53.655397362110044, -1.6213196153005571 53.65534933316923, -1.6215925254304517 53.65461588666907, -1.6231246224392557 53.65434566459843, -1.623234671541921 53.654049394599795, -1.624655805312253 53.65399365055773, -1.6248982025186018 53.65362680628465, -1.6239758384663687 53.653049552130554, -1.623370496228431 53.65136319863387, -1.6224507783266728 53.65101426616433, -1.6216178557410144 53.650084049262055, -1.6218122238879662 53.649495023787246, -1.620830894842894 53.64775993459376, -1.6192018971818338 53.646376906025026, -1.6207772095281712 53.64361979692714, -1.6221946824323865 53.64292950250726, -1.622712339705925 53.642206618990706, -1.6225967219937614 53.641438697973385, -1.6237646313139376 53.63937863033608, -1.6231619139383893 53.638092322803324, -1.622033985889972 53.63738051854268, -1.6194366821201869 53.63912046049481, -1.6171883858393028 53.63770038881701, -1.615793868412905 53.63470548777937, -1.6135809862471602 53.63374741487035, -1.6121359145383698 53.63269204819939, -1.6156340803416267 53.631815267360345, -1.6156894461562112 53.6302218315614, -1.6102725138916762 53.62796356722042, -1.611954579793568 53.6267403228672, -1.6145688268699019 53.625910127421854, -1.6136724845259807 53.624557227821384, -1.6118636255153003 53.62396083957401, -1.6116979071640478 53.62339492174056, -1.6110105837397075 53.6233360816687, -1.6108173989115078 53.62296605201079, -1.6090927539851396 53.62226566075317, -1.608103191061827 53.6213689783679, -1.6075106894916733 53.61955677609402, -1.6060927730972867 53.619549425815734, -1.60544915368195 53.61868710488474, -1.6042161971595355 53.61863092025538, -1.6030616328238099 53.617937714771095, -1.6028366462685 53.618230892326224, -1.6025171257816284 53.618130989057306, -1.602354748433807 53.61738436619244, -1.6017465434542864 53.61760528110566, -1.6017818739800493 53.618023324455216, -1.600695240044904 53.6181554802518, -1.598526586892289 53.617128980770175, -1.5957068373742371 53.61685702229509, -1.5958925128013146 53.616403690583965, -1.5942253539550368 53.616078971221256, -1.5946612719691216 53.6155385177411, -1.5919080147328872 53.614652790116025, -1.591630215412563 53.61399300984237, -1.5894664425691931 53.61281621006444, -1.5884661019357138 53.61123443243632, -1.5866852996544365 53.61033484870025, -1.5868645913943091 53.608997131595544, -1.5860857349383393 53.60827091021079, -1.586450259647987 53.60715757849189, -1.5881042779266028 53.60647209559891, -1.589936169828724 53.607087795242286, -1.5911482582928829 53.60676476944083, -1.5880702930972594 53.60375208499356, -1.5875579560701425 53.60344291928322, -1.5868958956777834 53.60376870630734, -1.5856151770625828 53.601992741255906, -1.5851884508455107 53.600515354473174, -1.5851495486817593 53.60016199030121, -1.5857004226476754 53.600232188961705, -1.5866140154834545 53.59982640459125, -1.5861399693717066 53.59900859139109, -1.5865028782678567 53.59681399614423, -1.5879754148461165 53.59346999072996, -1.5888712691339457 53.59347576564555, -1.5896289303722333 53.5938721210455, -1.5908516890651998 53.592404886753314, -1.5949287697101755 53.590893416187924, -1.5976726558533993 53.590222265788746, -1.5979661204031912 53.58938191462639, -1.599612794928202 53.58922209370337, -1.5992824687582317 53.58883990301524, -1.601749162299808 53.58774252447799, -1.600396722438219 53.586187524729084, -1.6025702827789636 53.58491931925802, -1.6021213839220014 53.58414037908713, -1.6023077736222089 53.582950922911316, -1.600701408524176 53.58110564947643, -1.5992833835723728 53.58075846381986, -1.5979851982370465 53.57972667875141, -1.59855837023315 53.57916510349132, -1.5996711285204817 53.57904922874101, -1.6002628469554543 53.577322791763564, -1.5974496022847955 53.577272929533265, -1.5961959258178724 53.576970289681, -1.5983698769584622 53.576583845225265, -1.6061860988630474 53.572930044012125, -1.607188553634195 53.57148887237332, -1.6098123037651726 53.57190369961505, -1.6108049825381565 53.57003285543307, -1.6121544459254826 53.56875370520344, -1.6121619184660112 53.56760956838021, -1.6130439171689777 53.5664268376504, -1.6143926941336508 53.5650524097277, -1.6164375536785047 53.564497187501544, -1.6156296612197771 53.563011490216724, -1.6181295387692096 53.563212776155915, -1.6228326215065563 53.56285648355878, -1.6270384108231204 53.56358151542373, -1.627968556892842 53.563224888651696, -1.6283060692234868 53.56347574174618, -1.6332984465869242 53.563170256135024, -1.6334891355509533 53.56294170245319, -1.637802181492917 53.56227981731512, -1.6421532442004425 53.56245195207626, -1.648232199535746 53.56217873921488, -1.6496915597967736 53.56151789066545, -1.6510121796426638 53.56157206832943, -1.65158821451527 53.56109201859935, -1.6513473361914244 53.56083692957464, -1.6518812227779485 53.56071349024917, -1.6565580960978437 53.56054189199693, -1.6563526254711294 53.56036868535916, -1.6580469567295832 53.55974974399088, -1.6575096651361132 53.55917293753911, -1.6585235026700202 53.55887472008361, -1.6592755710279052 53.55978559632065, -1.660463314423886 53.55925153079933, -1.6608668716715422 53.559575354214935, -1.6639283440515251 53.557485177539824, -1.661751443686065 53.55580094903417, -1.661600480190058 53.554660764089334, -1.6622483621848876 53.554430670579904, -1.6619086318533058 53.553676522136826, -1.667399127231533 53.553406963164726, -1.6687023356520216 53.5537170830827, -1.6694639463637573 53.55321131062591, -1.6706009681895688 53.55413755645971, -1.6990352600276815 53.553794490395006, -1.7039759333397815 53.560237034610864, -1.723176406067092 53.559910865667774, -1.7252647895228703 53.55539097806408, -1.7263590394966861 53.55448115814526, -1.7244068275800257 53.552219721492825, -1.7272476724642598 53.55031261388252, -1.7288014933919038 53.548068169162356, -1.7295578208829194 53.548028455392256, -1.729206632886668 53.547486626858216, -1.7300819466490898 53.5467757607058, -1.733095706973138 53.545112508207694, -1.7401091302567022 53.5420538983523, -1.7415548588351746 53.54105484200964, -1.7424995314560856 53.541037109517646, -1.7558187356873052 53.53666520973433, -1.7654944676922801 53.53564282958523, -1.7718771717862125 53.53383679447057, -1.7768110500975551 53.53549184322007, -1.785348358846994 53.53477313278328, -1.7885959194316583 53.53553928906594, -1.7917032712150465 53.53536681645969, -1.794637603953135 53.53418090713798, -1.7974316329011624 53.53387197233383, -1.8012566752898587 53.53508912881433, -1.8041029400753252 53.53653909340625, -1.8042834494460043 53.536997843715284, -1.8222296016663773 53.52107504113733, -1.822748100726876 53.52189738233187, -1.827151906243277 53.52349206252811, -1.8289300033692193 53.52316744221857, -1.835266014634003 53.52057861689537, -1.8395356920040042 53.51980696156966, -1.8418218581176307 53.51989267167008, -1.8442447404241749 53.52176723209385, -1.8439915517672985 53.52254534315547, -1.84568495810303 53.524710959728125, -1.847037056282347 53.52541026218675, -1.850625822624229 53.52620302591725, -1.852379819668233 53.527140891777684, -1.8566482900903445 53.53000436846295, -1.8595372906571885 53.5336346362469, -1.8634300798346652 53.53494872560085, -1.8706483230987612 53.53926218369387, -1.8734937681305321 53.540413873201516, -1.8758553242984635 53.54039387813747, -1.8826882329296721 53.53913520369138, -1.887047189105033 53.53585329059197, -1.8941109089736903 53.533595589856496, -1.8983569201612076 53.5377797201981, -1.8993234272105246 53.53809602677477, -1.9021150120784724 53.53862867868629, -1.9042761075350536 53.538464096502324, -1.9088912252461145 53.538717585439095, -1.9096223557090954 53.538374792596784, -1.9128860631679325 53.55162780061101, -1.9193716736031485 53.55086297347485, -1.9215803855524705 53.55298381774766, -1.9248277839559813 53.55256886683883, -1.9287034614910885 53.55556878843411, -1.9427274715158136 53.56162549906064, -1.9443915848419309 53.568208422387706, -1.9457052486876285 53.5705603185674, -1.9471529756226835 53.57215278503758, -1.9503217095254657 53.5741495950009, -1.950935542138778 53.57362130737943, -1.9537089173129825 53.575670790920604, -1.9536903648926751 53.57601511713864, -1.9565823473987967 53.577555807505654, -1.966865397112825 53.580001212792254, -1.9711641148042192 53.584140505236014, -1.9782456069486383 53.58677291093603, -1.9826973832283015 53.59018918171527, -1.9907158119028634 53.599460501524284, -1.9947650539070183 53.603372474052996, -1.9958755681538838 53.60510001130219, -1.999608310551978 53.60792777426942, -2.0075151596779306 53.61251964688007, -2.007675648807132 53.61436133713176, -2.008537312525062 53.61479627315761, -2.009472008445078 53.616764598946084, -2.0041209581439654 53.61947849253848, -2.0045430900759107 53.62239512845055, -1.993711764575563 53.623908705556524, -1.986522678712195 53.6239126201232, -1.9795092763572348 53.62304515457869, -1.9727448062188662 53.62575919322053, -1.9660936791893722 53.6294004664182, -1.964429897226304 53.63178001270638, -1.9632163026176972 53.63271712030025, -1.9573730275370649 53.63412459139716, -1.9478174960697432 53.63735745202076, -1.9413275875121347 53.64076279920153, -1.9359529616252087 53.64517954271044, -1.9341525864220355 53.6483253318919, -1.9295430179296165 53.648329907050886, -1.9265596177599669 53.64758483135055, -1.9108295348106603 53.64558144409362, -1.9069966722000855 53.64541140486438, -1.9051810168378147 53.64494075542427, -1.903312512951391 53.64507503811992, -1.8983203842747662 53.644566640247994, -1.894598644123973 53.64540744980036, -1.8942658703542816 53.646612487655034, -1.8922490768418543 53.64792654765499, -1.8927331949040196 53.64850134163076, -1.8823072712162547 53.65383773858298, -1.8752703944816809 53.65688744415302, -1.874727627862082 53.65725088543595, -1.8750234255039824 53.65805477610218, -1.8742568950243468 53.65835058952199, -1.8733383416135019 53.65787230836808, -1.8728355453635 53.65800215813173, -1.8706238068832026 53.65881856154307, -1.8699441337552825 53.659417345926485, -1.8689612673613485 53.659168274076265, -1.8679867979462315 53.66015050013558, -1.867002219278256 53.65949148684129, -1.8655579073508077 53.660683434358646, -1.864597157114633 53.66108598753089, -1.863444145993769 53.66105413002682, -1.8621815894321612 53.66213392267016, -1.8600179906961103 53.66203706910216, -1.8604048071671555 53.662672981443365, -1.8556534201462103 53.66344479235076, -1.8552439264521878 53.66325650021202, -1.8532371083155417 53.66374117123724, -1.8522411916988935 53.66419120504862, -1.8529261201937568 53.664795159754675, -1.8510615640143095 53.66567362768439, -1.8496623321806156 53.66593255444711, -1.8477906720933466 53.66452089325854, -1.8435655310044141 53.66610725658395, -1.8475234003215488 53.66774009155563, -1.8493769547575747 53.66915712444826, -1.8511883048146098 53.669658264491915, -1.8512962528319858 53.6704034824118, -1.8535297585441397 53.67187402528655, -1.8536818928910408 53.67252314931055, -1.8522225248696342 53.6721447750765, -1.8511031277787748 53.6727977214928, -1.84234384202108 53.67188231160092, -1.8411863994914772 53.671361327940154, -1.838401626434301 53.67087220804278, -1.8355332211213022 53.66896013063107, -1.831561491280688 53.67017522130149, -1.8300083443549786 53.67022245076645, -1.8279906978143563 53.669841191715356, -1.8268675109241628 53.67024581363552, -1.8257232760513618 53.67024146101624, -1.818887608233993 53.672799234862296, -1.815242245034514 53.67602219515427, -1.810902355906268 53.678007265277444, -1.804271350199469 53.67938256246867, -1.8031020582934256 53.68014918566244, -1.7980834155195418 53.68075922891223, -1.7905955515178018 53.6825709099288, -1.7893212102518268 53.682781725949, -1.7871319399202592 53.682474057122214, -1.7800283742902918 53.68357580967935, -1.7784049457767552 53.68451747426902, -1.7746398807008048 53.68556024211746, -1.7699601148856248 53.687709421763444, -1.7659765909725549 53.68874790447638, -1.7634597497702238 53.689033289858145, -1.7617877521660763 53.689628599516375, -1.7607202188490698 53.690406690724565, -1.7606974532395967 53.69149416888146, -1.7596699476698934 53.69189655432414, -1.759848891100796 53.6926618545788, -1.7519618006595798 53.69294421165373, -1.7472997409118252 53.6945792859376, -1.7459597192872864 53.69427804405381, -1.7452586765174933 53.69324923690811, -1.7438728126466394 53.692280964905336, -1.7415705433637163 53.69135473540245, -1.740825930547242 53.68980087040562, -1.7405596612777532 53.68704900098715, -1.7388362227736518 53.68538337739312, -1.736652062005097 53.684773690235915, -1.7358888377178616 53.68237034472854, -1.7323458375126628 53.68050103364703, -1.731280861879507 53.68035667894997, -1.7304142573213395 53.68163823482602, -1.7272228746585192 53.68279590809835, -1.7321822655725965 53.684566016952466, -1.7311510376002748 53.68553711728347, -1.7340195750344258 53.68806648638645, -1.7348220614634076 53.68831186242912, -1.7346440578427227 53.68868445973958, -1.7355268261630301 53.68966970174263, -1.7332366413072315 53.69478972919565, -1.7372955820576914 53.69816917551834, -1.7385652130139637 53.69835264933672, -1.7395369375661283 53.69943959091345, -1.7369535180535867 53.70226260555113, -1.7387512128910356 53.70232044861919, -1.7386417224599091 53.70408991452656, -1.7395902900067692 53.70405244189243, -1.7395821885281442 53.70461689646599, -1.7357884947481788 53.70931477974051, -1.7360355602564528 53.71027524921542, -1.7388222054474798 53.71214459214396, -1.737653308165167 53.712509639605166, -1.7377501602920251 53.71300603292915, -1.7358685640781704 53.71322744094048, -1.741194506207192 53.71690083688164, -1.7439843125696508 53.715599068930935, -1.7446206642922881 53.715874574383626, -1.7449698726053704 53.718248126415006, -1.7463001806884288 53.718773186662446, -1.7478102196491947 53.71891654480388, -1.7480585227222658 53.71945278429471, -1.7510271478997868 53.71970527534081, -1.7554066168192657 53.72072093390812, -1.7554019478593899 53.723100110691355, -1.7539820930164285 53.72308193200727, -1.7536340880429353 53.72584498382384, -1.756801306369416 53.72615434754301, -1.7584937629401651 53.72543784677385, -1.7598801578615737 53.72524564480781, -1.7659319431636737 53.726299295269314, -1.7700835174721572 53.72623723581194, -1.7691807559015917 53.727249337629935, -1.7667689811274099 53.72814529104249, -1.7657935120458057 53.72913116841825, -1.7637928975080124 53.730195892293274, -1.7637762207153769 53.730741460166286, -1.7629061575992604 53.731272763996884, -1.761863993049384 53.73277532308709, -1.7614752106990563 53.73396270341269, -1.760400391858678 53.73424010084128, -1.76090599673057 53.73463027150772, -1.7547829161750583 53.73469168467945, -1.7499196987937111 53.734224104692935, -1.7458980305141745 53.734474526203634, -1.7471535173881998 53.73797712231219, -1.745846440972297 53.74228865698207, -1.7474752540947094 53.7427163004299, -1.7459275853252174 53.743676548237794, -1.7472218829548187 53.74679904324758, -1.746625941806219 53.747311935607264, -1.7456870117271284 53.74710409218013, -1.7432635271211085 53.74741620878572, -1.7427712310819463 53.74707990612929, -1.740646297040647 53.74789777343532, -1.738163346889053 53.74728298504882, -1.7366722584617427 53.74735070689581, -1.7337621393785145 53.7469030079261, -1.733914839255053 53.74818323923387, -1.7331502360347617 53.748963458250586, -1.732330374263672 53.749108185060855, -1.7311880602111125 53.74989923006733, -1.730390611611537 53.75128614678681, -1.7287099846323364 53.751579868724995, -1.727283878814557 53.75284484675387, -1.7263737195541744 53.75428710079602, -1.7264992513765154 53.75504063959881, -1.7251699372222844 53.75654572510683, -1.7216160063845651 53.759113577952135, -1.719559649177813 53.75950873340558, -1.7180825198068213 53.76061704470792, -1.7179122987478532 53.760431543989306, -1.713699068191511 53.7616969625927, -1.7144281564522983 53.7624428766094, -1.7106272129172277 53.76283739857299, -1.7091083672955985 53.76245525769576, -1.7048762442269423 53.76483308231459, -1.7029338537862602 53.76406344566662, -1.7025587743955222 53.7643266894523, -1.7018901988812871 53.76383882665813, -1.701530734558338 53.764050978452886, -1.6977940237484266 53.762411122374424, -1.6953231079648268 53.76198516155649, -1.6957858218527453 53.76176520355783, -1.6938216924016112 53.76069066582928, -1.6899730699744056 53.759928519310634, -1.6895904707412914 53.75955984416617, -1.6906229901642795 53.75838244788019, -1.6869926195878175 53.757669198876705, -1.6866498228381732 53.75807552593517, -1.6816174237143489 53.75645342663141)))
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://opendatacommunities.org/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://opendatacommunities.org/sparql HTTP/1.1
Host: opendatacommunities.org
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://opendatacommunities.org/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://opendatacommunities.org/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://opendatacommunities.org/sparql

Request the results as JSON, using a GET:

curl -X GET -H "Accept: application/sparql-results+json" http://opendatacommunities.org/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://opendatacommunities.org/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>