Skip to content

Commit

Permalink
Merge pull request #210 from spatie/schema-21
Browse files Browse the repository at this point in the history
upgrade to schema.org v21
  • Loading branch information
Gummibeer authored Jan 11, 2024
2 parents 0d7910a + 165147e commit 21529a8
Show file tree
Hide file tree
Showing 6 changed files with 1,425 additions and 1 deletion.
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/20.0/schemaorg-all-https.jsonld',
'core' => 'https://raw.githubusercontent.com/schemaorg/schemaorg/main/data/releases/21.0/schemaorg-all-https.jsonld',
]);

if (! $input->getOption('local')) {
Expand Down
164 changes: 164 additions & 0 deletions src/Contracts/PoliticalPartyContract.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
<?php

namespace Spatie\SchemaOrg\Contracts;

interface PoliticalPartyContract
{
public function actionableFeedbackPolicy($actionableFeedbackPolicy);

public function additionalType($additionalType);

public function address($address);

public function aggregateRating($aggregateRating);

public function alternateName($alternateName);

public function alumni($alumni);

public function areaServed($areaServed);

public function award($award);

public function awards($awards);

public function brand($brand);

public function contactPoint($contactPoint);

public function contactPoints($contactPoints);

public function correctionsPolicy($correctionsPolicy);

public function department($department);

public function description($description);

public function disambiguatingDescription($disambiguatingDescription);

public function dissolutionDate($dissolutionDate);

public function diversityPolicy($diversityPolicy);

public function diversityStaffingReport($diversityStaffingReport);

public function duns($duns);

public function email($email);

public function employee($employee);

public function employees($employees);

public function ethicsPolicy($ethicsPolicy);

public function event($event);

public function events($events);

public function faxNumber($faxNumber);

public function founder($founder);

public function founders($founders);

public function foundingDate($foundingDate);

public function foundingLocation($foundingLocation);

public function funder($funder);

public function funding($funding);

public function globalLocationNumber($globalLocationNumber);

public function hasCredential($hasCredential);

public function hasMerchantReturnPolicy($hasMerchantReturnPolicy);

public function hasOfferCatalog($hasOfferCatalog);

public function hasPOS($hasPOS);

public function hasProductReturnPolicy($hasProductReturnPolicy);

public function identifier($identifier);

public function image($image);

public function interactionStatistic($interactionStatistic);

public function isicV4($isicV4);

public function iso6523Code($iso6523Code);

public function keywords($keywords);

public function knowsAbout($knowsAbout);

public function knowsLanguage($knowsLanguage);

public function legalName($legalName);

public function leiCode($leiCode);

public function location($location);

public function logo($logo);

public function mainEntityOfPage($mainEntityOfPage);

public function makesOffer($makesOffer);

public function member($member);

public function memberOf($memberOf);

public function members($members);

public function naics($naics);

public function name($name);

public function nonprofitStatus($nonprofitStatus);

public function numberOfEmployees($numberOfEmployees);

public function ownershipFundingInfo($ownershipFundingInfo);

public function owns($owns);

public function parentOrganization($parentOrganization);

public function potentialAction($potentialAction);

public function publishingPrinciples($publishingPrinciples);

public function review($review);

public function reviews($reviews);

public function sameAs($sameAs);

public function seeks($seeks);

public function serviceArea($serviceArea);

public function slogan($slogan);

public function sponsor($sponsor);

public function subOrganization($subOrganization);

public function subjectOf($subjectOf);

public function taxID($taxID);

public function telephone($telephone);

public function unnamedSourcesPolicy($unnamedSourcesPolicy);

public function url($url);

public function vatID($vatID);
}
1 change: 1 addition & 0 deletions src/Graph.php
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,7 @@
* @method self|PodcastSeason podcastSeason(string|\Closure|null $identifier = null, \Closure|null $callback = null)
* @method self|PodcastSeries podcastSeries(string|\Closure|null $identifier = null, \Closure|null $callback = null)
* @method self|PoliceStation policeStation(string|\Closure|null $identifier = null, \Closure|null $callback = null)
* @method self|PoliticalParty politicalParty(string|\Closure|null $identifier = null, \Closure|null $callback = null)
* @method self|Pond pond(string|\Closure|null $identifier = null, \Closure|null $callback = null)
* @method self|PostOffice postOffice(string|\Closure|null $identifier = null, \Closure|null $callback = null)
* @method self|PostalAddress postalAddress(string|\Closure|null $identifier = null, \Closure|null $callback = null)
Expand Down
1 change: 1 addition & 0 deletions src/MultiTypedEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,7 @@
* @method self|PodcastSeason podcastSeason(\Closure|null $callback = null)
* @method self|PodcastSeries podcastSeries(\Closure|null $callback = null)
* @method self|PoliceStation policeStation(\Closure|null $callback = null)
* @method self|PoliticalParty politicalParty(\Closure|null $callback = null)
* @method self|Pond pond(\Closure|null $callback = null)
* @method self|PostOffice postOffice(\Closure|null $callback = null)
* @method self|PostalAddress postalAddress(\Closure|null $callback = null)
Expand Down
Loading

0 comments on commit 21529a8

Please sign in to comment.