[maps.soton] Building Portals

Christopher Baines cb15g11 at soton.ac.uk
Mon Sep 15 14:24:52 BST 2014


Ian and I spent some time working on building portals yesterday. The
doors example now lists the buildings rooms along with the portals,
which should make methodically creating the recommended entrances data
easier.

There are two points that I would like to raise.

Firstly, I am getting some portals with multiple locations, e.g. [1]?

Secondly, it might be good to have an optional comment/note on the
recommendation. This may help with maintaining the data, as it might be
hard to tell why that particular entrance was recommended. This also
might be something that can be given to end users to help them make
decisions.

1:
http://sparql.data.southampton.ac.uk/?query=PREFIX+portals%3A+%3Chttp%3A%2F%2Fpurl.org%2Fopenorg%2Fportals%2F%3E%0D%0APREFIX+geo%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2003%2F01%2Fgeo%2Fwgs84_pos%23%3E%0D%0ASELECT+DISTINCT+*+WHERE+{%0D%0A++%3Fportal+a+portals%3ABuildingEntrance%3B%0D%0A++++++++++OPTIONAL+{%0D%0A++++++++++++%3Fportal+geo%3Alat+%3Flat+.%0D%0A++++++++++++%3Fportal+geo%3Along+%3Flong+.%0D%0A++++++++++}%0D%0A++++++++++FILTER+%28%0D%0A++++++++++++%3Fportal+%3D+%3Chttp%3A%2F%2Fid.southampton.ac.uk%2Fbuilding-portal%2F32-A%3E%0D%0A++++++++++%29%0D%0A}%0D%0A&output=htmltab&jsonp=&show_inline=1#results_table

PREFIX portals: <http://purl.org/openorg/portals/>
PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
SELECT DISTINCT * WHERE {
  ?portal a portals:BuildingEntrance;
          OPTIONAL {
            ?portal geo:lat ?lat .
            ?portal geo:long ?long .
          }
          FILTER (
            ?portal = <http://id.southampton.ac.uk/building-portal/32-A>
          )
}


More information about the maps.soton mailing list