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 β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.