Common RDF Vocabularies
Type-safe constants for FOAF, Dublin Core, DCAT, SKOS, and more.
Essential vocabularies for semantic web applications.
Included Vocabularies
Essential semantic web vocabularies for building linked data applications.
Getting Started
Installation
# Install common vocabularies
dart pub add locorda_rdf_terms_common Usage Example
import 'package:locorda_rdf_core/core.dart';
import 'package:locorda_rdf_terms_common/foaf.dart';
import 'package:locorda_rdf_terms_common/dc.dart';
void main() {
final personIri = IriTerm('http://example.org/person/jane');
// Use FOAF for person data
final graph = RdfGraph.fromTriples([
Triple(personIri, Foaf.name, LiteralTerm('Jane Doe')),
Triple(personIri, Foaf.mbox, IriTerm('mailto:jane@example.com')),
Triple(personIri, Dc.creator, LiteralTerm('System')),
]);
print(turtle.encode(graph));
} π‘ Recommended for Most Projects
At ~800KB compressed, this package provides the most commonly used semantic web vocabularies. It's the recommended starting point for most applications.
Why Use This Package?
Most Popular Vocabularies
Includes the vocabularies used by the vast majority of semantic web applications.
Balanced Size
At ~800KB, it's larger than core but much smaller than Schema.org. Good balance for most use cases.
Linked Data Ready
Perfect for building Solid apps, knowledge graphs, and linked data applications.
Zero Runtime Overhead
All constants are compile-time. No performance impact, just pure type safety.
Ready to Use Common Vocabularies?
Start using type-safe semantic web vocabulary constants in your Dart projects.