Points of Interest work in OGC

farmpaintlickInternet and Web Development

Oct 21, 2013 (4 years and 20 days ago)

83 views

®

®

copyright © 2013 Open Geospatial Consortium

Points of Interest work in OGC

Denise McKenzie
dmckenzie@opengeospatial.org

Peter Cotroneo
peter.cotoroneo@ordnancesurvey.co.uk


On behalf of Raj
Singh
rsingh@opengeospatial.org



OGC

®

copyright © 2013 Open Geospatial Consortium

The Open Geospatial Consortium

Not
-
for
-
profit, international voluntary consensus standards
organization; leading development
of geospatial
standards




Founded in 1994.


480+ members and growing


38 standards


Hundreds of product implementations


Broad user community

implementation worldwide


Alliances and collaborative activities
with ISO and many other SDO

s

Commercial

41%

Government

18%

NGO

10%

Research

7%

University

24%

Copyright © 2013 Open Geospatial Consortium

2

OGC

®

copyright © 2013 Open Geospatial Consortium

History


Work began in W3C community


When work slowed in this environment OGC decided to
continue the work


Development of the
OpenPOI

registry by Raj Singh OGC


OGC

®

copyright © 2013 Open Geospatial Consortium

POI work advances on 2 fronts


Points of Interest Standards Working Group


just chartered


seeks to ratify POI data encoding standards for XML and JSON


picks up dormant W3C
work


First meeting next week in
Frascati
, Italy


Chairs


Peter Cotroneo Ordnance Survey and Ashley Holt, NGA

OGC

®

copyright © 2013 Open Geospatial Consortium

Second front


OpenPOIs

registry


an implementation of the POI draft standard


living laboratory to experiment with


linked
geodata


persistent services


distributed
geosynchronization



OGC

®

copyright © 2013 Open Geospatial Consortium

What is OpenPOIs?

A
registry

of all the
places in the world,

and
links

to all of their
web resources

APIs

to get the
information as maps,
XML,
JSON
, or RDF

http://openpois.net


OGC

®

copyright © 2013 Open Geospatial Consortium

the Open
-
ness in OpenPOIs


open data:

only POI repositories with compatible open data
policies have been indexed by OpenPOIs


open API:

anyone is free to use the read API, and a write API is
being built for any authenticated user to freely add information


open code:

built on PostGIS, Mapserver and custom PHP.

OGC

®

copyright © 2013 Open Geospatial Consortium

the OpenPOIs database


reference implementation of the POI format


free and open, always


provides a Rosetta Stone for all POIs, any time, anywhere


includes


OpenStreetMap


NGA, USGS, GeoNames


dbPedia


China Historical GIS


Futouring


future work


foursquare, freebase, governments, historians


self
-
service synchronization

OGC

®

copyright © 2013 Open Geospatial Consortium

outputs

Mapping

JSON

XML

http://openpoi.ogcnetwork.net/pois/657a76ef
-
e99e
-
4a77
-
a710
-
a6deddb25393.xml

http://openpoi.ogcnetwork.net/pois/657a76ef
-
e99e
-
4a77
-
a710
-
a6deddb25393.json

OGC

®

copyright © 2013 Open Geospatial Consortium

Data Model (W3C)

OGC

®

copyright © 2013 Open Geospatial Consortium

Descriptive Properties


location: geography specifier


label: name


description: narrative text


category: tags, keywords, etc.


link: related items


time: when the POI exists in the world

OGC

®

copyright © 2013 Open Geospatial Consortium

Location Properties


point,

line,

or
polygon



GML 3.3 “
compact encoding”
--

simple!


coordinate
reference system (with lat/lon default)



and/or

address


and/or

spatial
relationship to another POI


<
Point>


<
posList>
42.358
-
71.06
</posList>

<
/Point>

<LineString>


<
posList>
42.358
-
71.06 42.375
-
71.093...
<
/posList>

</LineString>

<SimplePolygon>


<
posList>
42.358
-
71.06 42.375
-
71.093...
<
/posList>

</
SimplePolygon
>

