Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > fc480f9d5aabed8eeaffe8ad3401a94c > files > 4587

openoffice.org-devel-doc-3.2.1-0.3mdv2010.2.i586.rpm

<html>
<head>
<title>Interface XNamedGraph</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../../idl.css">
</head>
<body>
<div id="adc-idlref">

<a name="_top_"> </a><table class="navimain" border="0" cellpadding="3">
<tr>
<td class="navimain"><a href="../module-ix.html" class="navimain">Overview</a></td>
<td class="navimain"><a href="module-ix.html" class="navimain">Module</a></td>
<td class="navimain"><a href="XNamedGraph-xref.html" class="navimain">Use</a></td>
<td class="navimainnone">Devguide</td>
<td class="navimain"><a href="../../../../index-files/index-1.html" class="navimain">Index</a></td>
</tr>
</table>
<table class="navisub" border="0" cellpadding="0">
<tr>
<td class="navisub"><a href="#MethodsSummary" class="navisub">Methods' Summary</a></td>
<td class="navisub">Attributes' Summary</td>
<td class="navisub"><a href="#MethodsDetails" class="navisub">Methods' Details</a></td>
<td class="navisub">Attributes' Details</td>
</tr>
</table>
<hr>
<table border="0" width="100%" cellpadding="5" cellspacing="3" class="title-table" style="margin-bottom:6pt;">
<tr>
<td><p class="namechain"><a href="../../../../module-ix.html" class="namechain">::</a> <a href="../../../module-ix.html" class="namechain">com</a> :: <a href="../../module-ix.html" class="namechain">sun</a> :: <a href="../module-ix.html" class="namechain">star</a> :: <a href="module-ix.html" class="namechain">rdf</a> :: </p>
</td>
</tr>
<tr>
<td class="title"><table class="title-table" width="99%">
<tr>
<td width="25%" class="title2">unpublished </td>
<td width="50%" class="title">interface XNamedGraph</td>
<td width="*"/></tr>
</table>
</td>
</tr>
<tr>
<td><dl>
<dt><b>Base Interfaces</b></dt>
<dd><pre style="font-family:monospace;"><strong>XNamedGraph</strong>
&#x2517 <a href="XURI.html">XURI</a>
   &#x2517 <a href="XResource.html">XResource</a>
      &#x2517 <a href="XNode.html">XNode</a>

