This file is indexed.

/usr/include/soprano/inferenceruleset.h is in libsoprano-dev 2.9.4+dfsg1-0ubuntu3.

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
/*
 * This file is part of Soprano Project.
 *
 * Copyright (C) 2007 Sebastian Trueg <trueg@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 _INFERENCE_RULESET_H_
#define _INFERENCE_RULESET_H_

#include "soprano_export.h"

#include <QtCore/QSharedDataPointer>
#include <QtCore/QStringList>


namespace Soprano {
    namespace Inference {

        /**
         * %Soprano defines a number of rule sets.
         */
        enum StandardRuleSet {
            RDFS,  /**< RDFS closure rules. */
            NRL    /**< NRL (Nepomuk Representation Language closure rules. */
        };

        class Rule;

        /**
         * \class RuleSet inferenceruleset.h Soprano/Inference/RuleSet
         *
         * \brief A set of inference rules.
         *
         * RuleSet represents a set of inference rules. Each Rule
         * has a unique name.
         *
         * \author Sebastian Trueg <trueg@kde.org>
         */
        class SOPRANO_EXPORT RuleSet
        {
        public:
            /**
             * Create an empty RuleSet.
             */
            RuleSet();
        
            /**
             * Copy constructor.
             */
            RuleSet( const RuleSet& );

            /**
             * Destructor.
             */
            ~RuleSet();

            RuleSet& operator=( const RuleSet& );

            void clear();

            /**
             * Add a Rule to the set.
             *
             * \param name The name the new rule is supposed to be
             * stored under.
             * \param rule The new rule to store in the set.
             */
            void insert( const QString& name, const Rule& rule );

            /**
             * Number of rules in the set.
             * \return The number of rules.
             */
            int count() const;

            Rule at( int index ) const;
            Rule operator[]( int index ) const;

            Rule rule( const QString& name ) const;
            Rule operator[]( const QString& name ) const;

            QStringList ruleNames() const;

            QList<Rule> allRules() const;

            /**
             * Read a standard %Soprano rulset.
             *
             * \sa RuleParser
             */
            static RuleSet standardRuleSet( StandardRuleSet );

        private:
            class Private;
            QSharedDataPointer<Private> d;
        };
    }
}

#endif