Skip to content

Instantly share code, notes, and snippets.

View pietercolpaert's full-sized avatar
🎯
Building Linked Data Event Streams

Pieter Colpaert pietercolpaert

🎯
Building Linked Data Event Streams
View GitHub Profile
@pietercolpaert
pietercolpaert / parking.html
Last active July 6, 2016 20:03 — forked from PjGeeroms/parking.html
Datex2 Rdfa Parking
<!--Maps data to both schema and datex. I extended datex with URIs from dublin core terms (dct) and geo. Where possible, I added boht schema and datex approach-->
<html prefix="dtx: http://vocab.datex.org/terms#
dct: http://purl.org/dc/terms/
schema: http://schema.org/
geo: http://www.w3.org/2003/01/geo/wgs84_pos#">
<article typeof="dtx:ParkingSite schema:ParkingFacility" resource="{{urlFromPage}}">
<h2 property="dct:title schema:name">{{data.name}}</h2>
<p property="dct:spatial schema:address">{{data.address}}</p><!--We should have a more readable address here. Schema.org has a better example: http://schema.org/address (see RDFa and JSONLD examples)-->
<p property="">{{data.city}}</p><!--We can map a city to a URI... Should we? Furthermore: shouldn't this be part of the address property?-->
<p property="dtx:contactDetailsTelephoneNumber schema:telephone">{{data.telephone}}</p>