Class SchemaOrganization

java.lang.Object
com.oorian.schema.SchemaType
com.oorian.schema.SchemaOrganization
All Implemented Interfaces:
Jsonable

public class SchemaOrganization extends SchemaType
Represents a Schema.org Organization.

An Organization is a company, business, or other organized group of people. This schema type helps search engines display organization information in knowledge panels and search results.

Usage:


 SchemaOrganization org = new SchemaOrganization()
     .setName("Corvus Engineering, LLC")
     .setUrl("https://corvusengineering.com")
     .setLogo("https://corvusengineering.com/logo.png")
     .addSameAs("https://github.com/corvusengineering");

 head.addElement(new JsonLdScript(org));
 
Since:
2025
Version:
1.0
Author:
Claude
  • Constructor Details

    • SchemaOrganization

      public SchemaOrganization()
  • Method Details

    • setName

      public SchemaOrganization setName(String name)
      Sets the name of the organization.
      Parameters:
      name - The organization name
      Returns:
      This organization for method chaining
    • setUrl

      public SchemaOrganization setUrl(String url)
      Sets the URL of the organization's website.
      Parameters:
      url - The website URL
      Returns:
      This organization for method chaining
    • setLogo

      public SchemaOrganization setLogo(String logo)
      Sets the URL of the organization's logo.
      Parameters:
      logo - The logo URL
      Returns:
      This organization for method chaining
    • setDescription

      public SchemaOrganization setDescription(String description)
      Sets a description of the organization.
      Parameters:
      description - The organization description
      Returns:
      This organization for method chaining
    • setEmail

      public SchemaOrganization setEmail(String email)
      Sets the contact email address.
      Parameters:
      email - The email address
      Returns:
      This organization for method chaining
    • setTelephone

      public SchemaOrganization setTelephone(String telephone)
      Sets the contact telephone number.
      Parameters:
      telephone - The telephone number
      Returns:
      This organization for method chaining
    • setFoundingDate

      public SchemaOrganization setFoundingDate(String foundingDate)
      Sets the founding date of the organization (ISO 8601 format).
      Parameters:
      foundingDate - The founding date (e.g., "2014-01-01")
      Returns:
      This organization for method chaining
    • setAddress

      public SchemaOrganization setAddress(String address)
      Sets the address of the organization.
      Parameters:
      address - The address string
      Returns:
      This organization for method chaining
    • addSameAs

      public SchemaOrganization addSameAs(String url)
      Adds a social profile or related URL.
      Parameters:
      url - The URL of a social profile or related page
      Returns:
      This organization for method chaining
    • toJsonValue

      public JsonValue toJsonValue()
      Description copied from interface: Jsonable
      Serializes this object to a JsonValue.
      Specified by:
      toJsonValue in interface Jsonable
      Specified by:
      toJsonValue in class SchemaType
      Returns:
      the JSON representation of this object.