Schema.org Vocabulary (HTTPS)

The full Schema.org vocabulary as type-safe Dart constants.
HTTPS URIs, class-specific helpers, and IDE discovery out of the box.

Schema.org at Full Fidelity

Use the complete Schema.org vocabulary with class-specific constants and cross-vocabulary properties for clean, discoverable structured data.

🏷️ Full Vocabulary

Every Schema.org class and property as compile-time constants with inline documentation.

🧭 Class-Specific Helpers

Use `SchemaPerson` and similar helpers to discover valid properties through IDE autocompletion.

πŸ”— Cross-Vocabulary Links

Related RDF properties from connected vocabularies are included and properly prefixed.

⚑ Zero Runtime Cost

Constants are compile-time only. No runtime penalties for richer vocabularies.

Getting Started

Installation

# Install Schema.org vocabulary (HTTPS)
dart pub add locorda_rdf_terms_schema

Usage Example

import 'package:locorda_rdf_core/core.dart';
import 'package:locorda_rdf_terms_schema/schema.dart';

void main() {
  final personIri = IriTerm('http://example.org/person/jane');

  final graph = RdfGraph.fromTriples([
    Triple(personIri, SchemaPerson.rdfType, SchemaPerson.classIri),
    Triple(personIri, SchemaPerson.name, LiteralTerm.string('Jane Doe')),
    Triple(
        personIri, SchemaPerson.email, LiteralTerm.string('jane@example.com')),
    Triple(
        personIri, SchemaPerson.jobTitle, LiteralTerm.string('Data Engineer')),
    Triple(
      personIri,
      SchemaPerson.worksFor,
      IriTerm('http://example.org/org/locorda'),
    ),
  ]);

  print(turtle.encode(graph));
}

πŸ’‘ Package Size

At around ~5MB compressed, this package contains the full Schema.org vocabulary. Use it when Schema.org is central to your application.

Why Use This Package?

🌐 SEO & Structured Data

Model rich metadata for web content, products, events, and organizations using the standard vocabulary.

🧩 IDE Discovery

Explore thousands of terms with autocomplete and inline documentation instead of memorizing IRIs.

🧱 Generator-Proven

Generated by `locorda_rdf_terms_generator` for consistent structure and up-to-date coverage.

🎯 Type Safety

Catch vocabulary errors at compile time while keeping RDF graphs flexible.

Ready to Use Schema.org?

Ship structured data with type-safe Schema.org constants in Dart.