xref: /aoo41x/main/offapi/com/sun/star/rdf/XRepository.idl (revision d1766043)
1*d1766043SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*d1766043SAndrew Rist * distributed with this work for additional information
6*d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9*d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10*d1766043SAndrew Rist *
11*d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*d1766043SAndrew Rist *
13*d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*d1766043SAndrew Rist * software distributed under the License is distributed on an
15*d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17*d1766043SAndrew Rist * specific language governing permissions and limitations
18*d1766043SAndrew Rist * under the License.
19*d1766043SAndrew Rist *
20*d1766043SAndrew Rist *************************************************************/
21*d1766043SAndrew Rist
22*d1766043SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir#ifndef __com_sun_star_rdf_XRepository_idl__
25cdf0e10cSrcweir#define __com_sun_star_rdf_XRepository_idl__
26cdf0e10cSrcweir
27cdf0e10cSrcweir#ifndef __com_sun_star_lang_IllegalArgumentException_idl__
28cdf0e10cSrcweir#include <com/sun/star/lang/IllegalArgumentException.idl>
29cdf0e10cSrcweir#endif
30cdf0e10cSrcweir
31cdf0e10cSrcweir#ifndef __com_sun_star_container_ElementExistException_idl__
32cdf0e10cSrcweir#include <com/sun/star/container/ElementExistException.idl>
33cdf0e10cSrcweir#endif
34cdf0e10cSrcweir
35cdf0e10cSrcweir#ifndef __com_sun_star_container_NoSuchElementException_idl__
36cdf0e10cSrcweir#include <com/sun/star/container/NoSuchElementException.idl>
37cdf0e10cSrcweir#endif
38cdf0e10cSrcweir
39cdf0e10cSrcweir#ifndef __com_sun_star_container_XEnumeration_idl__
40cdf0e10cSrcweir#include <com/sun/star/container/XEnumeration.idl>
41cdf0e10cSrcweir#endif
42cdf0e10cSrcweir
43cdf0e10cSrcweir#ifndef __com_sun_star_io_IOException_idl__
44cdf0e10cSrcweir#include <com/sun/star/io/IOException.idl>
45cdf0e10cSrcweir#endif
46cdf0e10cSrcweir
47cdf0e10cSrcweir#ifndef __com_sun_star_io_XInputStream_idl__
48cdf0e10cSrcweir#include <com/sun/star/io/XInputStream.idl>
49cdf0e10cSrcweir#endif
50cdf0e10cSrcweir
51cdf0e10cSrcweir#ifndef __com_sun_star_io_XOutputStream_idl__
52cdf0e10cSrcweir#include <com/sun/star/io/XOutputStream.idl>
53cdf0e10cSrcweir#endif
54cdf0e10cSrcweir
55cdf0e10cSrcweir#ifndef __com_sun_star_datatransfer_UnsupportedFlavorException_idl__
56cdf0e10cSrcweir#include <com/sun/star/datatransfer/UnsupportedFlavorException.idl>
57cdf0e10cSrcweir#endif
58cdf0e10cSrcweir
59cdf0e10cSrcweir#ifndef __com_sun_star_rdf_FileFormat_idl__
60cdf0e10cSrcweir#include <com/sun/star/rdf/FileFormat.idl>
61cdf0e10cSrcweir#endif
62cdf0e10cSrcweir
63cdf0e10cSrcweir#ifndef __com_sun_star_rdf_ParseException_idl__
64cdf0e10cSrcweir#include <com/sun/star/rdf/ParseException.idl>
65cdf0e10cSrcweir#endif
66cdf0e10cSrcweir
67cdf0e10cSrcweir#ifndef __com_sun_star_rdf_QueryException_idl__
68cdf0e10cSrcweir#include <com/sun/star/rdf/QueryException.idl>
69cdf0e10cSrcweir#endif
70cdf0e10cSrcweir
71cdf0e10cSrcweir#ifndef __com_sun_star_rdf_RepositoryException_idl__
72cdf0e10cSrcweir#include <com/sun/star/rdf/RepositoryException.idl>
73cdf0e10cSrcweir#endif
74cdf0e10cSrcweir
75cdf0e10cSrcweir#ifndef __com_sun_star_rdf_XBlankNode_idl__
76cdf0e10cSrcweir#include <com/sun/star/rdf/XBlankNode.idl>
77cdf0e10cSrcweir#endif
78cdf0e10cSrcweir
79cdf0e10cSrcweir#ifndef __com_sun_star_rdf_XURI_idl__
80cdf0e10cSrcweir#include <com/sun/star/rdf/XURI.idl>
81cdf0e10cSrcweir#endif
82cdf0e10cSrcweir
83cdf0e10cSrcweir#ifndef __com_sun_star_rdf_Statement_idl__
84cdf0e10cSrcweir#include <com/sun/star/rdf/Statement.idl>
85cdf0e10cSrcweir#endif
86cdf0e10cSrcweir
87cdf0e10cSrcweir#ifndef __com_sun_star_rdf_XQuerySelectResult_idl__
88cdf0e10cSrcweir#include <com/sun/star/rdf/XQuerySelectResult.idl>
89cdf0e10cSrcweir#endif
90cdf0e10cSrcweir
91cdf0e10cSrcweir#ifndef __com_sun_star_rdf_XNamedGraph_idl__
92cdf0e10cSrcweir#include <com/sun/star/rdf/XNamedGraph.idl>
93cdf0e10cSrcweir#endif
94cdf0e10cSrcweir
95cdf0e10cSrcweir
96cdf0e10cSrcweir//=============================================================================
97cdf0e10cSrcweir
98cdf0e10cSrcweirmodule com {   module sun {   module star {   module rdf {
99cdf0e10cSrcweir
100cdf0e10cSrcweir//=============================================================================
101cdf0e10cSrcweir/** provides access to a set of named RDF graphs.
102cdf0e10cSrcweir
103cdf0e10cSrcweir    <p>
104cdf0e10cSrcweir    A repository for storing information according to the data model of the
105cdf0e10cSrcweir    <a href="http://www.w3.org/RDF/">Resource Description Framework</a>.
106cdf0e10cSrcweir    This interface may be used e.g. for repositories that correspond to a
107cdf0e10cSrcweir    loaded ODF document, or for repositories that are backed by some kind of
108cdf0e10cSrcweir    database.
109cdf0e10cSrcweir    </p>
110cdf0e10cSrcweir    <p>
111cdf0e10cSrcweir    The RDF triples are stored as a set of named RDF graphs.
112cdf0e10cSrcweir    Importing and exporting files in the
113cdf0e10cSrcweir    <a href="http://www.w3.org/TR/rdf-syntax-grammar/">RDF/XML</a>
114cdf0e10cSrcweir    format is supported.
115cdf0e10cSrcweir    Support for other file formats is optional.
116cdf0e10cSrcweir    Support for querying the repository with the
117cdf0e10cSrcweir    <a href="http://www.w3.org/TR/rdf-sparql-query/">SPARQL</a>
118cdf0e10cSrcweir    query language is provided.
119cdf0e10cSrcweir    </p>
120cdf0e10cSrcweir
121cdf0e10cSrcweir
122cdf0e10cSrcweir    @since OOo 3.2
123cdf0e10cSrcweir
124cdf0e10cSrcweir    @see XRepositorySupplier
125cdf0e10cSrcweir    @see XDocumentRepository
126cdf0e10cSrcweir */
127cdf0e10cSrcweirinterface XRepository
128cdf0e10cSrcweir{
129cdf0e10cSrcweir
130cdf0e10cSrcweir    //-------------------------------------------------------------------------
131cdf0e10cSrcweir    /** creates a fresh unique blank node.
132cdf0e10cSrcweir
133cdf0e10cSrcweir        @returns
134cdf0e10cSrcweir            a newly generated blank node which is unique in this repository
135cdf0e10cSrcweir     */
136cdf0e10cSrcweir    XBlankNode createBlankNode();
137cdf0e10cSrcweir
138cdf0e10cSrcweir
139cdf0e10cSrcweir    //-------------------------------------------------------------------------
140cdf0e10cSrcweir    /** imports a named graph into the repository.
141cdf0e10cSrcweir
142cdf0e10cSrcweir        <p>
143cdf0e10cSrcweir        Implementations must support RDF/XML format.
144cdf0e10cSrcweir        Support for other RDF formats is optional.
145cdf0e10cSrcweir        If the format is not supported by the implementation, an
146cdf0e10cSrcweir        <type scope="com::sun::star::datatransfer">UnsupportedFlavorException
147cdf0e10cSrcweir        </type> is raised.
148cdf0e10cSrcweir        If the format requires use of a BaseURI, but none is given, an
149cdf0e10cSrcweir        <type scope="com::sun::star::lang">IllegalArgumentException</type>
150cdf0e10cSrcweir        is raised.
151cdf0e10cSrcweir        </p>
152cdf0e10cSrcweir
153cdf0e10cSrcweir        @param Format
154cdf0e10cSrcweir            the format of the input file
155cdf0e10cSrcweir
156cdf0e10cSrcweir        @param InStream
157cdf0e10cSrcweir            the input stream, containing an RDF file in the specified format
158cdf0e10cSrcweir
159cdf0e10cSrcweir        @param GraphName
160cdf0e10cSrcweir            the name of the graph that is imported
161cdf0e10cSrcweir
162cdf0e10cSrcweir        @param BaseURI
163cdf0e10cSrcweir            a base URI to resolve relative URI references
164cdf0e10cSrcweir
165cdf0e10cSrcweir        @returns
166cdf0e10cSrcweir            the imported graph
167cdf0e10cSrcweir
168cdf0e10cSrcweir        @throws com::sun::star::lang::IllegalArgumentException
169cdf0e10cSrcweir            if the given stream or the GraphName is <NULL/>,
170cdf0e10cSrcweir            or BaseURI is <NULL/> and the format requires use of a base URI
171cdf0e10cSrcweir
172cdf0e10cSrcweir        @throws com::sun::star::datatransfer::UnsupportedFlavorException
173cdf0e10cSrcweir            if the format requested is unknown or not supported
174cdf0e10cSrcweir
175cdf0e10cSrcweir        @throws com::sun::star::container::ElementExistException
176cdf0e10cSrcweir            if a graph with the given GraphName already exists in the
177cdf0e10cSrcweir            repository
178cdf0e10cSrcweir
179cdf0e10cSrcweir        @throws ParseException
180cdf0e10cSrcweir            if the input does not conform to the specified file format.
181cdf0e10cSrcweir
182cdf0e10cSrcweir        @throws RepositoryException
183cdf0e10cSrcweir            if an error occurs when accessing the repository.
184cdf0e10cSrcweir
185cdf0e10cSrcweir        @throws com::sun::star::io::IOException
186cdf0e10cSrcweir            if an I/O error occurs.
187cdf0e10cSrcweir
188cdf0e10cSrcweir        @see FileFormat
189cdf0e10cSrcweir     */
190cdf0e10cSrcweir    XNamedGraph importGraph([in] /*FileFormat*/ short Format,
191cdf0e10cSrcweir                [in] com::sun::star::io::XInputStream InStream,
192cdf0e10cSrcweir                [in] XURI GraphName, [in] XURI BaseURI)
193cdf0e10cSrcweir        raises( com::sun::star::lang::IllegalArgumentException,
194cdf0e10cSrcweir                com::sun::star::datatransfer::UnsupportedFlavorException,
195cdf0e10cSrcweir                com::sun::star::container::ElementExistException,
196cdf0e10cSrcweir                ParseException,
197cdf0e10cSrcweir                RepositoryException,
198cdf0e10cSrcweir                com::sun::star::io::IOException );
199cdf0e10cSrcweir
200cdf0e10cSrcweir    //-------------------------------------------------------------------------
201cdf0e10cSrcweir    /** exports a named graph from the repository.
202cdf0e10cSrcweir
203cdf0e10cSrcweir        <p>
204cdf0e10cSrcweir        Implementations must support RDF/XML format.
205cdf0e10cSrcweir        Support for other RDF formats is optional.
206cdf0e10cSrcweir        If the format is not supported by the implementation, an
207cdf0e10cSrcweir        <type scope="com::sun::star::datatransfer">UnsupportedFlavorException
208cdf0e10cSrcweir        </type> is raised.
209cdf0e10cSrcweir        </p>
210cdf0e10cSrcweir
211cdf0e10cSrcweir        @param Format
212cdf0e10cSrcweir            the format of the output file
213cdf0e10cSrcweir
214cdf0e10cSrcweir        @param OutStream
215cdf0e10cSrcweir            the target output stream
216cdf0e10cSrcweir
217cdf0e10cSrcweir        @param GraphName
218cdf0e10cSrcweir            the name of the graph that is to be exported
219cdf0e10cSrcweir
220cdf0e10cSrcweir        @param BaseURI
221cdf0e10cSrcweir            a base URI to resolve relative URI references
222cdf0e10cSrcweir
223cdf0e10cSrcweir        @throws com::sun::star::lang::IllegalArgumentException
224cdf0e10cSrcweir            if the given stream or the GraphName is <NULL/>,
225cdf0e10cSrcweir            or BaseURI is <NULL/> and the format requires use of a base URI
226cdf0e10cSrcweir
227cdf0e10cSrcweir        @throws com::sun::star::datatransfer::UnsupportedFlavorException
228cdf0e10cSrcweir            if the format requested is unknown or not supported
229cdf0e10cSrcweir
230cdf0e10cSrcweir        @throws com::sun::star::container::NoSuchElementException
231cdf0e10cSrcweir            if a graph with the given GraphName does not exist
232cdf0e10cSrcweir
233cdf0e10cSrcweir        @throws RepositoryException
234cdf0e10cSrcweir            if an error occurs when accessing the repository.
235cdf0e10cSrcweir
236cdf0e10cSrcweir        @throws com::sun::star::io::IOException
237cdf0e10cSrcweir            if an I/O error occurs.
238cdf0e10cSrcweir
239cdf0e10cSrcweir        @see FileFormat
240cdf0e10cSrcweir     */
241cdf0e10cSrcweir    void exportGraph([in] /*FileFormat*/ short Format,
242cdf0e10cSrcweir                [in] com::sun::star::io::XOutputStream OutStream,
243cdf0e10cSrcweir                [in] XURI GraphName, [in] XURI BaseURI)
244cdf0e10cSrcweir        raises( com::sun::star::lang::IllegalArgumentException,
245cdf0e10cSrcweir                com::sun::star::datatransfer::UnsupportedFlavorException,
246cdf0e10cSrcweir                com::sun::star::container::NoSuchElementException,
247cdf0e10cSrcweir                RepositoryException,
248cdf0e10cSrcweir                com::sun::star::io::IOException );
249cdf0e10cSrcweir
250cdf0e10cSrcweir    //-------------------------------------------------------------------------
251cdf0e10cSrcweir    /** gets the names of all the graphs in the repository.
252cdf0e10cSrcweir
253cdf0e10cSrcweir        @returns
254cdf0e10cSrcweir            a list containing the names of the graphs in the repository
255cdf0e10cSrcweir
256cdf0e10cSrcweir        @throws RepositoryException
257cdf0e10cSrcweir            if an error occurs when accessing the repository.
258cdf0e10cSrcweir     */
259cdf0e10cSrcweir    sequence<XURI> getGraphNames()
260cdf0e10cSrcweir        raises( RepositoryException );
261cdf0e10cSrcweir
262cdf0e10cSrcweir    //-------------------------------------------------------------------------
263cdf0e10cSrcweir    /** gets a graph by its name.
264cdf0e10cSrcweir
265cdf0e10cSrcweir        @param GraphName
266cdf0e10cSrcweir            the name of the graph that is to be returned
267cdf0e10cSrcweir
268cdf0e10cSrcweir        @returns
269cdf0e10cSrcweir            the graph with the given name if it exists, else <NULL/>
270cdf0e10cSrcweir
271cdf0e10cSrcweir        @throws com::sun::star::lang::IllegalArgumentException
272cdf0e10cSrcweir            if the given GraphName is invalid
273cdf0e10cSrcweir
274cdf0e10cSrcweir        @throws RepositoryException
275cdf0e10cSrcweir            if an error occurs when accessing the repository.
276cdf0e10cSrcweir     */
277cdf0e10cSrcweir    XNamedGraph getGraph([in] XURI GraphName)
278cdf0e10cSrcweir        raises( com::sun::star::lang::IllegalArgumentException,
279cdf0e10cSrcweir                RepositoryException );
280cdf0e10cSrcweir
281cdf0e10cSrcweir    //-------------------------------------------------------------------------
282cdf0e10cSrcweir    /** creates a graph with the given name.
283cdf0e10cSrcweir
284cdf0e10cSrcweir        <p>
285cdf0e10cSrcweir        The name must be unique within the repository.
286cdf0e10cSrcweir        </p>
287cdf0e10cSrcweir
288cdf0e10cSrcweir        @param GraphName
289cdf0e10cSrcweir            the name of the graph that is to be created
290cdf0e10cSrcweir
291cdf0e10cSrcweir        @returns
292cdf0e10cSrcweir            the graph with the given name
293cdf0e10cSrcweir
294cdf0e10cSrcweir        @throws com::sun::star::lang::IllegalArgumentException
295cdf0e10cSrcweir            if the given GraphName is invalid
296cdf0e10cSrcweir
297cdf0e10cSrcweir        @throws com::sun::star::container::ElementExistException
298cdf0e10cSrcweir            if a graph with the given GraphName already exists
299cdf0e10cSrcweir
300cdf0e10cSrcweir        @throws RepositoryException
301cdf0e10cSrcweir            if an error occurs when accessing the repository.
302cdf0e10cSrcweir     */
303cdf0e10cSrcweir    XNamedGraph createGraph([in] XURI GraphName)
304cdf0e10cSrcweir        raises( com::sun::star::lang::IllegalArgumentException,
305cdf0e10cSrcweir                com::sun::star::container::ElementExistException,
306cdf0e10cSrcweir                RepositoryException );
307cdf0e10cSrcweir
308cdf0e10cSrcweir    //-------------------------------------------------------------------------
309cdf0e10cSrcweir    /** destroys the graph with the given name, and removes it from the
310cdf0e10cSrcweir        repository.
311cdf0e10cSrcweir
312cdf0e10cSrcweir        <p>
313cdf0e10cSrcweir        This invalidates any instances of <type>XNamedGraph</type>
314cdf0e10cSrcweir        for the argument.
315cdf0e10cSrcweir        </p>
316cdf0e10cSrcweir
317cdf0e10cSrcweir        @param GraphName
318cdf0e10cSrcweir            the name of the graph that is to be destroyed
319cdf0e10cSrcweir
320cdf0e10cSrcweir        @throws com::sun::star::lang::IllegalArgumentException
321cdf0e10cSrcweir            if the given GraphName is invalid
322cdf0e10cSrcweir
323cdf0e10cSrcweir        @throws com::sun::star::container::NoSuchElementException
324cdf0e10cSrcweir            if a graph with the given GraphName does not exist
325cdf0e10cSrcweir
326cdf0e10cSrcweir        @throws RepositoryException
327cdf0e10cSrcweir            if an error occurs when accessing the repository.
328cdf0e10cSrcweir     */
329cdf0e10cSrcweir    void destroyGraph([in] XURI GraphName)
330cdf0e10cSrcweir        raises( com::sun::star::lang::IllegalArgumentException,
331cdf0e10cSrcweir                com::sun::star::container::NoSuchElementException,
332cdf0e10cSrcweir                RepositoryException );
333cdf0e10cSrcweir
334cdf0e10cSrcweir    //-------------------------------------------------------------------------
335cdf0e10cSrcweir    /** gets matching RDF statements from the repository.
336cdf0e10cSrcweir
337cdf0e10cSrcweir        <p>
338cdf0e10cSrcweir        Any parameter may be <NULL/>, which acts as a wildcard.
339cdf0e10cSrcweir        For example, to get all statements about myURI:
340cdf0e10cSrcweir        <code>getStatements(myURI, null, null)</code>
341cdf0e10cSrcweir        </p>
342cdf0e10cSrcweir
343cdf0e10cSrcweir        @param Subject
344cdf0e10cSrcweir            the subject of the RDF triple.
345cdf0e10cSrcweir
346cdf0e10cSrcweir        @param Predicate
347cdf0e10cSrcweir            the predicate of the RDF triple.
348cdf0e10cSrcweir
349cdf0e10cSrcweir        @param Object
350cdf0e10cSrcweir            the object of the RDF triple.
351cdf0e10cSrcweir
352cdf0e10cSrcweir        @returns
353cdf0e10cSrcweir            an iterator over all RDF statements in the repository that match
354cdf0e10cSrcweir            the parameters, represented as an
355cdf0e10cSrcweir            enumeration of <type>Statement</type>
356cdf0e10cSrcweir
357cdf0e10cSrcweir        @throws RepositoryException
358cdf0e10cSrcweir            if an error occurs when accessing the repository.
359cdf0e10cSrcweir
360cdf0e10cSrcweir        @see Statement
361cdf0e10cSrcweir        @see XNamedGraph::getStatements
362cdf0e10cSrcweir     */
363cdf0e10cSrcweir    com::sun::star::container::XEnumeration/*<Statement>*/ getStatements(
364cdf0e10cSrcweir            [in] XResource Subject,
365cdf0e10cSrcweir            [in] XURI Predicate,
366cdf0e10cSrcweir            [in] XNode Object)
367cdf0e10cSrcweir        raises( RepositoryException );
368cdf0e10cSrcweir
369cdf0e10cSrcweir
370cdf0e10cSrcweir    //-------------------------------------------------------------------------
371cdf0e10cSrcweir    /** executes a SPARQL "SELECT" query.
372cdf0e10cSrcweir
373cdf0e10cSrcweir        <p>
374cdf0e10cSrcweir        This method runs a SPARQL query that returns a list of variable
375cdf0e10cSrcweir        bindings, i.e., a query beginning with "SELECT".
376cdf0e10cSrcweir        The result is basically a (rectangular) table with labeled columns,
377cdf0e10cSrcweir        where individual cells may be <NULL/>.
378cdf0e10cSrcweir        </p>
379cdf0e10cSrcweir
380cdf0e10cSrcweir        @param Query
381cdf0e10cSrcweir            the SPARQL query <atom>string</atom>
382cdf0e10cSrcweir
383cdf0e10cSrcweir        @returns
384cdf0e10cSrcweir            an enumeration, containing
385cdf0e10cSrcweir            <ol>
386cdf0e10cSrcweir            <li>a list of query variable names (column labels)</li>
387cdf0e10cSrcweir            <li>the query results (rows),
388cdf0e10cSrcweir                each being a list of bindings for the above variables</li>
389cdf0e10cSrcweir            </ol>
390cdf0e10cSrcweir
391cdf0e10cSrcweir        @throws QueryException
392cdf0e10cSrcweir            if the query is malformed, or evaluation fails
393cdf0e10cSrcweir
394cdf0e10cSrcweir        @throws RepositoryException
395cdf0e10cSrcweir            if an error occurs when accessing the repository.
396cdf0e10cSrcweir
397cdf0e10cSrcweir        @see XQuerySelectResult
398cdf0e10cSrcweir     */
399cdf0e10cSrcweir    XQuerySelectResult querySelect([in] string Query)
400cdf0e10cSrcweir        raises( QueryException,
401cdf0e10cSrcweir                RepositoryException );
402cdf0e10cSrcweir
403cdf0e10cSrcweir    //-------------------------------------------------------------------------
404cdf0e10cSrcweir    /** executes a SPARQL "CONSTRUCT" query.
405cdf0e10cSrcweir
406cdf0e10cSrcweir        <p>
407cdf0e10cSrcweir        This method runs a SPARQL query that constructs a result graph,
408cdf0e10cSrcweir        i.e., a query beginning with "CONSTRUCT".
409cdf0e10cSrcweir        </p>
410cdf0e10cSrcweir
411cdf0e10cSrcweir        @param Query
412cdf0e10cSrcweir            the SPARQL query <atom>string</atom>
413cdf0e10cSrcweir
414cdf0e10cSrcweir        @returns
415cdf0e10cSrcweir            an iterator over the query result graph, represented as an
416cdf0e10cSrcweir            enumeration of <type>Statement</type>
417cdf0e10cSrcweir
418cdf0e10cSrcweir        @throws QueryException
419cdf0e10cSrcweir            if the query is malformed, or evaluation fails
420cdf0e10cSrcweir
421cdf0e10cSrcweir        @throws RepositoryException
422cdf0e10cSrcweir            if an error occurs when accessing the repository.
423cdf0e10cSrcweir
424cdf0e10cSrcweir        @see Statement
425cdf0e10cSrcweir     */
426cdf0e10cSrcweir    com::sun::star::container::XEnumeration/*<Statement>*/ queryConstruct(
427cdf0e10cSrcweir            [in] string Query)
428cdf0e10cSrcweir        raises( QueryException,
429cdf0e10cSrcweir                RepositoryException );
430cdf0e10cSrcweir
431cdf0e10cSrcweir    //-------------------------------------------------------------------------
432cdf0e10cSrcweir    /** executes a SPARQL "ASK" query.
433cdf0e10cSrcweir
434cdf0e10cSrcweir        <p>
435cdf0e10cSrcweir        This method runs a SPARQL query that computes a boolean,
436cdf0e10cSrcweir        i.e., a query beginning with "ASK".
437cdf0e10cSrcweir        </p>
438cdf0e10cSrcweir
439cdf0e10cSrcweir        @param Query
440cdf0e10cSrcweir            the SPARQL query <atom>string</atom>
441cdf0e10cSrcweir
442cdf0e10cSrcweir        @returns
443cdf0e10cSrcweir            the boolean query result
444cdf0e10cSrcweir
445cdf0e10cSrcweir        @throws QueryException
446cdf0e10cSrcweir            if the query is malformed, or evaluation fails
447cdf0e10cSrcweir
448cdf0e10cSrcweir        @throws RepositoryException
449cdf0e10cSrcweir            if an error occurs when accessing the repository.
450cdf0e10cSrcweir     */
451cdf0e10cSrcweir    boolean queryAsk([in] string Query)
452cdf0e10cSrcweir        raises( QueryException,
453cdf0e10cSrcweir                RepositoryException );
454cdf0e10cSrcweir
455cdf0e10cSrcweir};
456cdf0e10cSrcweir
457cdf0e10cSrcweir//=============================================================================
458cdf0e10cSrcweir
459cdf0e10cSrcweir}; }; }; };
460cdf0e10cSrcweir
461cdf0e10cSrcweir#endif
462