Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed all inheritance warnings in schema.org #3356

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 5 additions & 12 deletions data/ext/health-lifesci/med-health-core.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -1203,8 +1203,7 @@

:activeIngredient a rdf:Property ;
rdfs:label "activeIngredient" ;
:domainIncludes :DietarySupplement,
:Drug,
:domainIncludes
:DrugStrength,
:Substance ;
:isPartOf <https://health-lifesci.schema.org> ;
Expand Down Expand Up @@ -1382,7 +1381,7 @@

:codeValue a rdf:Property ;
rdfs:label "codeValue" ;
:domainIncludes :MedicalCode .
:domainIncludes :CategoryCode .

:codingSystem a rdf:Property ;
rdfs:label "codingSystem" ;
Expand Down Expand Up @@ -1788,9 +1787,7 @@

:maximumIntake a rdf:Property ;
rdfs:label "maximumIntake" ;
:domainIncludes :DietarySupplement,
:Drug,
:DrugStrength,
:domainIncludes :DrugStrength,
:Substance ;
:isPartOf <https://health-lifesci.schema.org> ;
:rangeIncludes :MaximumDoseSchedule ;
Expand All @@ -1814,10 +1811,7 @@

:medicalSpecialty a rdf:Property ;
rdfs:label "medicalSpecialty" ;
:domainIncludes :Hospital,
:MedicalClinic,
:MedicalOrganization,
:Physician ;
:domainIncludes :MedicalOrganization;
:isPartOf <https://health-lifesci.schema.org> ;
:rangeIncludes :MedicalSpecialty ;
rdfs:comment "A medical specialty of the provider." .
Expand Down Expand Up @@ -1918,8 +1912,7 @@

:possibleTreatment a rdf:Property ;
rdfs:label "possibleTreatment" ;
:domainIncludes :MedicalCondition,
:MedicalSignOrSymptom ;
:domainIncludes :MedicalCondition;
:isPartOf <https://health-lifesci.schema.org> ;
:rangeIncludes :MedicalTherapy ;
rdfs:comment "A possible treatment to address this condition, sign or symptom." .
Expand Down
10 changes: 5 additions & 5 deletions data/ext/pending/issue-1401.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
rdfs:subClassOf :CreativeWork .

:assesses a rdf:Property ;
:domainIncludes :LearningResource .
:domainIncludes :CreativeWork .

:educationalAlignment a rdf:Property ;
:domainIncludes :LearningResource .
:domainIncludes :CreativeWork .

:educationalLevel a rdf:Property ;
:domainIncludes :LearningResource .
:domainIncludes :CreativeWork .

:educationalUse a rdf:Property ;
:domainIncludes :LearningResource .
:domainIncludes :CreativeWork .

:teaches a rdf:Property ;
:domainIncludes :LearningResource .
:domainIncludes :CreativeWork .

21 changes: 7 additions & 14 deletions data/ext/pending/issue-1525.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ A [[ReportageNewsArticle]] which goes deeper into analysis can also be marked wi

:actionableFeedbackPolicy a rdf:Property ;
rdfs:label "actionableFeedbackPolicy" ;
:domainIncludes :NewsMediaOrganization,
:Organization ;
:domainIncludes :Organization ;
:isPartOf <https://pending.schema.org> ;
:rangeIncludes :CreativeWork,
:URL ;
Expand All @@ -99,8 +98,7 @@ A [[ReportageNewsArticle]] which goes deeper into analysis can also be marked wi

:correctionsPolicy a rdf:Property ;
rdfs:label "correctionsPolicy" ;
:domainIncludes :NewsMediaOrganization,
:Organization ;
:domainIncludes :Organization ;
:isPartOf <https://pending.schema.org> ;
:rangeIncludes :CreativeWork,
:URL ;
Expand All @@ -111,8 +109,7 @@ A [[ReportageNewsArticle]] which goes deeper into analysis can also be marked wi

:diversityPolicy a rdf:Property ;
rdfs:label "diversityPolicy" ;
:domainIncludes :NewsMediaOrganization,
:Organization ;
:domainIncludes :Organization ;
:isPartOf <https://pending.schema.org> ;
:rangeIncludes :CreativeWork,
:URL ;
Expand All @@ -122,8 +119,7 @@ A [[ReportageNewsArticle]] which goes deeper into analysis can also be marked wi

:diversityStaffingReport a rdf:Property ;
rdfs:label "diversityStaffingReport" ;
:domainIncludes :NewsMediaOrganization,
:Organization ;
:domainIncludes :Organization ;
:isPartOf <https://pending.schema.org> ;
:rangeIncludes :Article,
:URL ;
Expand All @@ -134,8 +130,7 @@ A [[ReportageNewsArticle]] which goes deeper into analysis can also be marked wi

