JSON-LD Dart classes for Schema.org vocabulary.

Features

schema_org provides Dart definitions for Schema.org vocabulary that can be exported to JSON-LD format. The typings are exposed as complete sets of discriminated type unions, allowing for easy completions and stricter validation.

You can find all available schemas on Schema.org and each schema is represented in this library with the prefix Schema

For example

Usage

Call the SchemaOrg.writeJsonLd() method and pass it a Schema.org class that represents your data.

SchemaOrg.writeJsonLd(
    SchemaOrganization(
        name: 'Oddbit',
        url: 'https://oddbit.id',
        logo: 'https://avatars.githubusercontent.com/u/1946799?s=200&v=4',
    ),
);

Oddbit Organization Screenshot

Getting involved

First of all, thank you for even considering to get involved. You are a real super :star: and we :heart: you!

All the schema definitions are auto generated by the schema_parser CLI script that you can find in the repository folder /parser.

Reporting bugs and issues

Validating all the schemas and possible quirks of how to interpret their usage is a huge task and we appreciate any findings and links to sources or best practices that can help us to improve this package.

We're grateful for any help that you can provide, and even better if you can provide suggestions for how to improve the schema_parser script that generates all the code.

Libraries

schema_org
JSON-LD Dart classes for Schema.org vocabulary. provides Dart definitions for Schema.org vocabulary that can be exported to JSON-LD format. The typings are exposed as complete sets of discriminated type unions, allowing for easy completions and stricter validation.
schemas/about_page
schemas/accept_action
schemas/accommodation
schemas/accounting_service
schemas/achieve_action
schemas/action
schemas/action_access_specification
schemas/action_status_type
schemas/activate_action
schemas/add_action
schemas/administrative_area
schemas/adult_entertainment
schemas/adult_oriented_enumeration
schemas/advertiser_content_article
schemas/aggregate_offer
schemas/aggregate_rating
schemas/agree_action
schemas/airline
schemas/airport
schemas/alignment_object
schemas/allocate_action
schemas/am_radio_channel
schemas/amp_story
schemas/amusement_park
schemas/analysis_news_article
schemas/anatomical_structure
schemas/anatomical_system
schemas/animal_shelter
schemas/answer
schemas/apartment
schemas/apartment_complex
schemas/api_reference
schemas/append_action
schemas/apply_action
schemas/approved_indication
schemas/aquarium
schemas/archive_component
schemas/archive_organization
schemas/arrive_action
schemas/artery
schemas/article
schemas/ask_action
schemas/ask_public_news_article
schemas/assess_action
schemas/assign_action
schemas/atlas
schemas/attorney
schemas/audience
schemas/audio_object
schemas/audio_object_snapshot
schemas/audiobook
schemas/authorize_action
schemas/auto_body_shop
schemas/auto_dealer
schemas/auto_parts_store
schemas/auto_rental
schemas/auto_repair
schemas/auto_wash
schemas/automated_teller
schemas/automotive_business
schemas/background_news_article
schemas/bakery
schemas/bank_account
schemas/bank_or_credit_union
schemas/bar_or_pub
schemas/barcode
schemas/beach
schemas/beauty_salon
schemas/bed_and_breakfast
schemas/bed_details
schemas/bed_type
schemas/befriend_action
schemas/bike_store
schemas/bio_chem_entity
schemas/blog
schemas/blog_posting
schemas/blood_test
schemas/boarding_policy_type
schemas/boat_reservation
schemas/boat_terminal
schemas/boat_trip
schemas/body_measurement_type_enumeration
schemas/body_of_water
schemas/bone
schemas/book
schemas/book_format_type
schemas/book_series
schemas/book_store
schemas/bookmark_action
schemas/borrow_action
schemas/bowling_alley
schemas/brain_structure
schemas/brand
schemas/brewery
schemas/bridge
schemas/broadcast_channel
schemas/broadcast_event
schemas/broadcast_frequency_specification
schemas/broadcast_service
schemas/brokerage_account
schemas/buddhist_temple
schemas/bus_or_coach
schemas/bus_reservation
schemas/bus_station
schemas/bus_stop
schemas/bus_trip
schemas/business_audience
schemas/business_entity_type
schemas/business_event
schemas/business_function
schemas/buy_action
schemas/cable_or_satellite_service
schemas/cafe_or_coffee_shop
schemas/campground
schemas/camping_pitch
schemas/canal
schemas/cancel_action
schemas/car
schemas/car_usage_type
schemas/casino
schemas/category_code
schemas/category_code_set
schemas/catholic_church
schemas/cdcpmd_record
schemas/cemetery
schemas/certification
schemas/certification_status_enumeration
schemas/chapter
schemas/check_action
schemas/check_in_action
schemas/check_out_action
schemas/checkout_page
schemas/chemical_substance
schemas/child_care
schemas/childrens_event
schemas/choose_action
schemas/church
schemas/city
schemas/city_hall
schemas/civic_structure
schemas/claim
schemas/claim_review
schemas/class
schemas/clip
schemas/clothing_store
schemas/code
schemas/collection
schemas/collection_page
schemas/college_or_university
schemas/comedy_club
schemas/comedy_event
schemas/comic_cover_art
schemas/comic_issue
schemas/comic_series
schemas/comic_story
schemas/comment
schemas/comment_action
schemas/communicate_action
schemas/complete_data_feed
schemas/compound_price_specification
schemas/computer_language
schemas/computer_store
schemas/confirm_action
schemas/consortium
schemas/constraint_node
schemas/consume_action
schemas/contact_page
schemas/contact_point
schemas/contact_point_option
schemas/continent
schemas/control_action
schemas/convenience_store
schemas/conversation
schemas/cook_action
schemas/corporation
schemas/correction_comment
schemas/country
schemas/course
schemas/course_instance
schemas/courthouse
schemas/cover_art
schemas/covid_testing_facility
schemas/create_action
schemas/creative_work
schemas/creative_work_season
schemas/creative_work_series
schemas/credit_card
schemas/crematorium
schemas/critic_review
schemas/currency_conversion_service
schemas/d_dx_element
schemas/dance_event
schemas/dance_group
schemas/data_catalog
schemas/data_download
schemas/data_feed
schemas/data_feed_item
schemas/data_type
schemas/dataset
schemas/dated_money_specification
schemas/day_of_week
schemas/day_spa
schemas/deactivate_action
schemas/defence_establishment
schemas/defined_region
schemas/defined_term
schemas/defined_term_set
schemas/delete_action
schemas/delivery_charge_specification
schemas/delivery_event
schemas/delivery_method
schemas/delivery_time_settings
schemas/demand
schemas/dentist
schemas/depart_action
schemas/department_store
schemas/deposit_account
schemas/diagnostic_lab
schemas/diagnostic_procedure
schemas/diet
schemas/dietary_supplement
schemas/digital_document
schemas/digital_document_permission
schemas/digital_document_permission_type
schemas/digital_platform_enumeration
schemas/disagree_action
schemas/discover_action
schemas/discussion_forum_posting
schemas/dislike_action
schemas/distance
schemas/distillery
schemas/dose_schedule
schemas/download_action
schemas/draw_action
schemas/drawing
schemas/drink_action
schemas/drive_wheel_configuration_value
schemas/drug
schemas/drug_class
schemas/drug_cost
schemas/drug_cost_category
schemas/drug_pregnancy_category
schemas/drug_prescription_status
schemas/drug_strength
schemas/dry_cleaning_or_laundry
schemas/duration
schemas/eat_action
schemas/education_event
schemas/educational_audience
schemas/educational_occupational_credential
schemas/educational_occupational_program
schemas/educational_organization
schemas/electrician
schemas/electronics_store
schemas/elementary_school
schemas/email_message
schemas/embassy
schemas/emergency_service
schemas/employee_role
schemas/employer_aggregate_rating
schemas/employer_review
schemas/employment_agency
schemas/endorse_action
schemas/endorsement_rating
schemas/energy
schemas/energy_consumption_details
schemas/energy_efficiency_enumeration
schemas/energy_star_energy_efficiency_enumeration
schemas/engine_specification
schemas/entertainment_business
schemas/entry_point
schemas/enumeration
schemas/episode
schemas/eu_energy_efficiency_enumeration
schemas/event
schemas/event_attendance_mode_enumeration
schemas/event_reservation
schemas/event_series
schemas/event_status_type
schemas/event_venue
schemas/exchange_rate_specification
schemas/exercise_action
schemas/exercise_gym
schemas/exercise_plan
schemas/exhibition_event
schemas/faq_page
schemas/fast_food_restaurant
schemas/festival
schemas/film_action
schemas/financial_product
schemas/financial_service
schemas/find_action
schemas/fire_station
schemas/flight
schemas/flight_reservation
schemas/floor_plan
schemas/florist
schemas/fm_radio_channel
schemas/follow_action
schemas/food_establishment
schemas/food_establishment_reservation
schemas/food_event
schemas/food_service
schemas/funding_agency
schemas/funding_scheme
schemas/furniture_store
schemas/game
schemas/game_availability_enumeration
schemas/game_play_mode
schemas/game_server
schemas/game_server_status
schemas/garden_store
schemas/gas_station
schemas/gated_residence_community
schemas/gender_type
schemas/gene
schemas/general_contractor
schemas/geo_circle
schemas/geo_coordinates
schemas/geo_shape
schemas/geospatial_geometry
schemas/give_action
schemas/golf_course
schemas/government_benefits_type
schemas/government_building
schemas/government_office
schemas/government_organization
schemas/government_permit
schemas/government_service
schemas/grant
schemas/grocery_store
schemas/guide
schemas/hackathon
schemas/hair_salon
schemas/hardware_store
schemas/health_and_beauty_business
schemas/health_aspect_enumeration
schemas/health_club
schemas/health_insurance_plan
schemas/health_plan_cost_sharing_specification
schemas/health_plan_formulary
schemas/health_plan_network
schemas/health_topic_content
schemas/high_school
schemas/hindu_temple
schemas/hobby_shop
schemas/home_and_construction_business
schemas/home_goods_store
schemas/hospital
schemas/hostel
schemas/hotel
schemas/hotel_room
schemas/house
schemas/house_painter
schemas/how_to
schemas/how_to_direction
schemas/how_to_item
schemas/how_to_section
schemas/how_to_step
schemas/how_to_supply
schemas/how_to_tip
schemas/how_to_tool
schemas/hvac_business
schemas/hyper_toc
schemas/hyper_toc_entry
schemas/ice_cream_shop
schemas/ignore_action
schemas/image_object
schemas/image_object_snapshot
schemas/imaging_test
schemas/individual_physician
schemas/individual_product
schemas/infectious_agent_class
schemas/infectious_disease
schemas/inform_action
schemas/insert_action
schemas/install_action
schemas/insurance_agency
schemas/intangible
schemas/interact_action
schemas/interaction_counter
schemas/internet_cafe
schemas/investment_fund
schemas/investment_or_deposit
schemas/invite_action
schemas/invoice
schemas/iptc_digital_source_enumeration
schemas/item_availability
schemas/item_list
schemas/item_list_order_type
schemas/item_page
schemas/jewelry_store
schemas/job_posting
schemas/join_action
schemas/joint
schemas/lake_body_of_water
schemas/landform
schemas/landmarks_or_historical_buildings
schemas/language
schemas/learning_resource
schemas/leave_action
schemas/legislation
schemas/legislation_object
schemas/legislative_building
schemas/lend_action
schemas/library
schemas/library_system
schemas/lifestyle_modification
schemas/ligament
schemas/like_action
schemas/liquor_store
schemas/list_item
schemas/listen_action
schemas/literary_event
schemas/live_blog_posting
schemas/loan_or_credit
schemas/local_business
schemas/location_feature_specification
schemas/locksmith
schemas/lodging_business
schemas/lodging_reservation
schemas/lose_action
schemas/lymphatic_vessel
schemas/manuscript
schemas/map
schemas/map_category_type
schemas/marry_action
schemas/mass
schemas/math_solver
schemas/maximum_dose_schedule
schemas/measurement_method_enum
schemas/measurement_type_enumeration
schemas/media_enumeration
schemas/media_manipulation_rating_enumeration
schemas/media_object
schemas/media_review
schemas/media_review_item
schemas/media_subscription
schemas/medical_audience
schemas/medical_audience_type
schemas/medical_business
schemas/medical_cause
schemas/medical_clinic
schemas/medical_code
schemas/medical_condition
schemas/medical_condition_stage
schemas/medical_contraindication
schemas/medical_device
schemas/medical_device_purpose
schemas/medical_entity
schemas/medical_enumeration
schemas/medical_evidence_level
schemas/medical_guideline
schemas/medical_guideline_contraindication
schemas/medical_guideline_recommendation
schemas/medical_imaging_technique
schemas/medical_indication
schemas/medical_intangible
schemas/medical_observational_study
schemas/medical_observational_study_design
schemas/medical_organization
schemas/medical_procedure
schemas/medical_procedure_type
schemas/medical_risk_calculator
schemas/medical_risk_estimator
schemas/medical_risk_factor
schemas/medical_risk_score
schemas/medical_scholarly_article
schemas/medical_sign
schemas/medical_sign_or_symptom
schemas/medical_specialty
schemas/medical_study
schemas/medical_study_status
schemas/medical_symptom
schemas/medical_test
schemas/medical_test_panel
schemas/medical_therapy
schemas/medical_trial
schemas/medical_trial_design
schemas/medical_web_page
schemas/medicine_system
schemas/meeting_room
schemas/mens_clothing_store
schemas/merchant_return_enumeration
schemas/merchant_return_policy
schemas/merchant_return_policy_seasonal_override
schemas/message
schemas/middle_school
schemas/mobile_application
schemas/mobile_phone_store
schemas/molecular_entity
schemas/monetary_amount
schemas/monetary_amount_distribution
schemas/monetary_grant
schemas/money_transfer
schemas/mortgage_loan
schemas/mosque
schemas/motel
schemas/motorcycle
schemas/motorcycle_dealer
schemas/motorcycle_repair
schemas/motorized_bicycle
schemas/mountain
schemas/move_action
schemas/movie
schemas/movie_clip
schemas/movie_rental_store
schemas/movie_series
schemas/movie_theater
schemas/moving_company
schemas/muscle
schemas/museum
schemas/music_album
schemas/music_album_production_type
schemas/music_album_release_type
schemas/music_composition
schemas/music_event
schemas/music_group
schemas/music_playlist
schemas/music_recording
schemas/music_release
schemas/music_release_format_type
schemas/music_store
schemas/music_venue
schemas/music_video_object
schemas/nail_salon
schemas/nerve
schemas/news_article
schemas/news_media_organization
schemas/newspaper
schemas/ngo
schemas/night_club
schemas/nl_nonprofit_type
schemas/nonprofit_type
schemas/notary
schemas/note_digital_document
schemas/nutrition_information
schemas/observation
schemas/occupation
schemas/occupational_experience_requirements
schemas/occupational_therapy
schemas/ocean_body_of_water
schemas/offer
schemas/offer_catalog
schemas/offer_for_lease
schemas/offer_for_purchase
schemas/offer_item_condition
schemas/offer_shipping_details
schemas/office_equipment_store
schemas/on_demand_event
schemas/online_business
schemas/online_store
schemas/opening_hours_specification
schemas/opinion_news_article
schemas/optician
schemas/order
schemas/order_action
schemas/order_item
schemas/order_status
schemas/organization
schemas/organization_role
schemas/organize_action
schemas/outlet_store
schemas/ownership_info
schemas/paint_action
schemas/painting
schemas/palliative_procedure
schemas/parcel_delivery
schemas/parent_audience
schemas/park
schemas/parking_facility
schemas/pathology_test
schemas/patient
schemas/pawn_shop
schemas/pay_action
schemas/payment_card
schemas/payment_charge_specification
schemas/payment_method
schemas/payment_service
schemas/payment_status_type
schemas/people_audience
schemas/perform_action
schemas/performance_role
schemas/performing_arts_theater
schemas/performing_group
schemas/periodical
schemas/permit
schemas/person
schemas/pet_store
schemas/pharmacy
schemas/photograph
schemas/photograph_action
schemas/physical_activity
schemas/physical_activity_category
schemas/physical_exam
schemas/physical_therapy
schemas/physician
schemas/physicians_office
schemas/place
schemas/place_of_worship
schemas/plan_action
schemas/play
schemas/play_action
schemas/play_game_action
schemas/playground
schemas/plumber
schemas/podcast_episode
schemas/podcast_season
schemas/podcast_series
schemas/police_station
schemas/political_party
schemas/pond
schemas/post_office
schemas/postal_address
schemas/postal_code_range_specification
schemas/poster
schemas/pre_order_action
schemas/prepend_action
schemas/preschool
schemas/presentation_digital_document
schemas/prevention_indication
schemas/price_component_type_enumeration
schemas/price_specification
schemas/price_type_enumeration
schemas/product
schemas/product_collection
schemas/product_group
schemas/product_model
schemas/professional_service
schemas/profile_page
schemas/program_membership
schemas/project
schemas/property
schemas/property_value
schemas/property_value_specification
schemas/protein
schemas/psychological_treatment
schemas/public_swimming_pool
schemas/public_toilet
schemas/publication_event
schemas/publication_issue
schemas/publication_volume
schemas/qa_page
schemas/qualitative_value
schemas/quantitative_value
schemas/quantitative_value_distribution
schemas/quantity
schemas/question
schemas/quiz
schemas/quotation
schemas/quote_action
schemas/radiation_therapy
schemas/radio_broadcast_service
schemas/radio_channel
schemas/radio_clip
schemas/radio_episode
schemas/radio_season
schemas/radio_series
schemas/radio_station
schemas/rating
schemas/react_action
schemas/read_action
schemas/real_estate_agent
schemas/real_estate_listing
schemas/receive_action
schemas/recipe
schemas/recommendation
schemas/recycling_center
schemas/refund_type_enumeration
schemas/register_action
schemas/reject_action
schemas/rent_action
schemas/rental_car_reservation
schemas/repayment_specification
schemas/replace_action
schemas/reply_action
schemas/report
schemas/reportage_news_article
schemas/reported_dose_schedule
schemas/research_organization
schemas/research_project
schemas/researcher
schemas/reservation
schemas/reservation_package
schemas/reservation_status_type
schemas/reserve_action
schemas/reservoir
schemas/residence
schemas/resort
schemas/restaurant
schemas/restricted_diet
schemas/resume_action
schemas/return_action
schemas/return_fees_enumeration
schemas/return_label_source_enumeration
schemas/return_method_enumeration
schemas/review
schemas/review_action
schemas/review_news_article
schemas/river_body_of_water
schemas/role
schemas/roofing_contractor
schemas/room
schemas/rsvp_action
schemas/rsvp_response_type
schemas/rv_park
schemas/sale_event
schemas/satirical_article
schemas/schedule
schemas/schedule_action
schemas/schema_3d_model
schemas/scholarly_article
schemas/school
schemas/school_district
schemas/screening_event
schemas/sculpture
schemas/sea_body_of_water
schemas/search_action
schemas/search_rescue_organization
schemas/search_results_page
schemas/season
schemas/seat
schemas/seek_to_action
schemas/self_storage
schemas/sell_action
schemas/send_action
schemas/series
schemas/service
schemas/service_channel
schemas/share_action
schemas/sheet_music
schemas/shipping_delivery_time
schemas/shipping_rate_settings
schemas/shoe_store
schemas/shopping_center
schemas/short_story
schemas/single_family_residence
schemas/size_group_enumeration
schemas/size_specification
schemas/size_system_enumeration
schemas/ski_resort
schemas/social_event
schemas/social_media_posting
schemas/software_application
schemas/software_source_code
schemas/solve_math_action
schemas/some_products
schemas/speakable_specification
schemas/special_announcement
schemas/specialty
schemas/sporting_goods_store
schemas/sports_activity_location
schemas/sports_club
schemas/sports_event
schemas/sports_organization
schemas/sports_team
schemas/spreadsheet_digital_document
schemas/stadium_or_arena
schemas/state
schemas/statement
schemas/statistical_population
schemas/statistical_variable
schemas/status_enumeration
schemas/steering_position_value
schemas/store
schemas/structured_value
schemas/subscribe_action
schemas/substance
schemas/subway_station
schemas/suite
schemas/superficial_anatomy
schemas/surgical_procedure
schemas/suspend_action
schemas/syllabus
schemas/synagogue
schemas/table
schemas/take_action
schemas/tattoo_parlor
schemas/taxi
schemas/taxi_reservation
schemas/taxi_service
schemas/taxi_stand
schemas/taxon
schemas/tech_article
schemas/television_channel
schemas/television_station
schemas/tennis_complex
schemas/text_digital_document
schemas/text_object
schemas/theater_event
schemas/theater_group
schemas/therapeutic_procedure
schemas/thesis
schemas/thing
schemas/three_d_model
schemas/ticket
schemas/tie_action
schemas/tip_action
schemas/tire_shop
schemas/tourist_attraction
schemas/tourist_destination
schemas/tourist_information_center
schemas/tourist_trip
schemas/toy_store
schemas/track_action
schemas/trade_action
schemas/train_reservation
schemas/train_station
schemas/train_trip
schemas/transfer_action
schemas/travel_action
schemas/travel_agency
schemas/treatment_indication
schemas/trip
schemas/tv_clip
schemas/tv_episode
schemas/tv_season
schemas/tv_series
schemas/type_and_quantity_node
schemas/uk_nonprofit_type
schemas/un_register_action
schemas/unit_price_specification
schemas/update_action
schemas/us_nonprofit_type
schemas/use_action
schemas/user_blocks
schemas/user_checkins
schemas/user_comments
schemas/user_downloads
schemas/user_interaction
schemas/user_likes
schemas/user_page_visits
schemas/user_plays
schemas/user_plus_ones
schemas/user_review
schemas/user_tweets
schemas/vacation_rental
schemas/vehicle
schemas/vein
schemas/vessel
schemas/veterinary_care
schemas/video_game
schemas/video_game_clip
schemas/video_game_series
schemas/video_object
schemas/video_object_snapshot
schemas/view_action
schemas/virtual_location
schemas/visual_arts_event
schemas/visual_artwork
schemas/vital_sign
schemas/volcano
schemas/vote_action
schemas/want_action
schemas/warranty_promise
schemas/warranty_scope
schemas/watch_action
schemas/waterfall
schemas/wear_action
schemas/wearable_measurement_type_enumeration
schemas/wearable_size_group_enumeration
schemas/wearable_size_system_enumeration
schemas/web_api
schemas/web_application
schemas/web_content
schemas/web_page
schemas/web_page_element
schemas/web_site
schemas/wholesale_store
schemas/win_action
schemas/winery
schemas/work_based_program
schemas/workers_union
schemas/wp_ad_block
schemas/write_action
schemas/zoo