Difference between revisions of "WebSchemas/CivicServices"

From W3C Wiki
Jump to: navigation, search
m (Example markup (microdata))
m (Example markup (microdata))
Line 19: Line 19:
 
<syntaxhighlight lang="html4strict" line >
 
<syntaxhighlight lang="html4strict" line >
 
<div itemscope itemtype=”http://schema.org/GovernmentService”>
 
<div itemscope itemtype=”http://schema.org/GovernmentService”>
<link itemprop=”url” href=”http://on.nyc.gov/fsep” />
+
<link itemprop=”url” href=”http://www.casamyrna.org/index.php?id=29:safelink” />
<span itemprop=”name”> NYC Food Service Establishment Permit Service</span>
+
<span itemprop=”name”>SafeLink Domestic Violence Hotline</span>
 
<div itemprop=”serviceArea” itemscope itemtype=”http://schema.org/AdministrativeArea”>
 
<div itemprop=”serviceArea” itemscope itemtype=”http://schema.org/AdministrativeArea”>
<span itemprop=”name”>New York</span>
+
<span itemprop=”name”>Massachusetts</span>
 
</div>
 
</div>
 
<div itemprop=”provider”> itemscope itemtype=”http://schema.org/GovernmentOrganization”>
 
<div itemprop=”provider”> itemscope itemtype=”http://schema.org/GovernmentOrganization”>
<span itemprop=”name”>Department of Health and Mental Hygiene”</span>
+
<span itemprop=”name”>Massachusetts Executive Office of Health and Human Services”</span>
 
</div>
 
</div>
<div itemprop=”audience” itemscope itemtype=”http://schema.org/BusinessAudience”>
+
<div itemprop=”operator”> itemscope itemtype=”http://schema.org/Organization”>
<span itemprop=”audienceType”>FoodEstablishment</span>
+
<span itemprop=”name”>Casa Myrna”</span>
 +
<link itemprop=”url” href=”http://www.casamyrna.org”>
 
</div>
 
</div>
 
<div itemprop=”serviceChannel” itemscope itemtype=”http://schema.org/ServiceChannel”>
 
<div itemprop=”serviceChannel” itemscope itemtype=”http://schema.org/ServiceChannel”>
<span itemprop=”name”>NYC Food Service Web Channel</span>
+
<span itemprop=”name”>Safelink Hotline</span>
<link itemprop=”serviceUrl” href=”https://a858-elpaca.nyc.gov/CitizenAccess/” />
+
<div itemprop=”servicePhone” itemscope itemtype=”http://schema.org/ContactPoint”>
 +
<span itemprop=”telephone”>(877)785-2020</span>
 
</div>
 
</div>
<div itemprop=”serviceChannel” itemscope itemtype=”http://schema.org/ServiceChannel”>
+
<div itemprop=”servicePhone” itemscope itemtype=”http://schema.org/ContactPoint”>
<span itemprop=”name”>NYC Food Service Physical Channel</span>
+
<span itemprop=”contactType”>TTY</span>
<div itemprop=”serviceLocation” itemscope itemtype=”http://schema.org/GovernmentBuilding”>
+
<span itemprop=”telephone”>(877)521-2601</span>
<span itemprop=”name”>DCA Citywide Licensing Center</span>
+
</div>
<div itemprop=”address” itemscope itemtype=”http://schema.org/PostalAddress”>
+
<div itemprop=”availableLanguage” itemscope itemtype=”http://schema.org/Language”>
<span itemprop=”streetAddress”>42 Broadway</span>
+
<span itemprop=”name”>English</span>
<span itemprop=”addressLocality”>New York</span>
+
</div>
<span itemprop=”addressRegion”>NY</span>
+
<div itemprop=”availableLanguage” itemscope itemtype=”http://schema.org/Language”>
<span itemprop=”postalCode”>10004</span>
+
<span itemprop=”name”>Español</span>
 +
</div>
 +
<div itemprop=”availableLanguage” itemscope itemtype=”http://schema.org/Language”>
 +
<span itemprop=”name”>Portugues</span>
 
</div>
 
</div>
<time itemprop=”openingHours” datetime=”M,T,Th,Fr 09:00-17:00”>Mondays, Tuesdays,
+
<div itemprop=”availableLanguage” itemscope itemtype=”http://schema.org/Language”>
Thursdays, and Fridays 9am-5pm</time>
+
<span itemprop=”name”>Kreyol</span>
<time itemprop=”openingHours” datetime=”W 08:30-17:00”>Wednesdays 8:30am-5pm</time>
+
 
</div>
 
</div>
 
</div>
 
</div>

Revision as of 11:53, 5 August 2013


This is a WebSchemas proposal CivicServices for schema.org. See Proposals listing for more. Status: Discussion



Overview

This page discusses a proposal extending schema.org to cover various kinds of civic services.

From the document: This document is a proposal by the Google.org Social Impact tem for some extensions of Schema.org schemas to better support the description of public civic services.

Draft proposal

The draft is available as a PDF document.

Example markup (microdata)

The following example is taken from the first draft; it may not track any subsequent drafts linked below.

  1. <div itemscope itemtype=”http://schema.org/GovernmentService”>
  2. <link itemprop=”url” href=”http://www.casamyrna.org/index.php?id=29:safelink” />
  3. <span itemprop=name”>SafeLink Domestic Violence Hotline</span>
  4. <div itemprop=”serviceArea” itemscope itemtype=”http://schema.org/AdministrativeArea”>
  5. <span itemprop=name”>Massachusetts</span>
  6. </div>
  7. <div itemprop=”provider”> itemscope itemtype=”http://schema.org/GovernmentOrganization”>
  8. <span itemprop=name”>Massachusetts Executive Office of Health and Human Services”</span>
  9. </div>
  10. <div itemprop=”operator”> itemscope itemtype=”http://schema.org/Organization”>
  11. <span itemprop=name”>Casa Myrna”</span>
  12. <link itemprop=”url” href=”http://www.casamyrna.org”>
  13. </div>
  14. <div itemprop=”serviceChannel” itemscope itemtype=”http://schema.org/ServiceChannel”>
  15. <span itemprop=name”>Safelink Hotline</span>
  16. <div itemprop=”servicePhone” itemscope itemtype=”http://schema.org/ContactPoint”>
  17. 	<span itemprop=”telephone”>(877)785-2020</span>
  18. </div>
  19. <div itemprop=”servicePhone” itemscope itemtype=”http://schema.org/ContactPoint”>
  20. 	<span itemprop=”contactType”>TTY</span>
  21. 	<span itemprop=”telephone”>(877)521-2601</span>
  22. </div>
  23. <div itemprop=”availableLanguage” itemscope itemtype=”http://schema.org/Language”>
  24. 	<span itemprop=name”>English</span>
  25. </div>
  26. <div itemprop=”availableLanguage” itemscope itemtype=”http://schema.org/Language”>
  27. 	<span itemprop=name”>Español</span>
  28. </div>
  29. <div itemprop=”availableLanguage” itemscope itemtype=”http://schema.org/Language”>
  30. 	<span itemprop=name”>Portugues</span>
  31. </div>
  32. <div itemprop=”availableLanguage” itemscope itemtype=”http://schema.org/Language”>
  33. 	<span itemprop=name”>Kreyol</span>
  34. </div>
  35. </div>
  36. </div>

The example is in Microdata. RDFa is important to many in the govt sector; an RDFa version would look very similar. Roughly, 'itemscope' is not written; 'itemtype' becomes 'typeof', 'itemprop' becomes 'property'.

Related Work

  • W3C e-govt Linked Data group