:ethicsPolicy a rdf:Property ;
rdfs:label "ethicsPolicy" ;
:domainIncludes :NewsMediaOrganization,
:Organization ;
:domainIncludes :Organization ;
:isPartOf <https://pending.schema.org> ;
:rangeIncludes :CreativeWork,
:URL ;
Expand Down Expand Up @@ -166,8 +161,7 @@ A [[ReportageNewsArticle]] which goes deeper into analysis can also be marked wi

:ownershipFundingInfo a rdf:Property ;
rdfs:label "ownershipFundingInfo" ;
:domainIncludes :NewsMediaOrganization,
:Organization ;
:domainIncludes :Organization ;
:isPartOf <https://pending.schema.org> ;
:rangeIncludes :AboutPage,
:CreativeWork,
Expand All @@ -180,8 +174,7 @@ A [[ReportageNewsArticle]] which goes deeper into analysis can also be marked wi

:unnamedSourcesPolicy a rdf:Property ;
rdfs:label "unnamedSourcesPolicy" ;
:domainIncludes :NewsMediaOrganization,
:Organization ;
:domainIncludes :Organization ;
:isPartOf <https://pending.schema.org> ;
:rangeIncludes :CreativeWork,
:URL ;
Expand Down
3 changes: 1 addition & 2 deletions data/ext/pending/issue-1779.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
:educationalLevel a rdf:Property ;
rdfs:label "educationalLevel" ;
:domainIncludes :CreativeWork,
:EducationEvent,
:EducationalOccupationalCredential ;
:EducationEvent ;
:isPartOf <https://pending.schema.org> ;
:rangeIncludes :DefinedTerm,
:Text,
Expand Down
4 changes: 2 additions & 2 deletions data/ext/pending/issue-2289.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

:occupationalCategory a rdf:Property ;
rdfs:label "occupationalCategory" ;
:domainIncludes :WorkBasedProgram ;
:domainIncludes :EducationalOccupationalProgram ;
:rangeIncludes :CategoryCode,
:Text ;
:source <https://github.com/schemaorg/schemaorg/issues/2289> .
Expand Down Expand Up @@ -97,7 +97,7 @@

:trainingSalary a rdf:Property ;
rdfs:label "trainingSalary" ;
:domainIncludes :WorkBasedProgram ;
:domainIncludes :EducationalOccupationalProgram ;
:isPartOf <https://pending.schema.org> ;
:rangeIncludes :MonetaryAmountDistribution ;
:source <https://github.com/schemaorg/schemaorg/issues/2289> ;
Expand Down
4 changes: 1 addition & 3 deletions data/ext/pending/issue-2373.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,7 @@

:tourBookingPage a rdf:Property ;
rdfs:label "tourBookingPage" ;
:domainIncludes :Accommodation,
:ApartmentComplex,
:Place ;
:domainIncludes :Place ;
:isPartOf <https://pending.schema.org> ;
:rangeIncludes :URL ;
:source <https://github.com/schemaorg/schemaorg/issues/2373> ;
Expand Down
2 changes: 1 addition & 1 deletion data/ext/pending/issue-2450.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ For an [[AudioObject]] to be 'satire or parody content': Audio that was created

