RDFStore::Vocabulary::Generator - implementation of the Vocabulary Generator RDF
API
use RDFStore::Vocabulary::Generator;
my $generator = new RDFStore::Vocabulary::Generator();
# see vocabulary-generator.pl
$generator->createVocabulary($packageClass, $all, $namespace, $outputDirectory, $factoryStr);
Generate Perl package with constants for resources defined in an RDF (Schema).
- 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.
RDFStore::Vocabulary::RDF(3) RDFStore::Vocabulary::RDFS(3)
RDFStore::Vocabulary::DC(3) RDFStore::Vocabulary::DAML(3)
RDFStore::SchemaModel(3)
Alberto Reggiori <areggiori@webweaving.org>