Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _INFERENCE_RULE_PARSER_H_
00023 #define _INFERENCE_RULE_PARSER_H_
00024
00025 #include <QtCore/QString>
00026 #include <QtCore/QHash>
00027 #include <QtCore/QUrl>
00028
00029 #include "soprano_export.h"
00030
00031 namespace Soprano {
00032 namespace Inference {
00033
00034 class RuleSet;
00035 class Rule;
00036
00046 class SOPRANO_EXPORT RuleParser
00047 {
00048 public:
00049 RuleParser();
00050 ~RuleParser();
00051
00058 bool parseFile( const QString& path );
00059
00071 Rule parseRule( const QString& line );
00072
00076 RuleSet rules() const;
00077
00086 void addPrefix( const QString& qname, const QUrl& uri );
00087
00095 QHash<QString, QUrl> prefixes() const;
00096
00102 void clear();
00103
00104 private:
00105 class Private;
00106 Private* const d;
00107 };
00108 }
00109 }
00110
00111 #endif