Methods' Details |
createBlankNode
- Description
- creates a fresh unique blank node.
- Returns
- a newly generated blank node which is unique in this repository
|
|
importGraph
- Description
- imports a named graph into the repository.
Implementations must support RDF/XML format.
Support for other RDF formats is optional.
If the format is not supported by the implementation, an
::com::sun::star::datatransfer::UnsupportedFlavorException is raised.
If the format requires use of a BaseURI, but none is given, an
::com::sun::star::lang::IllegalArgumentException
is raised.
- Parameter Format
- the format of the input file
- Parameter InStream
- the input stream, containing an RDF file in the specified format
- Parameter GraphName
- the name of the graph that is imported
- Parameter BaseURI
- a base URI to resolve relative URI references
- Returns
- the imported graph
- Throws
- com::sun::star::lang::IllegalArgumentException
if the given stream or the GraphName is NULL,
or BaseURI is NULL and the format requires use of a base URI
- Throws
- com::sun::star::datatransfer::UnsupportedFlavorException
if the format requested is unknown or not supported
- Throws
- com::sun::star::container::ElementExistException
if a graph with the given GraphName already exists in the
repository
- Throws
- ParseException
if the input does not conform to the specified file format.
- Throws
- RepositoryException
if an error occurs when accessing the repository.
- Throws
- com::sun::star::io::IOException
if an I/O error occurs.
- See also
- FileFormat
|
|
exportGraph
- Description
- exports a named graph from the repository.
Implementations must support RDF/XML format.
Support for other RDF formats is optional.
If the format is not supported by the implementation, an
::com::sun::star::datatransfer::UnsupportedFlavorException is raised.
- Parameter Format
- the format of the output file
- Parameter OutStream
- the target output stream
- Parameter GraphName
- the name of the graph that is to be exported
- Parameter BaseURI
- a base URI to resolve relative URI references
- Throws
- com::sun::star::lang::IllegalArgumentException
if the given stream or the GraphName is NULL,
or BaseURI is NULL and the format requires use of a base URI
- Throws
- com::sun::star::datatransfer::UnsupportedFlavorException
if the format requested is unknown or not supported
- Throws
- com::sun::star::container::NoSuchElementException
if a graph with the given GraphName does not exist
- Throws
- RepositoryException
if an error occurs when accessing the repository.
- Throws
- com::sun::star::io::IOException
if an I/O error occurs.
- See also
- FileFormat
|
|
getGraphNames
- Description
- gets the names of all the graphs in the repository.
- Returns
- a list containing the names of the graphs in the repository
- Throws
- RepositoryException
if an error occurs when accessing the repository.
|
|
getGraph
- Description
- gets a graph by its name.
- Parameter GraphName
- the name of the graph that is to be returned
- Returns
- the graph with the given name if it exists, else NULL
- Throws
- com::sun::star::lang::IllegalArgumentException
if the given GraphName is invalid
- Throws
- RepositoryException
if an error occurs when accessing the repository.
|
|
createGraph
- Description
- creates a graph with the given name.
The name must be unique within the repository.
- Parameter GraphName
- the name of the graph that is to be created
- Returns
- the graph with the given name
- Throws
- com::sun::star::lang::IllegalArgumentException
if the given GraphName is invalid
- Throws
- com::sun::star::container::ElementExistException
if a graph with the given GraphName already exists
- Throws
- RepositoryException
if an error occurs when accessing the repository.
|
|
destroyGraph
- Description
- destroys the graph with the given name, and removes it from the
repository.
This invalidates any instances of XNamedGraph
for the argument.
- Parameter GraphName
- the name of the graph that is to be destroyed
- Throws
- com::sun::star::lang::IllegalArgumentException
if the given GraphName is invalid
- Throws
- com::sun::star::container::NoSuchElementException
if a graph with the given GraphName does not exist
- Throws
- RepositoryException
if an error occurs when accessing the repository.
|
|
getStatements
- Description
- gets matching RDF statements from the repository.
Any parameter may be NULL, which acts as a wildcard.
For example, to get all statements about myURI:
getStatements(myURI, null, null)
- Parameter Subject
- the subject of the RDF triple.
- Parameter Predicate
- the predicate of the RDF triple.
- Parameter Object
- the object of the RDF triple.
- Returns
- an iterator over all RDF statements in the repository that match
the parameters, represented as an
enumeration of Statement
- Throws
- RepositoryException
if an error occurs when accessing the repository.
- See also
- Statement, XNamedGraph::getStatements
|
|
querySelect
- Description
- executes a SPARQL "SELECT" query.
This method runs a SPARQL query that returns a list of variable
bindings, i.e., a query beginning with "SELECT".
The result is basically a (rectangular) table with labeled columns,
where individual cells may be NULL.
- Parameter Query
- the SPARQL query
string
- Returns
- an enumeration, containing
- a list of query variable names (column labels)
- the query results (rows),
each being a list of bindings for the above variables
- Throws
- QueryException
if the query is malformed, or evaluation fails
- Throws
- RepositoryException
if an error occurs when accessing the repository.
- See also
- XQuerySelectResult
|
|
queryConstruct
- Description
- executes a SPARQL "CONSTRUCT" query.
This method runs a SPARQL query that constructs a result graph,
i.e., a query beginning with "CONSTRUCT".
- Parameter Query
- the SPARQL query
string
- Returns
- an iterator over the query result graph, represented as an
enumeration of Statement
- Throws
- QueryException
if the query is malformed, or evaluation fails
- Throws
- RepositoryException
if an error occurs when accessing the repository.
- See also
- Statement
|
|
queryAsk
- Description
- executes a SPARQL "ASK" query.
This method runs a SPARQL query that computes a boolean,
i.e., a query beginning with "ASK".
- Parameter Query
- the SPARQL query
string
- Returns
- the boolean query result
- Throws
- QueryException
if the query is malformed, or evaluation fails
- Throws
- RepositoryException
if an error occurs when accessing the repository.
|
|
Copyright © 2013, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.