Skip to content

Commit c0de32f

Browse files
author
Martin Alvarez-Espinar
committed
Merge branch 'master' of https://github.com/schemaorg/schemaorg
* 'master' of https://github.com/schemaorg/schemaorg: (76 commits) Added tests for correct operation of traverseForHTML & traverseForJSONLD functions Updated for contentRating / Rating tweak. Added Rating as expected of contentRating, for schemaorg#1935 Thanks @vholland! Noted alias of HTML from rdf:HTML, schemaorg#1634 alias HTML to rdf:HTML (schemaorg#1634) Obvious 404 fixes from issue (schemaorg#1901) (schemaorg#1930) Changes to move to https only (for UI, not for vocab URIs) (schemaorg#1932) Fix to docs/tree.jsonld causing crash 2018 -> 2017, fixes schemaorg#1929 Thanks @Aaranged :) Removed duplicate entries, and added a summary. schemaorg#1891 Updated to cover all changes in 3.4. More release notes. Added lots of release notes, converted from git. Update releases.html One-liner for creating release note entries. Working on conversion of 900+ lines of changes into release note format. For schemaorg#1891 release 3.4. Tweaks to image tag, changed "mp4" to "jpg", added alt. /cc schemaorg#1922 Small fix to howto html samples (schemaorg#1922) Fixes for the HowTo sample (schemaorg#1919) Fix physician subclass (schemaorg#1911) ... # Conflicts: # app.yaml
2 parents f173f85 + 4ee318d commit c0de32f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+3894
-757
lines changed

