• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ap_Dialog_RDFQuery.h

Go to the documentation of this file.
00001 /* AbiWord
00002  * Copyright (C) 2011 AbiSource, Inc.
00003  * Copyright (C) 2011 Ben Martin
00004  *
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00018  * 02110-1301 USA.
00019  */
00020 
00021 #ifndef AP_DIALOG_RDFQUERY_H
00022 #define AP_DIALOG_RDFQUERY_H
00023 
00024 #include <string>
00025 
00026 #include "ap_Dialog_Modeless.h"
00027 #include "fv_View.h"
00028 #include "pd_DocumentRDF.h"
00029 
00030 class XAP_Frame;
00031 
00032 class ABI_EXPORT AP_Dialog_RDFQuery : public AP_Dialog_Modeless
00033 {
00034   protected:
00035     virtual XAP_String_Id getWindowTitleStringId();
00036 
00037 public:
00038     AP_Dialog_RDFQuery(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id);
00039     virtual ~AP_Dialog_RDFQuery();
00040 
00045     void executeQuery( const std::string& sparql );
00046     void showAllRDF();
00047     std::string uriToPrefixed( const std::string& uri );
00048     PD_DocumentRDFHandle getRDF();
00049 
00053     virtual void clear();
00054     virtual void addStatement( const PD_RDFStatement& st );
00055     virtual void setupBindingsView( std::map< std::string, std::string >& b );
00056     virtual void addBinding( std::map< std::string, std::string >& b );
00057     virtual void setStatus( const std::string& msg );
00058     virtual void setQueryString( const std::string& sparql );
00059 
00060 
00061 protected:
00062     int m_count;
00063 };
00064 
00065 #endif

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1