Skip to content

Instantly share code, notes, and snippets.

@PjGeeroms
Last active July 6, 2016 20:04
Show Gist options
  • Select an option

  • Save PjGeeroms/1ecab069d96d728e04390fe1b115de85 to your computer and use it in GitHub Desktop.

Select an option

Save PjGeeroms/1ecab069d96d728e04390fe1b115de85 to your computer and use it in GitHub Desktop.
Datex2 Rdfa Parking
<!-- 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>
@pietercolpaert
Copy link

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.

@pietercolpaert
Copy link

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