README.md

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,43 @@ This is the Schema.org project repository. It contains all the schemas, examples
77
Issues and proposals are managed here by participants of the [W3C Schema.org Community Group](https://www.w3.org/community/schemaorg/). If you are interested to participate please
88
join the group at the [W3C](https://www.w3.org/community/schemaorg/), introduce yourself and find or file issues here that engage your interest. If you are new to Git and GitHub, there's a useful [introduction to Github](https://www.w3.org/2006/tools/wiki/Github) in the W3C Wiki.
99

10-
[Issue #1](https://github.com/schemaorg/schemaorg/issues/1) in Github is an entry point for release planning. It
10+
[Issue #1](https://github.com/schemaorg/schemaorg/issues/1) in Github is an entry point for release planning. It
1111
should provide an overview of upcoming work, in terms of broad themes, specific issues and release milestones.
1212

1313
With every release, we change the default Github branch to match the code name for the release.
14-
[Issue #1](https://github.com/schemaorg/schemaorg/issues/1) will link to per-release entry points, or else navigate issues via label or milestone within Github.
15-
Every change to the site comes via discussions here. Substantive changes are recorded in our [release notes](https://schema.org/docs/releases.html).
16-
A preview of the [draft new release notes](http://webschemas.org/docs/releases.html) can be found as part of the test site for our next release.
17-
Every month or so, after final review by the Schema.org Steering Group, we make a formal release.
14+
[Issue #1](https://github.com/schemaorg/schemaorg/issues/1) will link to per-release entry points, or else navigate issues via label or milestone within Github.
15+
Every change to the site comes via discussions here. Substantive changes are recorded in our [release notes](https://schema.org/docs/releases.html).
16+
A preview of the [draft new release notes](http://webschemas.org/docs/releases.html) can be found as part of the test site for our next release.
17+
Every month or so, after final review by the Schema.org Steering Group, we make a formal release.
1818

1919
Regarding CC and opensource licenses for documents and software, see our [FAQ entry](https://schema.org/docs/faq.html#18).
2020

21+
Proposing schemas
22+
=================
23+
24+
We are always interested in practical suggestions for improvements to schema.org, and our collection of schemas has been [growing gradually](http://schema.org/docs/releases.html) since our launch in 2011.
25+
26+
We try to prioritize simple fixes and improvements to our existing schemas, examples and documentation over the addition of new vocabulary,
27+
and we are most likely to add new schemas when there is evidence that some large-scale consuming application will make use of the data.
28+
29+
Note that Schema.org does *not* attempt to capture the full detail of Web content; it is necessarily a simplification of a more complex reality. This means that there will be many cases where adding more detail to Schema.org will look possible. However, in the interests of keeping Schema.org simple and usable for publishers and webmasters, we will often choose not to add such detail. Schema.org uses Web standards such as JSON-LD, Microdata and RDFa to
30+
allow for [independent extension](http://schema.org/docs/extension.html) (for example, see [GS1's vocabulary](http://gs1.org/voc)).
31+
32+
* Suggestions for improvements are always welcome here - please search for older discussions (including closed issues) before opening a new issue.
33+
* We particularly value improvements to existing definitions, examples and text, to clarify how schema.org vocabulary is used in practice.
34+
* Please don't be surprised or offended if you raise an issue proposing new schemas and it is marked by the project team as "[noted](https://github.com/schemaorg/schemaorg/issues?q=is%3Aissue+label%3A%22Closed+and+Noted+%28and+possibly+Queued%29%22+is%3Aclosed)" then closed. We have 100s of issues discussing possible improvements, and to keep things manageable we adopt the convention of noting then closing issues that are not likely to be immediately explored.
35+
* While many Schema.org improvements have been proposed via Github's "[Pull request](https://help.github.com/articles/about-pull-requests/)" mechanism (see also our list of [PRs](https://github.com/schemaorg/schemaorg/pulls)), please do not undertake any substantial development work without agreeing it with the project team here first.
36+
* All Pull Requests should reference specific issues that they're fixes or solutions for. This lets the schema.org community discuss problems and topics without it being tied too closely to a specific (and easily outdated) proposed fix.
37+
* Please note that some changes are much easier to make than others: the wording/phrasing in definitions is relatively easy to amend, whereas the exact spelling of a type or property ('Person', 'startDate' etc.) is much more disruptive to change.
38+
* There are many other projects developing schemas and ontologies for the Web, e.g. [Wikidata](http://wikidata.org/) or the vocabulary projects in the [Linked Data](http://lov.okfn.org/) community. Many of these projects go into more expressive detail than is possible for a project like Schema.org. To keep Schema.org manageable, we have a strong bias towards designs that are grounded in large scale usage on the Web, in particular [usage](https://github.com/schemaorg/schemaorg/issues/652) by data-consuming applications since these in turn motivate data publishers. Other schema initiatives have different priorities and make different tradeoffs.
39+
2140
See more on ["How we work"](https://schema.org/docs/howwework.html)
2241

42+
2343
Software
2444
========
2545

26-
For most collaborators, all you need to know about the software is how to run it. Essentially you will need to have the Python version of Google App Engine SDK running on the platform of your choice. You can then make test builds of schema.org running on your own machine accessible as http://localhost:8080/ or else post them on appspot.com for collaboration. See the [Appengine documentation](https://cloud.google.com/appengine/docs) for details.
46+
For most collaborators, all you need to know about the software is how to run it. Essentially you will need to have the Python version of Google App Engine SDK running on the platform of your choice. You can then make test builds of schema.org running on your own machine accessible as http://localhost:8080/ or else post them on appspot.com for collaboration. See the [Appengine documentation](https://cloud.google.com/appengine/docs) for details.
2747

2848
More information about the software is also available in [SOFTWARE_README.md](SOFTWARE_README.md)
2949

@@ -57,7 +77,7 @@ Github Branch naming
5777

5878
https://schema.org/docs/releases.html lists releases by working codename and release name.
5979

60-
e.g. successor to https://schema.org/docs/releases.html#v1.91 was code-named sdo-venkman,
80+
e.g. successor to https://schema.org/docs/releases.html#v1.91 was code-named sdo-venkman,
6181
and eventually became https://schema.org/docs/releases.html#v1.92
6282

6383
You can therefore see candidate draft release notes in the Git repository at docs/releases.html
@@ -66,10 +86,10 @@ You can therefore see candidate draft release notes in the Git repository at doc
6686
Notes
6787
=====
6888

69-
This documentation concerns the software codebase rather than schema.org itself.
89+
This documentation concerns the software codebase rather than schema.org itself.
7090

7191
However do note that labels, comments, and documentation should use US English (in the code
72-
and schemas), if a choice between English variants is needed. Please aim for international
92+
and schemas), if a choice between English variants is needed. Please aim for international
7393
English wherever possible.
7494

7595
See also: https://twitter.com/schemaorg_dev

api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,7 @@ def GetJsonLdContext(layers='core'):
10781078
jsonldcontext = "{\n \"@context\": {\n"
10791079
jsonldcontext += " \"type\": \"@type\",\n"
10801080
jsonldcontext += " \"id\": \"@id\",\n"
1081+
jsonldcontext += " \"HTML\": { \"@id\": \"rdf:HTML\" },\n"
10811082
jsonldcontext += " \"@vocab\": \"http://schema.org/\",\n"
10821083
jsonldcontext += namespaces
10831084

apimarkdown.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import logging
2+
logging.basicConfig(level=logging.INFO) # dev_appserver.py --log_level debug .
3+
log = logging.getLogger(__name__)
4+
15
import markdown2
26
from markdown2 import Markdown
37
import re
@@ -26,15 +30,20 @@ def parse(self,source,preservePara=False):
2630
source = source.strip()
2731
source = source.replace("\\n","\n")
2832
try:
29-
self.parselock.acquire()
30-
ret = self._md.convert(source)
33+
self.parselock.acquire()
34+
ret = self._md.convert(source)
3135
finally:
3236
self.parselock.release()
3337

3438
if not preservePara:
3539
#Remove wrapping <p> </p>\n that Markdown2 adds by default
3640
if len(ret) > 7 and ret.startswith("<p>") and ret.endswith("</p>\n"):
3741
ret = ret[3:len(ret)-5]
42+
43+
ret = ret.replace("<p>","")
44+
ret = ret.replace("</p>","<br/><br/>")
45+
if ret.endswith("<br/><br/>"):
46+
ret = ret[:len(ret)-10]
3847

3948
return self.parseWiklinks(ret)
4049

apirdflib.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323

2424
ATTIC = 'attic'
2525
VOCAB = "http://schema.org"
26+
VOCABLEN = len(VOCAB)
27+
ALTVOCAB = "https://schema.org"
2628
STORE = rdflib.Dataset()
2729
#Namespace mapping#############
2830
nss = {'core': 'http://schema.org/'}
@@ -55,10 +57,18 @@ def queryGraph():
5557
QUERYGRAPH.bind('rdfa', 'http://www.w3.org/ns/rdfa#')
5658
QUERYGRAPH.bind('dct', 'http://purl.org/dc/terms/')
5759
QUERYGRAPH.bind('schema', 'http://schema.org/')
60+
altSameAs(QUERYGRAPH)
5861
finally:
5962
RDFLIBLOCK.release()
6063
return QUERYGRAPH
6164

65+
def altSameAs(graph):
66+
sameAs = URIRef("%s/sameAs" % VOCAB)
67+
for sub in graph.subjects(None,None):
68+
if sub.startswith(VOCAB):
69+
#log.info("%s >>>> %s " % (sub,"%s%s" % (ALTVOCAB,sub[VOCABLEN:])))
70+
graph.add( (sub,sameAs,URIRef("%s%s" % (ALTVOCAB,sub[VOCABLEN:]))) )
71+
6272
def loadNss():
6373
global NSSLoaded
6474
global nss

app.yaml

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1+
<<<<<<< HEAD
12
application: sdo-athletics
23
#application: schemaorgae
4+
=======
5+
#application: schemaorgae
6+
#application: webschemas
7+
>>>>>>> 4ee318d3729096659337e314ba10944ce991bd67
38

4-
version: 1
9+
#version: 1
510
module: default
611
runtime: python27
712
api_version: 1
813
threadsafe: true
9-
1014

1115
#automatic_scaling: #Only applicable for appengine accounts with billing enabled
1216
# min_idle_instances: 2
@@ -84,6 +88,48 @@ handlers:
8488
- url: /version/
8589
script: sdoapp.app
8690

91+
- url: /version/(.*/.*\.rdfa)
92+
mime_type: text/html
93+
static_files: data/releases/\1
94+
upload: data/releases/(.*/.*\.rdfa)
95+
application_readable: True
96+
97+
- url: /version/(.*/.*\.ttl)
98+
mime_type: application/x-turtle
99+
static_files: data/releases/\1
100+
upload: data/releases/(.*/.*\.ttl)
101+
application_readable: True
102+
103+
- url: /version/(.*/.*\.jsonld)
104+
mime_type: application/ld+json
105+
static_files: data/releases/\1
106+
upload: data/releases/(.*/.*\.jsonld)
107+
application_readable: True
108+
109+
- url: /version/(.*/.*\.rdf)
110+
mime_type: application/rdf+xml
111+
static_files: data/releases/\1
112+
upload: data/releases/(.*/.*\.rdf)
113+
application_readable: True
114+
115+
- url: /version/(.*/.*\.nt)
116+
mime_type: application/n-triples
117+
static_files: data/releases/\1
118+
upload: data/releases/(.*/.*\.nt)
119+
application_readable: True
120+
121+
- url: /version/(.*/.*\.nq)
122+
mime_type: application/n-quads
123+
static_files: data/releases/\1
124+
upload: data/releases/(.*/.*\.nq)
125+
application_readable: True
126+
127+
- url: /version/(.*/.*\.csv)
128+
mime_type: text/csv
129+
static_files: data/releases/\1
130+
upload: data/releases/(.*/.*\.csv)
131+
application_readable: True
132+
87133
- url: /version/*/*
88134
static_dir: data/releases/
89135
application_readable: True

data/examples.txt

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ MICRODATA:
390390
"flashPlayer_719", "358", "16", "6", "#FFFFFF");fo.addVariable("url","http://media.freesound.org/data/0/previews/719__elmomo__12oclock_girona_preview.mp3");fo.addVariable("autostart", "0");fo.write("flashcontent_719");
391391
</script>
392392

393-
<meta itemprop="encodingFormat" content="mp3" />
393+
<meta itemprop="encodingFormat" content="audio/mpeg" />
394394
<meta itemprop="contentUrl" content="http://media.freesound.org/data/0/previews/719__elmomo__12oclock_girona_preview.mp3" />
395395

396396
<span class="description">
@@ -409,7 +409,7 @@ RDFA:
409409
"flashPlayer_719", "358", "16", "6", "#FFFFFF");fo.addVariable("url","http://media.freesound.org/data/0/previews/719__elmomo__12oclock_girona_preview.mp3");fo.addVariable("autostart", "0");fo.write("flashcontent_719");
410410
</script>
411411

412-
<meta property="encodingFormat" content="mp3" />
412+
<meta property="encodingFormat" content="audio/mpeg" />
413413
<meta property="contentUrl" content="http://media.freesound.org/data/0/previews/719__elmomo__12oclock_girona_preview.mp3" />
414414

415415
<span class="description">
@@ -427,7 +427,7 @@ JSON:
427427
"contentUrl": "http://media.freesound.org/data/0/previews/719__elmomo__12oclock_girona_preview.mp3",
428428
"description": "Recorded on a terrace of Girona a sunday morning",
429429
"duration": "T0M15S",
430-
"encodingFormat": "mp3",
430+
"encodingFormat": "audio/mpeg",
431431
"name": "12oclock_girona.mp3"
432432
}
433433
</script>
@@ -8854,7 +8854,7 @@ JSON:
88548854
}
88558855
</script>
88568856

8857-
TYPES: accessibilityFeature, accessibilityHazard, fileFormat
8857+
TYPES: accessibilityFeature, accessibilityHazard, encodingFormat
88588858

88598859
PRE-MARKUP:
88608860
<img src="png"
@@ -8866,7 +8866,7 @@ MICRODATA:
88668866
<meta itemprop="accessibilityFeature" content="longDescription">
88678867
<meta itemprop="accessibilityHazard" content="noFlashingHazard">
88688868
<meta itemprop="accessibilityHazard" content="noMotionSimulationHazard">
8869-
<meta itemprop="fileFormat" content="image/png">
8869+
<meta itemprop="encodingFormat" content="image/png">
88708870
<img src="png"
88718871
alt="standards. toothbrushes. don't ask" longdesc="927desc.html">
88728872
</figure>
@@ -8877,7 +8877,7 @@ RDFA:
88778877
<meta property="accessibilityFeature" content="longDescription">
88788878
<meta property="accessibilityHazard" content="noFlashingHazard">
88798879
<meta property="accessibilityHazard" content="noMotionSimulationHazard">
8880-
<meta property="fileFormat" content="image/png">
8880+
<meta property="encodingFormat" content="image/png">
88818881
<img src="png"
88828882
alt="standards. toothbrushes. don't ask" longdesc="927desc.html">
88838883
</figure>
@@ -8886,7 +8886,7 @@ JSON:
88868886

88878887
No Json example available
88888888

8889-
TYPES: fileFormat, accessibilityHazard, accessibilityFeature, accessibilityControl, accessibilityAPI
8889+
TYPES: encodingFormat, accessibilityHazard, accessibilityFeature, accessibilityControl, accessibilityAPI
88908890

88918891
PRE-MARKUP:
88928892
[A basic presentation in HTML]
@@ -8899,10 +8899,10 @@ MICRODATA:
88998899
<meta itemprop="accessibilityHazard" content="noSoundHazard"/>
89008900
<meta itemprop="accessibilityFeature" content="longDescription"/>
89018901
<meta itemprop="accessibilityFeature" content="alternativeText"/>
8902-
<meta itemprop="fileFormat" content="text/html"/>
8903-
<meta itemprop="fileFormat" content="image/png"/>
8904-
<meta itemprop="fileFormat" content="text/css"/>
8905-
<meta itemprop="fileFormat" content="text/javascript"/>
8902+
<meta itemprop="encodingFormat" content="text/html"/>
8903+
<meta itemprop="encodingFormat" content="image/png"/>
8904+
<meta itemprop="encodingFormat" content="text/css"/>
8905+
<meta itemprop="encodingFormat" content="text/javascript"/>
89068906
<meta itemprop="accessibilityAPI" content="ARIA"/>
89078907
<meta itemprop="accessibilityAPI" content="UIA"/>
89088908
<meta itemprop="accessibilityControl" content="fullKeyboardControl"/>
@@ -8920,10 +8920,10 @@ RDFA:
89208920
<meta property="accessibilityHazard" content="noSoundHazard"/>
89218921
<meta property="accessibilityFeature" content="longDescription"/>
89228922
<meta property="accessibilityFeature" content="alternativeText"/>
8923-
<meta property="fileFormat" content="text/html"/>
8924-
<meta property="fileFormat" content="image/png"/>
8925-
<meta property="fileFormat" content="text/css"/>
8926-
<meta property="fileFormat" content="text/javascript"/>
8923+
<meta property="encodingFormat" content="text/html"/>
8924+
<meta property="encodingFormat" content="image/png"/>
8925+
<meta property="encodingFormat" content="text/css"/>
8926+
<meta property="encodingFormat" content="text/javascript"/>
89278927
<meta property="accessibilityAPI" content="ARIA"/>
89288928
<meta property="accessibilityAPI" content="UIA"/>
89298929
<meta property="accessibilityControl" content="fullKeyboardControl"/>
@@ -8945,7 +8945,7 @@ JSON:
89458945
"accessibilityFeature" : [
89468946
"alternativeText" , "longDescription" ] ,
89478947

8948-
"fileFormat" : [
8948+
"encodingFormat" : [
89498949
"text/html" , "image/png" ,
89508950
"text/javascript" , "text/css" ] ,
89518951

@@ -9540,7 +9540,7 @@ JSON:
95409540
{
95419541
"@context": "http://schema.org",
95429542
"@type": "Question",
9543-
"text": "What is attr_accessor in Ruby?",
9543+
"name": "What is attr_accessor in Ruby?",
95449544
"upvoteCount": "196",
95459545
"text": "I am having difficulty understanding Ruby attr_accessors, can someone explain them?",
95469546
"dateCreated": "2010-11-04T20:07Z",

data/ext/health-lifesci/med-health-core.rdfa

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@
336336
<link property="http://schema.org/isPartOf" href="http://health-lifesci.schema.org" />
337337
</div>
338338

339-
<div typeof="http://schema.org/MedicalSpecialty" resource="http://schema.org/OccupationalTherapy">
339+
<div typeof="rdfs:Class" resource="http://schema.org/OccupationalTherapy">
340340
<span class="h" property="rdfs:label">OccupationalTherapy</span>
341341
<span property="rdfs:comment">A treatment of people with physical, emotional, or social problems, using purposeful activity to help them overcome or learn to deal with their problems.</span>
342342
<span>Subclass of: <a property="rdfs:subClassOf" href="http://schema.org/MedicalTherapy">MedicalTherapy</a></span>

data/ext/pending/issue-1156.rdfa

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
- 13 new properties (5 being subproperties of existing properties)
77
-->
88

9+
<!--
10+
October 2017 :
11+
- narrowed the range of legislationJurisdiction to AdministrativeArea rather than Place
12+
- broaden the range of legislationIdentifier to include URL, to match with the description of the property.
13+
-->
14+
915
<!--
1016
September 2017 :
1117
- deleted inverse properties
@@ -82,6 +88,7 @@
8288
<link property="rdfs:subPropertyOf" href="http://schema.org/identifier" />
8389
<span>Domain: <a property="http://schema.org/domainIncludes" href="http://schema.org/Legislation">Legislation</a></span>
8490
<span>Range: <a property="http://schema.org/rangeIncludes" href="http://schema.org/Text">Text</a></span>
91+
<span>Range: <a property="http://schema.org/rangeIncludes" href="http://schema.org/URL">URL</a></span>
8592
<span>Close Match: <a property="skos:closeMatch" href="http://data.europa.eu/eli/ontology#id_local">eli:id_local</a></span>
8693
<span>Source: <a property="dc:source" href="http://publications.europa.eu/mdr/eli/index.html">ELI</a></span>
8794
</div>
@@ -166,7 +173,7 @@
166173
<link property="rdfs:subPropertyOf" href="http://schema.org/spatialCoverage" />
167174
<span>Domain: <a property="http://schema.org/domainIncludes" href="http://schema.org/Legislation">Legislation</a></span>
168175
<span>Range: <a property="http://schema.org/rangeIncludes" href="http://schema.org/Text">Text</a></span>
169-
<span>Range: <a property="http://schema.org/rangeIncludes" href="http://schema.org/Place">Place</a></span>
176+
<span>Range: <a property="http://schema.org/rangeIncludes" href="http://schema.org/AdministrativeArea">AdministrativeArea</a></span>
170177
<span>Exact Match: <a property="skos:exactMatch" href="http://data.europa.eu/eli/ontology#jurisdiction">eli:jurisdiction</a></span>
171178
<span>Source: <a property="dc:source" href="http://publications.europa.eu/mdr/eli/index.html">ELI</a></span>
172179
<link property="owl:equivalentProperty" href="http://data.europa.eu/eli/ontology#jurisdiction"/>

0 commit comments

Comments
 (0)