:interpretedAsClaim a rdf:Property ;
rdfs:label "interpretedAsClaim" ;
:domainIncludes :MediaObject, :CreativeWork;
:domainIncludes :CreativeWork;
rdfs:subPropertyOf :description ;
:isPartOf <https://pending.schema.org> ;
:rangeIncludes :Claim ;
Expand Down
8 changes: 4 additions & 4 deletions data/ext/pending/issue-2564.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
rdfs:label "Observation" ;
:isPartOf <https://pending.schema.org> ;
:source <https://github.com/schemaorg/schemaorg/issues/2291> ;
rdfs:comment """Instances of the class [[Observation]] are used to specify observations about an entity at a particular time. The principal properties of an [[Observation]] are [[observationAbout]], [[measuredProperty]], [[statType]], [[value] and [[observationDate]] and [[measuredProperty]]. Some but not all Observations represent a [[QuantitativeValue]]. Quantitative observations can be about a [[StatisticalVariable]], which is an abstract specification about which we can make observations that are grounded at a particular location and time.
rdfs:comment """Instances of the class [[Observation]] are used to specify observations about an entity at a particular time. The principal properties of an [[Observation]] are [[observationAbout]], [[measuredProperty]], [[statType]], [[value] and [[observationDate]] and [[measuredProperty]]. Some but not all Observations represent a [[QuantitativeValue]]. Quantitative observations can be about a [[StatisticalVariable]], which is an abstract specification about which we can make observations that are grounded at a particular location and time.

Observations can also encode a subset of simple RDF-like statements (its observationAbout, a StatisticalVariable, defining the measuredPoperty; its observationAbout property indicating the entity the statement is about, and [[value]] )

In the context of a quantitative knowledge graph, typical properties could include [[measuredProperty]], [[observationAbout]], [[observationDate]], [[value]], [[unitCode]], [[unitText]], [[measurementMethod]].
Expand Down Expand Up @@ -101,7 +101,7 @@ population, and does not imply that the population consists of people. For examp
rdfs:label "ConstraintNode" ;
:isPartOf <https://pending.schema.org> ;
:source <https://github.com/schemaorg/schemaorg/issues/2564> ;
rdfs:comment """The ConstraintNode type is provided to support usecases in which a node in a structured data graph is described with properties which appear to describe a single entity, but are being used in a situation where they serve a more abstract purpose. A [[ConstraintNode]] can be described using [[constraintProperty]] and [[numConstraints]]. These constraint properties can serve a
rdfs:comment """The ConstraintNode type is provided to support usecases in which a node in a structured data graph is described with properties which appear to describe a single entity, but are being used in a situation where they serve a more abstract purpose. A [[ConstraintNode]] can be described using [[constraintProperty]] and [[numConstraints]]. These constraint properties can serve a
variety of purposes, and their values may sometimes be understood to indicate sets of possible values rather than single, exact and specific values.""" ;
rdfs:subClassOf :Intangible . # there are a couple of areas around product templates (including groups), possibly Actions, where this might be applied too.

Expand Down Expand Up @@ -150,7 +150,7 @@ population, and does not imply that the population consists of people. For examp
rdfs:label "observationAbout" ;
:domainIncludes :Observation ;
:isPartOf <https://pending.schema.org> ;
:rangeIncludes :Thing, :Place ;
:rangeIncludes :Thing;
:source <https://github.com/schemaorg/schemaorg/issues/2291> ;
rdfs:comment "The [[observationAbout]] property identifies an entity, often a [[Place]], associated with an [[Observation]]." .

Expand Down
3 changes: 1 addition & 2 deletions data/ext/pending/issue-2766.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
rdfs:comment "A HyperToEntry is an item within a [[HyperToc]], which represents a hypertext table of contents for complex media objects, such as [[VideoObject]], [[AudioObject]]. The media object itself is indicated using [[associatedMedia]]. Each section of interest within that content can be described with a [[HyperTocEntry]], with associated [[startOffset]] and [[endOffset]]. When several entries are all from the same file, [[associatedMedia]] is used on the overarching [[HyperTocEntry]]; if the content has been split into multiple files, they can be referenced using [[associatedMedia]] on each [[HyperTocEntry]]." ;
rdfs:subClassOf :CreativeWork .

:associatedMedia :domainIncludes :HyperToc,
:HyperTocEntry .
:associatedMedia :domainIncludes :CreativeWork .

:endOffset :rangeIncludes :HyperTocEntry .

Expand Down
2 changes: 1 addition & 1 deletion data/ext/pending/issue-2811.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@

:size :rangeIncludes :SizeSpecification .

:valueReference :rangeIncludes :MeasurementTypeEnumeration, :Text, :DefinedTerm .
:valueReference :rangeIncludes :Enumeration, :Text, :DefinedTerm .



Expand Down
6 changes: 3 additions & 3 deletions data/ext/pending/issue-383.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
rdfs:comment """A FundingAgency is an organization that implements one or more [[FundingScheme]]s and manages
the granting process (via [[Grant]]s, typically [[MonetaryGrant]]s).
A funding agency is not always required for grant funding, e.g. philanthropic giving, corporate sponsorship etc.

Examples of funding agencies include ERC, REA, NIH, Bill and Melinda Gates Foundation, ...
""" ;
rdfs:subClassOf :Project .
Expand Down Expand Up @@ -56,7 +56,7 @@ The amount of a [[Grant]] is represented using [[amount]] as a [[MonetaryAmount]
<https://github.com/schemaorg/schemaorg/issues/383> ;

rdfs:comment """An enterprise (potentially individual but typically collaborative), planned to achieve a particular aim.
Use properties from [[Organization]], [[subOrganization]]/[[parentOrganization]] to indicate project sub-structures.
Use properties from [[Organization]], [[subOrganization]]/[[parentOrganization]] to indicate project sub-structures.
""" ;
rdfs:subClassOf :Organization .

Expand Down Expand Up @@ -94,7 +94,7 @@ Use properties from [[Organization]], [[subOrganization]]/[[parentOrganization]]
rdfs:comment "A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]." .

:funder a rdf:Property ;
:domainIncludes :Grant, :MonetaryGrant .
:domainIncludes :Grant .

:sponsor a rdf:Property ;
:domainIncludes :Grant .
Expand Down