/usr/include/KF5/Syndication/syndication/rdf/dublincore.h is in libkf5syndication-dev 15.12.3-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 | /*
* This file is part of the syndication library
*
* Copyright (C) 2006 Frank Osterfeld <osterfeld@kde.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
*/
#ifndef SYNDICATION_RDF_DUBLINCORE_H
#define SYNDICATION_RDF_DUBLINCORE_H
#include <syndication/rdf/resourcewrapper.h>
#include <ctime>
class QString;
class QStringList;
namespace Syndication
{
namespace RDF
{
class Resource;
//@cond PRIVATE
typedef QSharedPointer<Resource> ResourcePtr;
//@endcond
/**
* A resource wrapper providing convenient
* access to Dublin Core metadata.
*
* For more information on Dublin Core, see
* http://dublincore.org/
*/
class SYNDICATION_EXPORT DublinCore : public ResourceWrapper
{
public:
/**
* creates a dublin core convenience wrapper for a resource
*
* @param resource the resource to wrap
*/
explicit DublinCore(ResourcePtr resource);
/**
* virtual destructor
*/
virtual ~DublinCore();
/**
* A name given to the resource.
* Typically, a Title will be a name by which the resource is
* formally known.
*/
QString title() const;
/**
* "An entity primarily responsible for making the content of
* the resource.
* Examples of a Creator include a person, an organisation,
* or a service.
* Typically, the name of a Creator should be used to
* indicate the entity."
*/
QString creator() const;
/**
* like creator(), but returns all dc:creator properties,
* not only one.
*/
QStringList creators() const;
/**
* "A date associated with an event in the life cycle of the resource.
* Typically, Date will be associated with the creation or
* availability of the resource. Recommended best practice
* for encoding the date value is defined in a profile of
* ISO 8601 [W3CDTF] and follows the YYYY-MM-DD format."
*/
time_t date() const;
/**
* "An account of the content of the resource.
* Description may include but is not limited to: an abstract,
* table of contents, reference to a graphical representation
* of content or a free-text account of the content."
*/
QString description() const;
/**
* "The topic of the content of the resource.
* Typically, a Subject will be expressed as keywords,
* key phrases or classification codes that describe a topic
* of the resource.
* Recommended best practice is to select a value from a
* controlled vocabulary or formal classification scheme."
*/
QString subject() const;
/**
* like subject(), but returns all dc:subject properties,
* not only one.
*/
QStringList subjects() const;
/**
* "An entity responsible for making contributions to the content of the
* resource.
* Examples of a Contributor include a person, an organisation, or a
* service. Typically, the name of a Contributor should be used to
* indicate the entity."
* */
QString contributor() const;
/**
* like contributor(), but returns all dc:contributor properties,
* not only one.
*/
QStringList contributors() const;
/**
* "Information about rights held in and over the resource.
* Typically, a Rights element will contain a rights
* management statement for the resource, or reference
* a service providing such information. Rights information
* often encompasses Intellectual Property Rights (IPR),
* Copyright, and various Property Rights.
* If the Rights element is absent, no assumptions can be made
* about the status of these and other rights with respect to
* the resource."
*/
QString rights() const;
/**
* "A language of the intellectual content of the resource.
* Recommended best practice for the values of the Language
* element is defined by RFC 1766 [RFC1766] which includes
* a two-letter Language Code (taken from the ISO 639
* standard [ISO639]), followed optionally, by a two-letter
* Country Code (taken from the ISO 3166 standard [ISO3166]).
* For example, 'en' for English, 'fr' for French, or
* 'en-uk' for English used in the United Kingdom."
*/
QString language() const;
/**
* "The extent or scope of the content of the resource.
* Coverage will typically include spatial location (a place name
* or geographic coordinates), temporal period (a period label,
* date, or date range) or jurisdiction (such as a named
* administrative entity).
* Recommended best practice is to select a value from a
* controlled vocabulary (for example, the Thesaurus of Geographic
* Names [TGN]) and that, where appropriate, named places or time
* periods be used in preference to numeric identifiers such as
* sets of coordinates or date ranges."
*/
QString coverage() const;
/**
* "The physical or digital manifestation of the resource.
* Typically, Format may include the media-type or dimensions of
* the resource. Format may be used to determine the software,
* hardware or other equipment needed to display or operate the
* resource. Examples of dimensions include size and duration.
* Recommended best practice is to select a value from a
* controlled vocabulary (for example, the list of Internet Media
* Types [MIME] defining computer media formats).
*/
QString format() const;
/**
* "An unambiguous reference to the resource within a given context.
* Recommended best practice is to identify the resource by means
* if a string or number conforming to a formal identification
* system.
* Example formal identification systems include the Uniform
* Resource Identifier (URI) (including the Uniform Resource
* Locator (URL)), the Digital Object Identifier (DOI) and the
* International Standard Book Number (ISBN).
*/
QString identifier() const;
/**
* "An entity responsible for making the resource available.
* Examples of a Publisher include a person, an organisation, or a
* service. Typically, the name of a Publisher should be used to
* indicate the entity."
*/
QString publisher() const;
/**
* "A reference to a related resource.
* Recommended best practice is to reference the resource by means
* of a string or number conforming to a formal identification
* system."
*/
QString relation() const;
/**
* A Reference to a resource from which the present resource
* is derived.
* The present resource may be derived from the Source resource
* in whole or in part. Recommended best practice is to reference
* the resource by means of a string or number conforming to a
* formal identification system.
*/
QString source() const;
/**
* "The nature or genre of the content of the resource.
* Type includes terms describing general categories, functions,
* genres, or aggregation levels for content. Recommended best
* practice is to select a value from a controlled vocabulary
* (for example, the working draft list of Dublin Core Types
* [DCT1]). To describe the physical or digital manifestation
* of the resource, use the FORMAT element."
*/
QString type() const;
/**
* returns a debug string describing the available DC metadata
* for debugging purposes
*
* @return debug string
*/
QString debugInfo() const;
};
} // namespace RDF
} // namespace Syndication
#endif // SYNDICATION_RDF_DUBLINCORE_H
|