Core RDF Vocabularies

Type-safe constants for RDF, RDFS, OWL, and XSD.
The foundational vocabularies for semantic web development.

What's Included

The essential RDF vocabularies that form the foundation of semantic web development.

RDF

Resource Description Framework

Core RDF vocabulary for defining resources, properties, and collections

Docs β†’

RDFS

RDF Schema

Schema vocabulary for labels, comments, class hierarchies, and property constraints

Docs β†’

OWL

Web Ontology Language

Ontology modeling vocabulary for classes, properties, and relationships

Docs β†’

XSD

XML Schema Datatypes

Standard datatypes for strings, numbers, dates, and more

Docs β†’

Getting Started

Installation

# Install core vocabularies
dart pub add locorda_rdf_terms_core

Usage Example

import 'package:locorda_rdf_core/core.dart';
import 'package:locorda_rdf_terms_core/rdf.dart';
import 'package:locorda_rdf_terms_core/rdfs.dart';
import 'package:locorda_rdf_terms_core/owl.dart';

void main() {
  final conceptIri = IriTerm('http://example.org/concept/Mammal');

  // Create a graph using core vocabularies
  final graph = RdfGraph.fromTriples([
    Triple(conceptIri, Rdf.type, Owl.Class),
    Triple(conceptIri, Rdfs.label, LiteralTerm.string('Mammal')),
    Triple(conceptIri, Rdfs.comment,
        LiteralTerm.string('A warm-blooded vertebrate animal')),
    Triple(conceptIri, Rdfs.subClassOf,
        IriTerm('http://example.org/concept/Animal')),
  ]);

  print(turtle.encode(graph));
}

πŸ’‘ Package Size

At only ~27KB compressed, this is the smallest vocabulary package. It contains only the essential RDF vocabularies that most applications need.

Why Use This Package?

πŸ“¦ Minimal Size

Only ~27KB compressed. Perfect for applications that only need the core RDF vocabularies.

πŸ”· Essential Vocabularies

RDF, RDFS, OWL, and XSD are the foundation of semantic web development. Most applications need these.

⚑ Zero Runtime Overhead

All constants are compile-time. No performance impact, just pure type safety.

🎯 Type Safety

Catch vocabulary errors at compile time. Full IDE support with autocompletion.

Ready to Use Core Vocabularies?

Start using type-safe RDF vocabulary constants in your Dart projects.