NAME

RDFStore::Vocabulary::Generator - implementation of the Vocabulary Generator RDF API

SYNOPSIS

use RDFStore::Vocabulary::Generator;
my $generator = new RDFStore::Vocabulary::Generator();
# see vocabulary-generator.pl
$generator->createVocabulary($packageClass, $all, $namespace, $outputDirectory, $factoryStr);

DESCRIPTION

Generate Perl package with constants for resources defined in an RDF (Schema).

METHODS

new()
This is the constructor for RDFStore::Vocabulary::Generator.
createVocabulary(PACKAGECLASS, SCHEMA, NAMESPACE, OUTPUTDIRECTORY, NODE_FACTORY )
Generates a Perl 5 package (module) named PACKAGECLASS using SCHEMA in OUTPUTDIRECTORY using NODE_FACTORY.
Properties and resources are prefixed with NAMESPACE.

SEE ALSO

RDFStore::Vocabulary::RDF(3) RDFStore::Vocabulary::RDFS(3) RDFStore::Vocabulary::DC(3) RDFStore::Vocabulary::DAML(3) RDFStore::SchemaModel(3)

AUTHOR

Alberto Reggiori <areggiori@webweaving.org>