OGC

®

copyright © 2013 Open Geospatial Consortium

Descriptive Property: category

<category

term
=
"722110"

scheme
=
"http://www.census.gov/naics/2007/"
type
=
"text/html"


href
=
"http://www.census.gov/econ/industry/def/d722110.htm"
>
Full
-
service restaurants
</category>


<category

term
=
"rating:food"

scheme
=
"http://www.example.com/category/ratings"


href
=
"http://www.example.com/ratings/food#extraordinary_to_perfection"
>
27
</category>


<category

term
=
"cuisine"

scheme
=
"http://www.example.com/category/cuisines"


href
=
"http://www.example.com/ratings/cuisines"
>
Deli
</category>




category


term: the unique identifier


aka tag (mandatory)


scheme: URI identifier for the term’s definition. may be resolvable
(optional)


value: human
-
readable description (optional)


href:
URL to full
definition. always resolvable (optional)


type: MIME type of the href (optional)


XML examples:

OGC

®

copyright © 2013 Open Geospatial Consortium

Descriptive Property: link


link


term: relationship of link to the POI (mandatory)


href: URL for linked content (mandatory)


type: MIME type of href

(mandatory)


value: human
-
readable description (optional)


author: basic attribution (optional)


XML examples:

<
link

term
=
"related"

href
=
"http://en.wikipedia.org/wiki/Faneuil_Hall"

type
=
"text/html"
/>

<
link

term
=
"related"

href
=
"http
://www.cityofboston.gov/freedomtrail/
faneuilhall.asp"


type
=
"text/html"
/>

<
link

term
=
"related"

href
=
"http
://www.thefreedomtrail.org/visitor/faneuil
-
hall.html"


type
=
"text/html"
/>

<
link

term
=
"related"

href
=
"http://www.faneuilhallmarketplace.com/"

type
=
"text/html"
/>

<
link

term
=
"
image”


href
=
"http
://www.cityofboston.gov/Images_Documents/Bright_Fan_Hall_tcm3
-
2661.
gif"


type
=
"image/gif"
/>

<
link

term
=
"related"

href
=
"http://hdl.loc.gov/loc.award/mhsalad.130006"
>


<
value>
Faneuil Hall, exterior: perspective view, Boston, MA
</value>


<
author

term
=
"LOC"

href
=
"http://www.loc.gov"

type
=
"text/plain"
>


<
value>
Library of Congress
</value>


<
/author>

<
/link
>

OGC

®

copyright © 2013 Open Geospatial Consortium

Data Management Properties (metadata
)


id: unique identifier for the POI in the publisher’s system


created/updated
/deleted: applies to the POI record (not the
actual place in the world

time property covers that)


license: use restrictions, e.g. copyright

OGC

®

copyright © 2013 Open Geospatial Consortium

OpenPOIs API

query by…

example…

ID

http://openpois.net/poiquery.php?id=f0aa9f2f
-
c091
-
4dc2
-
9282
-
3a5dbbec8314


RESTful

ID

http://openpois.net/pois/f0aa9f2f
-
c091
-
4dc2
-
9282
-
3a5dbbec8314


radius/point

http://openpois.net/poiquery.php?lat=42.349433712876&lon=
-
71.040894451933&maxfeatures=9&format=application/xml


bounding

box

http://openpois.net/poiquery.php?bbox=
-
71.10,42.35,
-
71.00,42.45&maxfeatures=20&format=application/json


Time

and
area

http://openpois.net/poiquery.php?lat=25.959&lon=119.519&maxfeatures=1&format=xml&ra
dius=1000&start=944


WFS

http://openpois.net/openpoiwfs?request=GetCapabilities&service=WFS&version=1.1.0


http://openpois.net/api.php

OGC

®

copyright © 2013 Open Geospatial Consortium


OGC

®

copyright © 2013 Open Geospatial Consortium

What’s near me….


OGC

®

copyright © 2013 Open Geospatial Consortium

impacts


more geospatial open data


domains that benefit from an open POI db


disaster management


public health


resource management


climate science


