Last active
July 6, 2016 20:04
-
-
Save PjGeeroms/1ecab069d96d728e04390fe1b115de85 to your computer and use it in GitHub Desktop.
Datex2 Rdfa Parking
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Used prefix: prefix="dtx: http://vocab.datex.org/terms# --> | |
| <article typeof="dtx:ParkingSite" resource="{{app.request.baseUrl}}#parking"> | |
| <h2 property="dtx:parkingName">{{data.name}}</h2> | |
| <p property="dtx:parkingSiteAddress">{{data.address}}</p> | |
| <p property="dtx:ParkingLocation">{{data.city}}</p> | |
| <p property="dtx:contactDetailsTelephoneNumber">{{data.telephone}}</p> | |
| <p property="dtx:parkingDescription">{{data.description}}</p> | |
| <p property="dtx:longitude">{{data.longitude}}</p> | |
| <p property="dtx:latitude">{{data.latitude}}</p> | |
| <p>spaces: <span property="dtx:parkingSpaceOccupied">{{data.occupied}}</span>/<span property="dtx:totalCapacity">{{data.maxSpace}}</span></p> | |
| </article> |
I tried to do something more with it. Comments left in the file: https://gist.github.com/pietercolpaert/6470b51ebc9ebe66f91615cc8d6964f2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I also forgot: classes, or resources that you can put in a
typeof=""will thanks to the convention I use, similar to object oriented programming, will always have a capital in the beginning, while predicates will always have a small letter at the beginning of the word.