23 #include "dublincorevocab.h"
26 #include <QtCore/QCoreApplication>
27 #include <QtCore/QString>
29 namespace Syndication {
32 class DublinCoreVocab::DublinCoreVocabPrivate
53 static DublinCoreVocab *sSelf;
54 static void cleanupDublinCoreVocab()
60 DublinCoreVocab *DublinCoreVocab::DublinCoreVocabPrivate::sSelf = 0;
62 DublinCoreVocab::DublinCoreVocab() : d(new DublinCoreVocabPrivate)
68 d->contributor = PropertyPtr(
new Property(ns +
QLatin1String(
"contributor")) );
69 d->coverage = PropertyPtr(
new Property(ns +
QLatin1String(
"coverage")) );
70 d->creator = PropertyPtr(
new Property(ns +
QLatin1String(
"creator")) );
71 d->date = PropertyPtr(
new Property(ns +
QLatin1String(
"date")) );
72 d->description = PropertyPtr(
new Property(ns +
QLatin1String(
"description")) );
73 d->format = PropertyPtr(
new Property(ns +
QLatin1String(
"format")) );
74 d->identifier = PropertyPtr(
new Property(ns +
QLatin1String(
"identifier")) );
75 d->language = PropertyPtr(
new Property(ns +
QLatin1String(
"language")) );
76 d->publisher = PropertyPtr(
new Property(ns +
QLatin1String(
"publisher")) );
77 d->relation = PropertyPtr(
new Property(ns +
QLatin1String(
"relation")) );
78 d->rights = PropertyPtr(
new Property(ns +
QLatin1String(
"rights")) );
79 d->source = PropertyPtr(
new Property(ns +
QLatin1String(
"source")) );
80 d->subject = PropertyPtr(
new Property(ns +
QLatin1String(
"subject")) );
81 d->title = PropertyPtr(
new Property(ns +
QLatin1String(
"title")) );
82 d->type = PropertyPtr(
new Property(ns +
QLatin1String(
"type")) );
93 static DublinCoreVocabPrivate p;
96 qAddPostRoutine(DublinCoreVocabPrivate::cleanupDublinCoreVocab);
103 return d->namespaceURI;
108 return d->contributor;
128 return d->description;
138 return d->identifier;
PropertyPtr format() const
dc:format property.
PropertyPtr language() const
dc:language property.
PropertyPtr contributor() const
dc:contributor property.
PropertyPtr type() const
dc:type property.
PropertyPtr description() const
dc:description property.
PropertyPtr source() const
dc:source property.
PropertyPtr date() const
dc:date property.
PropertyPtr subject() const
dc:subject property.
PropertyPtr publisher() const
dc:publisher property.
PropertyPtr identifier() const
dc:identifier property.
~DublinCoreVocab()
destructor
Singleton holding RDF class and property constants of the Dublin Core vocabulary. ...
PropertyPtr rights() const
dc:rights property.
static DublinCoreVocab * self()
returns the singleton instance
PropertyPtr title() const
dc:title property.
PropertyPtr creator() const
dc:creator property.
PropertyPtr relation() const
dc:relation property.
PropertyPtr coverage() const
dc:coverage property.
const QString & namespaceURI() const
the namespace of the Dublin Core vocabulary, http://purl.org/dc/elements/1.1/