</pre></dd>
<dd><a name/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="crosstitle">
<tr>
<td class="imsum_left"><a href="XURI.html">XURI</a></td>
<td class="imsum_right"><dl>
<dt>(referenced interface's summary:)</dt>
<dd>represents an URI node that may occur in a RDF graph.

 </dd>
</dl>
</td>
</tr>
</table>
</dd>
</dl>
</td>
</tr>
<tr>
<td><dl>
<dt><b>Usage Restrictions</b></dt>
<dd><i>not published</i></dd>
<dt><b>Description</b></dt>
<dd>represents an RDF named graph that is stored in an RDF Repository.

 </dd>
<dd><p>
 Note that this interface inherits from <a href="XResource.html">XResource</a>: the
 name of the graph is the string value of the RDF node.
 This is so that you can easily make RDF statements about named graphs.
 </p>

 <p>
 Note that instances may be destroyed via
 <a href="XRepository.html">XRepository</a>::<a href="XRepository.html#destroyGraph">destroyGraph</a>.
 If a graph is destroyed, subsequent calls to <a href="XNamedGraph.html#addStatement">addStatement</a>,
 <a href="XNamedGraph.html#removeStatements">removeStatements</a> will fail with an
 ::com::sun::star::<a href="../container/module-ix.html">container</a>::<a href="../container/NoSuchElementException.html">NoSuchElementException</a>.
 </p>

 </dd>
<dt><b>Since </b></dt>
<dd>OpenOffice 3.2</dd>
<dt><b>See also</b></dt>
<dd><a href="XRepository.html">XRepository</a></dd>
</dl>
</td>
</tr>
</table>
<hr>
<a name="MethodsSummary"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle">
<tr>
<td class="subtitle" colspan="2">Methods' Summary</td>
</tr>
<tr>
<td class="imsum_left"><a href="#getName">getName</a></td>
<td class="imsum_right">returns the name of the graph.

 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left"><a href="#clear">clear</a></td>
<td class="imsum_right">removes all statements from the graph.

 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left"><a href="#addStatement">addStatement</a></td>
<td class="imsum_right">adds a RDF statement to the graph.

 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left"><a href="#removeStatements">removeStatements</a></td>
<td class="imsum_right">removes matching RDF statements from the graph.

 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left"><a href="#getStatements">getStatements</a></td>
<td class="imsum_right">gets matching RDF statements from a graph.

 &nbsp;</td>
</tr>
</table>
<a name="MethodsDetails"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle">
<tr>
<td class="subtitle">Methods' Details</td>
</tr>
<tr>
<td class="imdetail"><a name="getName" class="membertitle">getName</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center">
<tr>
<td><table class="table-in-method" border="0">
<tr>
<td valign="top" colspan="3"><a href="XURI.html">XURI</a></td>
</tr>
<tr>
<td valign="top"><b>getName</b>();</td>
</tr>
</table>
<hr>
<dl>
<dt><b>Description</b></dt>
<dd>returns the name of the graph.

 </dd>
<dd><p>
 The name is unique within the repository.
 </p>

 </dd>
<dt><b>Returns</b></dt>
<dd>the name of the graph
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="clear" class="membertitle">clear</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center">
<tr>
<td><table class="table-in-method" border="0">
<tr>
<td valign="top" colspan="3">void</td>
</tr>
<tr>
<td valign="top"><b>clear</b>()</td>
</tr>
<tr>
<td valign="top" align="right">raises( </td>
<td valign="top" colspan="2">::com::sun::star::<a href="../container/module-ix.html">container</a>::<a href="../container/NoSuchElementException.html">NoSuchElementException</a>,<br>
<a href="RepositoryException.html">RepositoryException</a> );</td>
</tr>
</table>
<hr>
<dl>
<dt><b>Description</b></dt>
<dd>removes all statements from the graph.

 </dd>
<dt><b>Throws</b></dt>
<dd>com::sun::star::container::NoSuchElementException
 if this graph does not exist in the repository any more

 </dd>
<dt><b>Throws</b></dt>
<dd>RepositoryException
 if an error occurs when accessing the repository.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="addStatement" class="membertitle">addStatement</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center">
<tr>
<td><table class="table-in-method" border="0">
<tr>
<td valign="top" colspan="3">void</td>
</tr>
<tr>
<td valign="top"><b>addStatement</b>(</td>
<td valign="top">[in] <a href="XResource.html">XResource</a></td>
<td valign="bottom">&nbsp;Subject,</td>
</tr>
<tr>
<td/><td valign="top">[in] <a href="XURI.html">XURI</a></td>
<td valign="bottom">&nbsp;Predicate,</td>
</tr>
<tr>
<td/><td valign="top">[in] <a href="XNode.html">XNode</a></td>
<td valign="bottom">&nbsp;Object )</td>
</tr>
<tr>
<td valign="top" align="right">raises( </td>
<td valign="top" colspan="2">::com::sun::star::<a href="../lang/module-ix.html">lang</a>::<a href="../lang/IllegalArgumentException.html">IllegalArgumentException</a>,<br>
::com::sun::star::<a href="../container/module-ix.html">container</a>::<a href="../container/NoSuchElementException.html">NoSuchElementException</a>,<br>
<a href="RepositoryException.html">RepositoryException</a> );</td>
</tr>
</table>
<hr>
<dl>
<dt><b>Description</b></dt>
<dd>adds a RDF statement to the graph.

 </dd>
<dd><p>
 Note that the ODF elements that can have metadata attached all
 implement the interface <a href="XMetadatable.html">XMetadatable</a>, which inherits
 from <a href="XResource.html">XResource</a>, meaning that you can simply pass them
 in as arguments here, and it will magically work.
 </p>

 </dd>
<dt><b>Parameter Subject</b></dt>
<dd>the subject of the RDF triple.

 </dd>
<dt><b>Parameter Predicate</b></dt>
<dd>the predicate of the RDF triple.

 </dd>
<dt><b>Parameter Object</b></dt>
<dd>the object of the RDF triple.

 </dd>
<dt><b>Throws</b></dt>
<dd>com::sun::star::lang::IllegalArgumentException
 if any parameter is <b>NULL</b>

 </dd>
<dt><b>Throws</b></dt>
<dd>com::sun::star::container::NoSuchElementException
 if this graph does not exist in the repository any more

 </dd>
<dt><b>Throws</b></dt>
<dd>RepositoryException
 if an error occurs when accessing the repository.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="removeStatements" class="membertitle">removeStatements</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center">
<tr>
<td><table class="table-in-method" border="0">
<tr>
<td valign="top" colspan="3">void</td>
</tr>
<tr>
<td valign="top"><b>removeStatements</b>(</td>
<td valign="top">[in] <a href="XResource.html">XResource</a></td>
<td valign="bottom">&nbsp;Subject,</td>
</tr>
<tr>
<td/><td valign="top">[in] <a href="XURI.html">XURI</a></td>
<td valign="bottom">&nbsp;Predicate,</td>
</tr>
<tr>
<td/><td valign="top">[in] <a href="XNode.html">XNode</a></td>
<td valign="bottom">&nbsp;Object )</td>
</tr>
<tr>
<td valign="top" align="right">raises( </td>
<td valign="top" colspan="2">::com::sun::star::<a href="../container/module-ix.html">container</a>::<a href="../container/NoSuchElementException.html">NoSuchElementException</a>,<br>
<a href="RepositoryException.html">RepositoryException</a> );</td>
</tr>
</table>
<hr>
<dl>
<dt><b>Description</b></dt>
<dd>removes matching RDF statements from the graph.

 </dd>
<dd><p>
 Note that the ODF elements that can have metadata attached all
 implement the interface <a href="XMetadatable.html">XMetadatable</a>, which inherits
 from <a href="XResource.html">XResource</a>, meaning that you can simply pass them
 in as arguments here, and it will magically work.
 </p>

 <p>
 Any parameter may be <b>NULL</b>, which acts as a wildcard.
 For example, to remove all statements about myURI:
 <code>removeStatement(myURI, null, null)</code>
 </p>

 </dd>
<dt><b>Parameter Subject</b></dt>
<dd>the subject of the RDF triple.

 </dd>
<dt><b>Parameter Predicate</b></dt>
<dd>the predicate of the RDF triple.

 </dd>
<dt><b>Parameter Object</b></dt>
<dd>the object of the RDF triple.

 </dd>
<dt><b>Throws</b></dt>
<dd>com::sun::star::container::NoSuchElementException
 if this graph does not exist in the repository any more

 </dd>
<dt><b>Throws</b></dt>
<dd>RepositoryException
 if an error occurs when accessing the repository.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="getStatements" class="membertitle">getStatements</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center">
<tr>
<td><table class="table-in-method" border="0">
<tr>
<td valign="top" colspan="3">::com::sun::star::<a href="../container/module-ix.html">container</a>::<a href="../container/XEnumeration.html">XEnumeration</a></td>
</tr>
<tr>
<td valign="top"><b>getStatements</b>(</td>
<td valign="top">[in] <a href="XResource.html">XResource</a></td>
<td valign="bottom">&nbsp;Subject,</td>
</tr>
<tr>
<td/><td valign="top">[in] <a href="XURI.html">XURI</a></td>
<td valign="bottom">&nbsp;Predicate,</td>
</tr>
<tr>
<td/><td valign="top">[in] <a href="XNode.html">XNode</a></td>
<td valign="bottom">&nbsp;Object )</td>
</tr>
<tr>
<td valign="top" align="right">raises( </td>
<td valign="top" colspan="2">::com::sun::star::<a href="../container/module-ix.html">container</a>::<a href="../container/NoSuchElementException.html">NoSuchElementException</a>,<br>
<a href="RepositoryException.html">RepositoryException</a> );</td>
</tr>
</table>
<hr>
<dl>
<dt><b>Description</b></dt>
<dd>gets matching RDF statements from a graph.

 </dd>
<dd><p>
 Note that the ODF elements that can have metadata attached all
 implement the interface <a href="XMetadatable.html">XMetadatable</a>, which inherits
 from <a href="XResource.html">XResource</a>, meaning that you can simply pass them
 in as arguments here, and it will magically work.
 </p>

 <p>
 Any parameter may be <b>NULL</b>, which acts as a wildcard.
 For example, to get all statements about myURI:
 <code>getStatements(myURI, null, null)</code>
 </p>

 </dd>
<dt><b>Parameter Subject</b></dt>
<dd>the subject of the RDF triple.

 </dd>
<dt><b>Parameter Predicate</b></dt>
<dd>the predicate of the RDF triple.

 </dd>
<dt><b>Parameter Object</b></dt>
<dd>the object of the RDF triple.

 </dd>
<dt><b>Returns</b></dt>
<dd>an iterator over all RDF statements in the graph that match
 the parameters, represented as an
 enumeration of <a href="Statement.html">Statement</a>

 </dd>
<dt><b>Throws</b></dt>
<dd>com::sun::star::container::NoSuchElementException
 if this graph does not exist in the repository any more

 </dd>
<dt><b>Throws</b></dt>
<dd>RepositoryException
 if an error occurs when accessing the repository.

 </dd>
<dt><b>See also</b></dt>
<dd><a href="Statement.html">Statement</a></dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
</table>
<a href="#_top_">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright &copy; 2011, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.</p>

</div> <!-- id="adc-idlref" -->
</body>

</html>