Difference between revisions of "WebSchemas/CivicServices"

From W3C Wiki
Jump to: navigation, search
m (Overview)
(added an example)
Line 12: Line 12:
  
 
* Initial draft for comments: [[File:Services_for_schema.org_%28DRAFT_2013-06-27%29.pdf]]  ([http://www.w3.org/wiki/images/0/03/Services_for_schema.org_%28DRAFT_2013-06-27%29.pdf pdf])
 
* Initial draft for comments: [[File:Services_for_schema.org_%28DRAFT_2013-06-27%29.pdf]]  ([http://www.w3.org/wiki/images/0/03/Services_for_schema.org_%28DRAFT_2013-06-27%29.pdf pdf])
 +
 +
== Example markup (microdata) ==
 +
 +
The following example is taken from the first draft; it may not track any subsequent drafts linked below.
 +
 +
<syntaxhighlight>
 +
<div itemscope itemtype=”http://schema.org/GovernmentService”>
 +
<link itemprop=”url” href=”http://on.nyc.gov/fsep” />
 +
<span itemprop=”name”> NYC Food Service Establishment Permit Service</span><div itemprop=”serviceArea” itemscope itemtype=”http://schema.org/AdministrativeArea”>
 +
<span itemprop=”name”>New York</span>
 +
</div>
 +
<div itemprop=”provider”> itemscope itemtype=”http://schema.org/GovernmentOrganization”>
 +
<span itemprop=”name”>Department of Health and Mental Hygiene”</span>
 +
</div>
 +
<div itemprop=”audience” itemscope itemtype=”http://schema.org/BusinessAudience”>
 +
<span itemprop=”audienceType”>FoodEstablishment</span>
 +
</div>
 +
<div itemprop=”serviceChannel” itemscope itemtype=”http://schema.org/ServiceChannel”>
 +
<span itemprop=”name”>NYC Food Service Web Channel</span>
 +
<link itemprop=”serviceUrl” href=”https://a858-elpaca.nyc.gov/CitizenAccess/” />
 +
</div>
 +
<div itemprop=”serviceChannel” itemscope itemtype=”http://schema.org/ServiceChannel”>
 +
<span itemprop=”name”>NYC Food Service Physical Channel</span>
 +
<div itemprop=”serviceLocation” itemscope itemtype=”http://schema.org/GovernmentBuilding”>
 +
<span itemprop=”name”>DCA Citywide Licensing Center</span>
 +
<div itemprop=”address” itemscope itemtype=”http://schema.org/PostalAddress”>
 +
<span itemprop=”streetAddress”>42 Broadway</span>
 +
<span itemprop=”addressLocality”>New York</span>
 +
<span itemprop=”addressRegion”>NY</span>
 +
<span itemprop=”postalCode”>10004</span>
 +
</div>
 +
<time itemprop=”openingHours” datetime=”M,T,Th,Fr 09:00-17:00”>Mondays, Tuesdays,
 +
Thursdays, and Fridays 9am-5pm</time>
 +
<time itemprop=”openingHours” datetime=”W 08:30-17:00”>Wednesdays 8:30am-5pm</time>
 +
</div>
 +
</div>
 +
</div>
 +
</syntaxhighlight>
 +
 +
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 ==
 
== Related Work ==
  
 
* W3C e-govt Linked Data group
 
* W3C e-govt Linked Data group

Revision as of 18:17, 27 June 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.

Invalid language.

You need to specify a language like this: <source lang="html4strict">...</source>

Supported languages for syntax highlighting:

4cs, 6502acme, 6502kickass, 6502tasm, 68000devpac, abap, actionscript, actionscript3, ada, algol68, apache, applescript, apt_sources, arm, asm, asp, asymptote, autoconf, autohotkey, autoit, avisynth, awk, bascomavr, bash, basic4gl, bf, bibtex, blitzbasic, bnf, boo, c, c_loadrunner, c_mac, caddcl, cadlisp, cfdg, cfm, chaiscript, cil, clojure, cmake, cobol, coffeescript, cpp, cpp-qt, csharp, css, cuesheet, d, dcl, dcpu16, dcs, delphi, diff, div, dos, dot, e, ecmascript, eiffel, email, epc, erlang, euphoria, f1, falcon, fo, fortran, freebasic, freeswitch, fsharp, gambas, gdb, genero, genie, gettext, glsl, gml, gnuplot, go, groovy, gwbasic, haskell, haxe, hicest, hq9plus, html4strict, html5, icon, idl, ini, inno, intercal, io, j, java, java5, javascript, jquery, kixtart, klonec, klonecpp, latex, lb, ldif, lisp, llvm, locobasic, logtalk, lolcode, lotusformulas, lotusscript, lscript, lsl2, lua, m68k, magiksf, make, mapbasic, matlab, mirc, mmix, modula2, modula3, mpasm, mxml, mysql, nagios, netrexx, newlisp, nsis, oberon2, objc, objeck, ocaml, ocaml-brief, octave, oobas, oorexx, oracle11, oracle8, oxygene, oz, parasail, parigp, pascal, pcre, per, perl, perl6, pf, php, php-brief, pic16, pike, pixelbender, pli, plsql, postgresql, povray, powerbuilder, powershell, proftpd, progress, prolog, properties, providex, purebasic, pycon, pys60, python, q, qbasic, rails, rebol, reg, rexx, robots, rpmspec, rsplus, ruby, sas, scala, scheme, scilab, sdlbasic, smalltalk, smarty, spark, sparql, sql, stonescript, systemverilog, tcl, teraterm, text, thinbasic, tsql, typoscript, unicon, upc, urbi, uscript, vala, vb, vbnet, vedit, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, whois, winbatch, xbasic, xml, xorg_conf, xpp, yaml, z80, zxbasic


<div itemscope itemtype=”http://schema.org/GovernmentService”>
<link itemprop=”url” href=”http://on.nyc.gov/fsep” />
<span itemprop=”name”> NYC Food Service Establishment Permit Service</span><div itemprop=”serviceArea” itemscope itemtype=”http://schema.org/AdministrativeArea”>
<span itemprop=”name”>New York</span>
</div>
<div itemprop=”provider”> itemscope itemtype=”http://schema.org/GovernmentOrganization”>
<span itemprop=”name”>Department of Health and Mental Hygiene”</span>
</div>
<div itemprop=”audience” itemscope itemtype=”http://schema.org/BusinessAudience”>
<span itemprop=”audienceType”>FoodEstablishment</span>
</div>
<div itemprop=”serviceChannel” itemscope itemtype=”http://schema.org/ServiceChannel”>
<span itemprop=”name”>NYC Food Service Web Channel</span>
<link itemprop=”serviceUrl” href=”https://a858-elpaca.nyc.gov/CitizenAccess/” />
</div>
<div itemprop=”serviceChannel” itemscope itemtype=”http://schema.org/ServiceChannel”>
<span itemprop=”name”>NYC Food Service Physical Channel</span>
<div itemprop=”serviceLocation” itemscope itemtype=”http://schema.org/GovernmentBuilding”>
<span itemprop=”name”>DCA Citywide Licensing Center</span>
<div itemprop=”address” itemscope itemtype=”http://schema.org/PostalAddress”>
<span itemprop=”streetAddress”>42 Broadway</span>
<span itemprop=”addressLocality”>New York</span>
<span itemprop=”addressRegion”>NY</span>
<span itemprop=”postalCode”>10004</span>
</div>
<time itemprop=”openingHours” datetime=”M,T,Th,Fr 09:00-17:00”>Mondays, Tuesdays, 
Thursdays, and Fridays 9am-5pm</time>
<time itemprop=”openingHours” datetime=”W 08:30-17:00”>Wednesdays 8:30am-5pm</time>
</div>
</div>
</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