AppVocab class

Configuration class for application vocabulary generation.

This class defines the configuration for generating RDF vocabulary files from annotated Dart classes. It specifies the base URI for the application's vocabulary and the path component to append to generate the full vocabulary IRI.

The vocabulary IRI is constructed as: appBaseUri + vocabPath + '#' For example, with appBaseUri = 'https://my.app.de' and vocabPath = '/vocab', the vocabulary IRI would be https://my.app.de/vocab#.

This class is designed to be subclassable, allowing applications to create custom vocabulary configurations that extend or customize the base functionality.

Constructors

AppVocab({required String appBaseUri, String vocabPath = '/vocab', IriTerm defaultBaseClass = OwlThing.classIri, Map<String, IriTerm> wellKnownProperties = defaultWellKnownProperties, String? label, String? comment, List<(IriTerm, RdfObject)> metadata = const []})
Creates an AppVocab configuration.
const

Properties

appBaseUri String
The base URI for the application.
final
comment String?
final
defaultBaseClass → IriTerm
Default base class for generated classes when not explicitly specified via subClassOf. Defaults to owl:Thing.
final
hashCode int
The hash code for this object.
no setterinherited
label String?
final
metadata List<(IriTerm, RdfObject)>
Optional metadata for the generated ontology.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
vocabPath String
The path component to append to the base URI for vocabulary generation.
final
wellKnownProperties Map<String, IriTerm>
Well-known properties for auto-matching unannotated fields in define mode. Maps field fragments to standard property IRIs.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

defaultWellKnownProperties → const Map<String, IriTerm>
Default curated list of well-known properties.