[openstreetmap/openstreetmap-website] Added RDFa support for browse/node (#173)

CloCkWeRX notifications at github.com
Thu Nov 23 02:33:00 UTC 2017

Schema.org defining more vocabularies is probably the biggest change for 2017 best practices; and includes some Geo concepts.
Since the site has gone opengraph tags already (at a site level); the simplest approach is changing the node/way pages from outputting:
<meta property="og:site_name" content="OpenStreetMap" />
<meta property="og:title" content="Node: ‪Lake McKenzie‬ (‪5181438822‬) | OpenStreetMap" />
<meta property="og:type" content="website" />
<meta property="og:image" content="http://www.openstreetmap.org/assets/osm_logo_256-835a859acf0d378e1d14e88b15e7b4b95211ccd41a2c061b1629cfbbb8deb697.png" />
<meta property="og:image:secure_url" content="http://www.openstreetmap.org/assets/osm_logo_256-835a859acf0d378e1d14e88b15e7b4b95211ccd41a2c061b1629cfbbb8deb697.png" />
<meta property="og:url" content="http://www.openstreetmap.org/node/5181438822" />
<meta property="og:description" content="OpenStreetMap is a map of the world, created by people like you and free to use under an open licence." />
... which basically says "http://www.openstreetmap.org/node/5181438822 is a website, named 'Node: ‪Lake McKenzie‬ (‪5181438822‬) | OpenStreetMap' and it looks like (logo url)

to something like:
<meta property="og:site_name" content="OpenStreetMap" />
<meta property="og:title" content="‪Lake McKenzie" />
<meta property="og:type"                  content="place" /> 
<meta property="og:url" content="http://www.openstreetmap.org/node/5181438822" />
<meta property="og:description" content="{node description tags if relevant}" />
<meta property="place:location:latitude"  content="-25.4460683" /> 
<meta property="place:location:longitude" content="153.0497883" />
which would be 
 "http://www.openstreetmap.org/node/5181438822 is a Place, named 'Lake McKenzie' and at '-25.4460683,153.0497883' listed on OpenStreetMap"

Happy to do an updated version of the PR based on that approach

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20171123/7a6c9f35/attachment.html>

More information about the rails-dev mailing list