OrganizationRole examples inconsistent with current schema
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- json
- Domain
- documentation
Research direction
Start with the linked Schema.org examples Role#eg-0204 and Occupation#eg-0250, then compare the alumniOf and hasOccupation range definitions. Determine the intended relationship between Role, OrganizationRole, Organization, and Occupation, and update the affected schema or examples so the examples conform to the current schema.
Written by the indexing model from the issue text.
Description
Two uses of Organization show examples using OrganizationRole in its place, but the schema does not allow for this:
aluminOf
https://schema.org/alumniOf can only be Organization or EducationalOrganization. OrganizationRole is not a subClassOf Organization. Yet Example 2 for role shows AlumniOf using OrganizationRole.
{
"@context": "https://schema.org",
"@type": "Person",
"name": "Delia Derbyshire",
"sameAs": "http://en.wikipedia.org/wiki/Delia_Derbyshire",
"alumniOf": {
"@type": "OrganizationRole",
"alumniOf": {
"@type": "CollegeOrUniversity",
"name": "University of Cambridge",
"sameAs": "http://en.wikipedia.org/wiki/University_of_Cambridge"
},
"startDate": "1959"
}
}
alumniOf should have Role or OrganizationRole in its range. or perhaps Role/OrganizationRole should have multiple parents?
hasOccupation
Similarly, Example 2 for Occupation shows Role, but hasOccupation has only Occupation in its range.
{
"@context": "https://schema.org/",
"@type": "Person",
"name": "Albert Einstein",
"hasOccupation": [
{
"@type": "Role",
"hasOccupation": {
"@type": "Occupation",
"name": "Patent examiner",
"occupationalCategory": "23-2099.00"
},
"startDate": "1901",
"endDate": "1906"
},
{
"@type": "Occupation",
"name": "Professor of Physics",
"educationRequirements": "PhD in Physics"
}
]
}
Initially filed in google/schema-dts#143
- Dominant language
- HTML
- Stars
- 6.3k
- Forks
- 962
- Avg merge
- 18h 7m
- Merged PRs (30d)
- 9
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from schemaorg/schemaorg
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
All issues in schemaorg/schemaorg
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
bancolombia/sentinel#22 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
objectionary/hone-maven-plugin#1061 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
redhat-developer/rhdh-plugins#4887 · 2 comments ·