Syndication

rdfvocab.h
1/*
2 This file is part of the syndication library
3 SPDX-FileCopyrightText: 2006 Frank Osterfeld <osterfeld@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#ifndef SYNDICATION_RDF_RDFVOCAB_H
9#define SYNDICATION_RDF_RDFVOCAB_H
10
11#include <QSharedPointer>
12
13#include "../syndication_export.h"
14
15#include <memory>
16
17class QString;
18
19namespace Syndication
20{
21namespace RDF
22{
23class Property;
24typedef QSharedPointer<Property> PropertyPtr;
25class Resource;
26typedef QSharedPointer<Resource> ResourcePtr;
27
28/**
29 * singleton holding RDF vocabulary, expressed as RDF.
30 */
31class RDFVocab
32{
33public:
34 /**
35 * returns the singleton instance
36 */
37 static RDFVocab *self();
38
39 /**
40 * destructor
41 */
43
44 /**
45 * the RDF namespace, which is
46 * http://www.w3.org/1999/02/22-rdf-syntax-ns#
47 */
49
50 /**
51 * the sequence type
52 */
53 ResourcePtr seq();
54
55 /**
56 * the rdf:type property (A rdf:type B means A is instance of B)
57 */
58 PropertyPtr type();
59
60 /**
61 * the rdf:li property, used for list items in RDF containers (like
62 * rdf:seq)
63 */
64 PropertyPtr li();
65
66private:
67 RDFVocab();
68 Q_DISABLE_COPY(RDFVocab)
69 class RDFVocabPrivate;
70 std::unique_ptr<RDFVocabPrivate> const d;
71};
72
73} // namespace RDF
74} // namespace Syndication
75
76#endif // SYNDICATION_RDF_RDFVOCAB_H
a property is node type that represents properties of things, like "name" is a property of a person,...
Definition property.h:32
PropertyPtr li()
the rdf:li property, used for list items in RDF containers (like rdf:seq)
Definition rdfvocab.cpp:70
PropertyPtr type()
the rdf:type property (A rdf:type B means A is instance of B)
Definition rdfvocab.cpp:65
static RDFVocab * self()
returns the singleton instance
Definition rdfvocab.cpp:36
QString namespaceURI()
the RDF namespace, which is http://www.w3.org/1999/02/22-rdf-syntax-ns#
Definition rdfvocab.cpp:75
ResourcePtr seq()
the sequence type
Definition rdfvocab.cpp:60
Resources are the entities in the RDF graph.
Definition resource.h:37
Syndication's parser for the RDF-based RSS 0.9 and RSS 1.0 formats.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:48:38 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.