/home/andrew/Documents/cellml-api-doxygen/interfaces/RDF_APISPEC.idl Source File

RDF_APISPEC.idl
Go to the documentation of this file.
1 #ifndef INCLUDED_RDF_APISPEC
2 #define INCLUDED_RDF_APISPEC
3 
4 #include "xpcom.idl"
5 #include "CellML_APISPEC.idl"
6 #include "DOM_APISPEC.idl"
7 
12 module rdf_api
13 {
14  interface TripleSet;
15  interface Triple;
16  interface Resource;
17  interface URIReference;
18  interface BlankNode;
19  interface PlainLiteral;
20  interface TypedLiteral;
21  interface Container;
22 
24  {
25  };
26 
30  interface DataSource
32  {
40  URIReference getURIReference(in wstring aURI);
41 
49  BlankNode createBlankNode();
50 
58  PlainLiteral getPlainLiteral(in wstring aForm, in wstring aLanguage);
59 
67  TypedLiteral getTypedLiteral(in wstring aForm, in wstring datatypeURI);
68 
73  TripleSet getAllTriples();
74  };
75 #pragma terminal-interface
76 
81  interface Node
83  {
88  TripleSet getTriplesInto();
89 
96  TripleSet getTriplesIntoByPredicate(in Resource aPredicate);
97  };
98 
102  interface Resource
103  : Node
104  {
111  TripleSet getTriplesOutOfByPredicate(in Resource aPredicate);
112 
120  Triple getTripleOutOfByPredicate(in Resource aPredicate)
121  raises(RDFProcessingError);
122 
130  boolean hasTripleOutOf(in Resource aPredicate, in Node aObject);
131 
140  void createTripleOutOf(in Resource aPredicate, in Node aObject);
141 
148  TripleSet getTriplesOutOfByObject(in Node aObject);
149 
154  TripleSet getTriplesWherePredicate();
155 
160  TripleSet getTriplesWhereSubject();
161 
165  readonly attribute Container correspondingContainer;
166 
179  Container findOrMakeContainer(in Resource aPredicate,
180  in Resource aContainerType);
181  };
182 
186  interface NodeIterator
188  {
192  Node getNextNode();
193  };
194 
198  interface Container
200  {
204  readonly attribute Resource correspondingResource;
205 
211 
215  NodeIterator iterateChildren();
216 
221  void appendChild(in Node aChild);
222 
228  void removeChild(in Node aChild, in boolean aDoRenumbering);
229 
233  void renumberContainer();
234 
247  Container mergeWith(in Container aContainer);
248  };
249 
253  interface BlankNode
254  : Resource
255  {
256  };
257 #pragma terminal-interface
258 
263  interface URIReference
264  : Resource
265  {
269  readonly attribute wstring URI;
270  };
271 #pragma terminal-interface
272 
277  interface Literal
278  : Node
279  {
283  readonly attribute wstring lexicalForm;
284  };
285 
290  interface PlainLiteral
291  : Literal
292  {
296  readonly attribute wstring language;
297  };
298 #pragma terminal-interface;
299 
304  interface TypedLiteral
305  : Literal
306  {
310  readonly attribute wstring datatypeURI;
311  };
312 #pragma terminal-interface;
313 
318  interface Triple
320  {
324  readonly attribute Resource subject;
325 
329  readonly attribute Resource predicate;
330 
334  readonly attribute Node _object;
335 
345  void unassert();
346  };
347 #pragma terminal-interface
348 
351  {
356  Triple getNextTriple();
357  };
358 #pragma terminal-interface
359 
364  interface TripleSet
366  {
370  TripleEnumerator enumerateTriples();
371  };
372 #pragma terminal-interface
373 
374  interface Bootstrap
376  {
380  DataSource createDataSource();
381 
389  void parseIntoDataSource(in DataSource ds, in dom::Element root, in wstring baseURI)
390  raises(RDFProcessingError);
391 
399  dom::Document getDOMForDataSource(in DataSource ds, in wstring baseURI);
400 
408  wstring serialiseDataSource(in DataSource ds, in wstring baseURI);
409  };
410 #pragma terminal-interface
411 
416  {
424  attribute DataSource source;
425  };
426 #pragma terminal-interface
427 };
428 
429 #endif // INCLUDED_RDF_APISPEC
Back to Top