Better geospatial standards in


"RESTful" APIs


RDF, linked data and the Semantic Web

OGC

®

copyright © 2013 Open Geospatial Consortium

2014 and beyond…


Building up the database: POI linking/conflation


OpenPOIs becomes OGC’s first living laboratory


not only
open data

and
open source

software, but
open
system access

for developers to build apps on top of the
repository


API access for the public


lower level access for OGC members


semantic geoweb experiments


academic research on urban patterns and place evolution

OGC

®

copyright © 2013 Open Geospatial Consortium

What should you do with the POI format?

1.
have unique IDs for all your POIs

2.
provide a public URL:


to get at every POI in W3C POI format


at least an ID and name
please




3.
Adopt
the link part of the data model


to maintain references to related POIs


add links to that public POI URL

4.
be part of
OpenPOI

DB


work with
Raj
to link and sync to your POIs!


OGC

®

copyright © 2013 Open Geospatial Consortium

Where to find information?


OpenPOIs

Repository:

http://openpois.net



OGC POI Standards Working Group:
http://www.opengeospatial.org/projects/groups/poiswg



GML 3.3:

http://www.opengeospatial.org/standards/
gml




Contact Raj at
rsingh@opengeospatial.org


®

®

copyright © 2013 Open Geospatial Consortium










Thank you



www.opengeospatial.org


@opengeospatial.org


Open Geospatial Consortium (
OGC)


http
://www.youtube.com/user/ogcvideo







Denise McKenzie, Executive Director

dmckenzie@opengeospatial.org

+ 44 (07) 581 118 189

Twitter @
spatialred



OGC

®

copyright © 2013 Open Geospatial Consortium

Basic Example: City of Boston, MA USA

<
poi

id
=
"http://www.rajsingh.org/pois/45343489"

created
=
"2004
-
01
-
22T09:38:21
-
05:
00”
>


<
author

href
=
"http://www.rajsingh.org/me.rdf"

type
=
"application/
rdf+xml
"
/>


<
license

href
=
"http://creativecommons.org/licenses/by/3.0/"

type
=
"text/html"

term
=
"CC BY 3.0"
/>


<
label

term
=

primary”
>
Boston
<
/label>


<
description

updated
=
"2011
-
10
-
21T22:10:00+12:00"
>


<value>
Boston
is the capital of and largest city in Massachusetts, and is one of the oldest


cities
in the United States.
Boston
is regarded as
the unofficial
"Capital of New England"


for
its economic and cultural impact on the
entire New
England region
.
</value>


<author

id
=
"http://en.wikipedia.org"

href
=
"http://en.wikipedia.org/wiki/Boston"

type
=
"text/plain"
>


<
value>
Wikipedia
</value>


<
/author>


<
/description>


<
category

term
=
"city"

scheme
=
"http://www.usgs.gov/
placetypes
"
type
=
"text
/html”
>


<
value>
seat of a first
-
order administrative division
</value>


<
/category>


<
time

term
=
"start"

type
=
"text/
datetime

>
16300917
<
/time>


<
link

term
=
"canonical"

href
=
"http://www.rajsingh.org/pois/45343489.xml"



scheme
=
"http://www.iana.org/assignments/link
-
relations/link
-
relations.xml"

type
=
"text/xml"
/>


<
link

term
=
"related"

href
=
"http://en.wikipedia.org/wiki/Boston"

type
=
"text/html"



scheme
=
"http://www.iana.org/assignments/link
-
relations/link
-
relations.xml"
/>


<
link

term
=
”map"

href
=
"http://www.geonames.org/maps/google_42.358_
-
71.06.html"

type
=
"text/html"



scheme
=
"http://www.iana.org/assignments/link
-
relations/link
-
relations.xml"
/>


<
location>


<
point

term
=
"centroid"
>


<
Point

srsName
=
"http://www.opengis.net/def/crs/EPSG/0/4326"
>


<
posList
>
42.358
-
71.06
</
posList
>


<
/Point>


<
/point>


<
/location>

</poi>

ID


Name

Name