LibreOffice LibreOffice 25.8 SDK API Reference

XRepository.idl
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20
21
22module com { module sun { module star { module rdf {
23
50 interface XRepository
51{
52
58 XBlankNode createBlankNode();
59
60
110 XNamedGraph importGraph([in] /*FileFormat*/ short Format,
111 [in] com::sun::star::io::XInputStream InStream,
112 [in] XURI GraphName, [in] XURI BaseURI)
113 raises( com::sun::star::lang::IllegalArgumentException,
114 com::sun::star::datatransfer::UnsupportedFlavorException,
115 com::sun::star::container::ElementExistException,
116 ParseException,
117 RepositoryException,
118 com::sun::star::io::IOException );
119
159 void exportGraph([in] /*FileFormat*/ short Format,
160 [in] com::sun::star::io::XOutputStream OutStream,
161 [in] XURI GraphName, [in] XURI BaseURI)
162 raises( com::sun::star::lang::IllegalArgumentException,
163 com::sun::star::datatransfer::UnsupportedFlavorException,
164 com::sun::star::container::NoSuchElementException,
165 RepositoryException,
166 com::sun::star::io::IOException );
167
176 sequence<XURI> getGraphNames()
177 raises( RepositoryException );
178
193 XNamedGraph getGraph([in] XURI GraphName)
194 raises( com::sun::star::lang::IllegalArgumentException,
195 RepositoryException );
196
218 XNamedGraph createGraph([in] XURI GraphName)
219 raises( com::sun::star::lang::IllegalArgumentException,
220 com::sun::star::container::ElementExistException,
221 RepositoryException );
222
243 void destroyGraph([in] XURI GraphName)
244 raises( com::sun::star::lang::IllegalArgumentException,
245 com::sun::star::container::NoSuchElementException,
246 RepositoryException );
247
276 com::sun::star::container::XEnumeration/*<Statement>*/ getStatements(
277 [in] XResource Subject,
278 [in] XURI Predicate,
279 [in] XNode Object)
280 raises( RepositoryException );
281
282
311 XQuerySelectResult querySelect([in] string Query)
312 raises( QueryException,
313 RepositoryException );
314
337 com::sun::star::container::XEnumeration/*<Statement>*/ queryConstruct(
338 [in] string Query)
339 raises( QueryException,
340 RepositoryException );
341
361 boolean queryAsk([in] string Query)
362 raises( QueryException,
363 RepositoryException );
364
365};
366
367
368}; }; }; };
369
370/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
com::sun::star::container::ElementExistException
is thrown by container methods, if an element is added which is already a child of the container.
Definition: ElementExistException.idl:35
com::sun::star::container::NoSuchElementException
is thrown by child access methods of collections, if the addressed child does not exist.
Definition: NoSuchElementException.idl:31
com::sun::star::datatransfer::UnsupportedFlavorException
Exception will be thrown if there is a request for data in a DataFlavor that is not supported by a da...
Definition: UnsupportedFlavorException.idl:30
com::sun::star::io::IOException
is thrown when an input or output error has occurred.
Definition: IOException.idl:27
com::sun::star::lang::IllegalArgumentException
This exception is thrown to indicate that a method has passed an illegal or inappropriate argument.
Definition: IllegalArgumentException.idl:27
com::sun::star::rdf::ParseException
represents an error condition that is signaled on parsing an RDF file.
Definition: ParseException.idl:30
com::sun::star::rdf::QueryException
represents an error condition that is signaled on evaluating a query against an RDF Repository.
Definition: QueryException.idl:31
com::sun::star::rdf::RepositoryException
represents an error condition that is signaled on accessing an RDF Repository.
Definition: RepositoryException.idl:31
com::sun::star::io::XInputStream
This is the basic interface to read data from a stream.
Definition: XInputStream.idl:30
com::sun::star::io::XOutputStream
This is the basic interface to write data to a stream.
Definition: XOutputStream.idl:30
com::sun::star::rdf::XBlankNode
represents a blank node that may occur in a RDF graph.
Definition: XBlankNode.idl:36
com::sun::star::rdf::XNamedGraph
represents an RDF named graph that is stored in an RDF Repository.
Definition: XNamedGraph.idl:45
com::sun::star::rdf::XNode
represents a node that may occur in a RDF graph.
Definition: XNode.idl:53
com::sun::star::rdf::XQuerySelectResult
represents the result of a SPARQL "SELECT" query.
Definition: XQuerySelectResult.idl:45
com::sun::star::rdf::XRepository
provides access to a set of named RDF graphs.
Definition: XRepository.idl:51
com::sun::star::rdf::XRepository::importGraph
XNamedGraph importGraph([in] short Format, [in] com::sun::star::io::XInputStream InStream, [in] XURI GraphName, [in] XURI BaseURI)
imports a named graph into the repository.
com::sun::star::rdf::XRepository::getGraphNames
sequence< XURI > getGraphNames()
gets the names of all the graphs in the repository.
com::sun::star::rdf::XRepository::exportGraph
void exportGraph([in] short Format, [in] com::sun::star::io::XOutputStream OutStream, [in] XURI GraphName, [in] XURI BaseURI)
exports a named graph from the repository.
com::sun::star::rdf::XRepository::createBlankNode
XBlankNode createBlankNode()
creates a fresh unique blank node.
com::sun::star::rdf::XResource
represents a resource node that may occur in a RDF graph.
Definition: XResource.idl:37
com::sun::star::rdf::XURI
represents a URI node that may occur in a RDF graph.
Definition: XURI.idl:49
com
Definition: Ambiguous.idl:20