KItinerary

activitypubextractor.h
1/*
2 SPDX-FileCopyrightText: 2023 Volker Krause <vkrause@kde.org>
3 SPDX-License-Identifier: LGPL-2.0-or-later
4*/
5
6#ifndef KITINERARY_ACTIVITYPUBEXTRACTOR_H
7#define KITINERARY_ACTIVITYPUBEXTRACTOR_H
8
9#include <KItinerary/AbstractExtractor>
10#include <KItinerary/ExtractorFilter>
11
12namespace KItinerary {
13
14/** ActivityPub extractor.
15 * @see https://www.w3.org/TR/activitypub
16 * @see https://www.w3.org/ns/activitystreams
17 * @see https://www.w3.org/TR/activitystreams-core
18 * @see https://www.w3.org/TR/activitystreams-vocabulary
19 * @see https://www.w3.org/TR/json-ld
20 * @see https://www.w3.org/TR/json-ld-api
21 */
23{
24public:
25 explicit ActivityPubExtractor();
27
28 QString name() const override;
29 bool canHandle(const KItinerary::ExtractorDocumentNode & node) const override;
30 ExtractorResult extract(const ExtractorDocumentNode &node, const ExtractorEngine *engine) const override;
31};
32
33}
34
35#endif // KITINERARY_ACTIVITYPUBEXTRACTOR_H
Abstract base class for data extractors.
ExtractorResult extract(const ExtractorDocumentNode &node, const ExtractorEngine *engine) const override
Extract data from node.
bool canHandle(const KItinerary::ExtractorDocumentNode &node) const override
Fast check whether this extractor is applicable for node.
QString name() const override
Identifier for this extractor.
A node in the extracted document object tree.
Semantic data extraction engine.
Generic extraction result.
Classes for reservation/travel data models, data extraction and data augmentation.
Definition berelement.h:17
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:49 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.