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

pd_RDFQuery.h

Go to the documentation of this file.
00001 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */
00002 
00003 /* AbiWord
00004  * Copyright (c) 2011 Ben Martin
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00019  * 02110-1301 USA.
00020  */
00021 
00022 #ifndef PD_RDFQUERY_H
00023 #define PD_RDFQUERY_H
00024 
00025 #include <string>
00026 #include <list>
00027 #include <map>
00028 #include <memory>
00029 #include <set>
00030 #include "ut_types.h"
00031 #include "pt_Types.h"
00032 
00033 #include "pd_DocumentRDF.h"
00034 
00035 
00036 class   PD_RDFQuery;
00037 typedef std::shared_ptr<PD_RDFQuery> PD_RDFQueryHandle;
00038 
00039 typedef std::list< std::map< std::string, std::string > > PD_ResultBindings_t;
00043 class ABI_EXPORT PD_RDFQuery
00044 {
00045     PD_DocumentRDFHandle m_rdf;
00046     PD_RDFModelHandle    m_model;
00047   public:
00048     PD_RDFQuery( PD_DocumentRDFHandle rdf, PD_RDFModelHandle m = PD_RDFModelHandle() );
00049     ~PD_RDFQuery();
00050 
00051     PD_ResultBindings_t executeQuery( const std::string& sparql );
00052 };
00053 
00054 
00055 
00056 #endif

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1