Schema.org Vocabulary (HTTP)

Legacy-friendly Schema.org terms using HTTP URIs.
Same type-safe API, for systems that still require http://schema.org/.

HTTP URIs for Legacy Compatibility

Use this package when your data or integrations still rely on http://schema.org/ identifiers. The API mirrors the HTTPS package.

🌐 HTTP Namespace

All IRIs use the legacy http://schema.org/ namespace for maximum compatibility.

πŸ” Same API Surface

Identical class-specific helpers and vocabulary constants as the HTTPS package.

🧭 Class-Specific Access

Use `SchemaHttpPerson` and similar helpers to discover valid properties quickly.

⚑ Compile-Time Constants

Pure constants with no runtime overhead, even at large vocabulary size.

Getting Started

Installation

# Install Schema.org vocabulary (HTTP)
dart pub add locorda_rdf_terms_schema_http

Usage Example

import 'package:locorda_rdf_core/core.dart';
import 'package:locorda_rdf_terms_schema_http/schema_http.dart';

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

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

  print(turtle.encode(graph));
}

πŸ’‘ When to Use HTTP

Prefer the HTTPS package for new projects. Use HTTP only when integrating with existing datasets or systems that require legacy Schema.org URIs.

Why Use This Package?

🧩 HTTP URI Parity

Use the same structure and concepts as the HTTPS package, but with http://schema.org/ IRIs for legacy datasets.

πŸ›‘οΈ Type Safety

Maintain compile-time guarantees while staying compatible with legacy IRIs.

πŸ”— Cross-Vocabulary Support

Connected vocabularies remain available through class-specific helpers.

🧱 Generator-Proven

Built using `locorda_rdf_terms_generator` for consistent structure and updates.

Need HTTP Schema.org Support?

Use the legacy Schema.org HTTP package when compatibility matters.