Skip to content

Commit

Permalink
Merge pull request #204 from spatie/schema-16
Browse files Browse the repository at this point in the history
upgrade to schema.org v16
  • Loading branch information
Gummibeer authored Jan 11, 2024
2 parents 111488e + 1534edd commit 0151396
Show file tree
Hide file tree
Showing 1,073 changed files with 18,910 additions and 8,793 deletions.
2 changes: 1 addition & 1 deletion generator/Console/GenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$generator = new PackageGenerator();

$definitions = new Definitions([
'core' => 'https://raw.githubusercontent.com/schemaorg/schemaorg/main/data/releases/15.0/schemaorg-all-https.jsonld',
'core' => 'https://raw.githubusercontent.com/schemaorg/schemaorg/main/data/releases/16.0/schemaorg-all-https.jsonld',
]);

if (! $input->getOption('local')) {
Expand Down
12 changes: 8 additions & 4 deletions src/AMRadioChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@ class AMRadioChannel extends BaseType implements AMRadioChannelContract, Broadca
/**
* An additional type for the item, typically used for adding more specific
* types from external vocabularies in microdata syntax. This is a
* relationship between something and a class that the thing is in. In RDFa
* syntax, it is better to use the native RDFa syntax - the 'typeof'
* attribute - for multiple types. Schema.org tools may have only weaker
* understanding of extra types, in particular those defined externally.
* relationship between something and a class that the thing is in.
* Typically the value is a URI-identified RDF class, and in this case
* corresponds to the
* use of rdf:type in RDF. Text values can be used sparingly, for cases
* where useful information can be added without their being an appropriate
* schema to reference. In the case of text values, the class label should
* follow the schema.org [style
* guide](https://schema.org/docs/styleguide.html)
*
* @param string|string[] $additionalType
*
Expand Down
42 changes: 28 additions & 14 deletions src/APIReference.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,14 @@ public function acquireLicensePage($acquireLicensePage)
/**
* An additional type for the item, typically used for adding more specific
* types from external vocabularies in microdata syntax. This is a
* relationship between something and a class that the thing is in. In RDFa
* syntax, it is better to use the native RDFa syntax - the 'typeof'
* attribute - for multiple types. Schema.org tools may have only weaker
* understanding of extra types, in particular those defined externally.
* relationship between something and a class that the thing is in.
* Typically the value is a URI-identified RDF class, and in this case
* corresponds to the
* use of rdf:type in RDF. Text values can be used sparingly, for cases
* where useful information can be added without their being an appropriate
* schema to reference. In the case of text values, the class label should
* follow the schema.org [style
* guide](https://schema.org/docs/styleguide.html)
*
* @param string|string[] $additionalType
*
Expand Down Expand Up @@ -456,6 +460,7 @@ public function awards($awards)
*
* @see https://schema.org/backstory
* @see https://pending.schema.org
* @link https://github.com/schemaorg/schemaorg/issues/1688
*/
public function backstory($backstory)
{
Expand Down Expand Up @@ -661,6 +666,7 @@ public function copyrightYear($copyrightYear)
*
* @see https://schema.org/correction
* @see https://pending.schema.org
* @link https://github.com/schemaorg/schemaorg/issues/1950
*/
public function correction($correction)
{
Expand Down Expand Up @@ -1004,7 +1010,6 @@ public function encodings($encodings)
* @return static
*
* @see https://schema.org/exampleOfWork
* @link http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_bibex
*/
public function exampleOfWork($exampleOfWork)
{
Expand Down Expand Up @@ -1089,6 +1094,7 @@ public function funder($funder)
*
* @see https://schema.org/funding
* @see https://pending.schema.org
* @link https://github.com/schemaorg/schemaorg/issues/383
*/
public function funding($funding)
{
Expand Down Expand Up @@ -1118,7 +1124,6 @@ public function genre($genre)
* @return static
*
* @see https://schema.org/hasPart
* @link http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_bibex
*/
public function hasPart($hasPart)
{
Expand Down Expand Up @@ -1256,7 +1261,7 @@ public function isAccessibleForFree($isAccessibleForFree)

/**
* A resource from which this work is derived or from which it is a
* modification or adaption.
* modification or adaptation.
*
* @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\ProductContract|\Spatie\SchemaOrg\Contracts\ProductContract[]|string|string[] $isBasedOn
*
Expand Down Expand Up @@ -1525,7 +1530,6 @@ public function offers($offers)
* @return static
*
* @see https://schema.org/pageEnd
* @link http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_bibex
*/
public function pageEnd($pageEnd)
{
Expand All @@ -1540,7 +1544,6 @@ public function pageEnd($pageEnd)
* @return static
*
* @see https://schema.org/pageStart
* @link http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_bibex
*/
public function pageStart($pageStart)
{
Expand All @@ -1556,7 +1559,6 @@ public function pageStart($pageStart)
* @return static
*
* @see https://schema.org/pagination
* @link http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_bibex
*/
public function pagination($pagination)
{
Expand Down Expand Up @@ -2122,6 +2124,20 @@ public function text($text)
return $this->setProperty('text', $text);
}

/**
* Thumbnail image for an image or video.
*
* @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[] $thumbnail
*
* @return static
*
* @see https://schema.org/thumbnail
*/
public function thumbnail($thumbnail)
{
return $this->setProperty('thumbnail', $thumbnail);
}

/**
* A thumbnail image relevant to the Thing.
*
Expand All @@ -2137,9 +2153,8 @@ public function thumbnailUrl($thumbnailUrl)
}

/**
* Approximate or typical time it takes to work with or through this
* learning resource for the typical intended target audience, e.g. 'PT30M',
* 'PT1H25M'.
* Approximate or typical time it usually takes to work with or through the
* content of this work for the typical or target audience.
*
* @param \Spatie\SchemaOrg\Contracts\DurationContract|\Spatie\SchemaOrg\Contracts\DurationContract[] $timeRequired
*
Expand Down Expand Up @@ -2291,7 +2306,6 @@ public function wordCount($wordCount)
* @return static
*
* @see https://schema.org/workExample
* @link http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_bibex
*/
public function workExample($workExample)
{
Expand Down
38 changes: 27 additions & 11 deletions src/AboutPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,14 @@ public function acquireLicensePage($acquireLicensePage)
/**
* An additional type for the item, typically used for adding more specific
* types from external vocabularies in microdata syntax. This is a
* relationship between something and a class that the thing is in. In RDFa
* syntax, it is better to use the native RDFa syntax - the 'typeof'
* attribute - for multiple types. Schema.org tools may have only weaker
* understanding of extra types, in particular those defined externally.
* relationship between something and a class that the thing is in.
* Typically the value is a URI-identified RDF class, and in this case
* corresponds to the
* use of rdf:type in RDF. Text values can be used sparingly, for cases
* where useful information can be added without their being an appropriate
* schema to reference. In the case of text values, the class label should
* follow the schema.org [style
* guide](https://schema.org/docs/styleguide.html)
*
* @param string|string[] $additionalType
*
Expand Down Expand Up @@ -599,6 +603,7 @@ public function copyrightYear($copyrightYear)
*
* @see https://schema.org/correction
* @see https://pending.schema.org
* @link https://github.com/schemaorg/schemaorg/issues/1950
*/
public function correction($correction)
{
Expand Down Expand Up @@ -928,7 +933,6 @@ public function encodings($encodings)
* @return static
*
* @see https://schema.org/exampleOfWork
* @link http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_bibex
*/
public function exampleOfWork($exampleOfWork)
{
Expand Down Expand Up @@ -999,6 +1003,7 @@ public function funder($funder)
*
* @see https://schema.org/funding
* @see https://pending.schema.org
* @link https://github.com/schemaorg/schemaorg/issues/383
*/
public function funding($funding)
{
Expand Down Expand Up @@ -1028,7 +1033,6 @@ public function genre($genre)
* @return static
*
* @see https://schema.org/hasPart
* @link http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_bibex
*/
public function hasPart($hasPart)
{
Expand Down Expand Up @@ -1166,7 +1170,7 @@ public function isAccessibleForFree($isAccessibleForFree)

/**
* A resource from which this work is derived or from which it is a
* modification or adaption.
* modification or adaptation.
*
* @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\ProductContract|\Spatie\SchemaOrg\Contracts\ProductContract[]|string|string[] $isBasedOn
*
Expand Down Expand Up @@ -2059,6 +2063,20 @@ public function text($text)
return $this->setProperty('text', $text);
}

/**
* Thumbnail image for an image or video.
*
* @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[] $thumbnail
*
* @return static
*
* @see https://schema.org/thumbnail
*/
public function thumbnail($thumbnail)
{
return $this->setProperty('thumbnail', $thumbnail);
}

/**
* A thumbnail image relevant to the Thing.
*
Expand All @@ -2074,9 +2092,8 @@ public function thumbnailUrl($thumbnailUrl)
}

/**
* Approximate or typical time it takes to work with or through this
* learning resource for the typical intended target audience, e.g. 'PT30M',
* 'PT1H25M'.
* Approximate or typical time it usually takes to work with or through the
* content of this work for the typical or target audience.
*
* @param \Spatie\SchemaOrg\Contracts\DurationContract|\Spatie\SchemaOrg\Contracts\DurationContract[] $timeRequired
*
Expand Down Expand Up @@ -2214,7 +2231,6 @@ public function video($video)
* @return static
*
* @see https://schema.org/workExample
* @link http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_bibex
*/
public function workExample($workExample)
{
Expand Down
12 changes: 8 additions & 4 deletions src/AcceptAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,14 @@ public function actionStatus($actionStatus)
/**
* An additional type for the item, typically used for adding more specific
* types from external vocabularies in microdata syntax. This is a
* relationship between something and a class that the thing is in. In RDFa
* syntax, it is better to use the native RDFa syntax - the 'typeof'
* attribute - for multiple types. Schema.org tools may have only weaker
* understanding of extra types, in particular those defined externally.
* relationship between something and a class that the thing is in.
* Typically the value is a URI-identified RDF class, and in this case
* corresponds to the
* use of rdf:type in RDF. Text values can be used sparingly, for cases
* where useful information can be added without their being an appropriate
* schema to reference. In the case of text values, the class label should
* follow the schema.org [style
* guide](https://schema.org/docs/styleguide.html)
*
* @param string|string[] $additionalType
*
Expand Down
Loading

0 comments on commit 0151396

Please sign in to comment.