APIs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. Mozilla - http://www.mozilla.org/rdf/back-end-architecture.html
  2. Resource - uniquely identified by a URI (not true M&S)
  3. Interface nsIRDFResource - http://lxr.mozilla.org/seamonkey/source/rdf/base/idl/nsIRDFResource.idl
  4. Literal - uniquely maps to a string (not true M&S)
  5. Interface nsIRDFLiteral - http://lxr.mozilla.org/seamonkey/source/rdf/base/idl/nsIRDFLiteral.idl
  6. Interface nsIRDFNode - Resource or Literal
  7. http://lxr.mozilla.org/seamonkey/source/rdf/base/idl/nsIRDFNode.idl
  8. method - equalsNode
  9. 3 implementations for wstring, long long and long values.
  10. Statement - consists of:
  11. subject (Resource), predicate (Resource) and object (Resource / Literal)
  12. [Property not defined]
  13. [Reification - not used ]
  14. Data Source - sets of Statements, querying and triple operations
  15. Interface nsIRDFDataSource - http://lxr.mozilla.org/seamonkey/source/rdf/base/idl/nsIRDFDataSource.idl
  16. Querying:
  17. Node GetSource(Resource Source, Node target)
  18. Enumerator GetSources(Resource Source, Node target)
  19. Node GetTarget(Resource Source, Resource property)
  20. Enumerator GetTargets(Resource Source, Resource property)
  21. Entering / removing triples
  22. void Assert(Resource source, Resource property, Node target)
  23. void Unassert(Resource source, Resource property, Node target)
  24. bool hasAssertion(Resource source, Resource property, Node target)
  25. Modification
  26. void change(Resource source, Resource property, Node oldtarget, Node newtarget)
  27. void move(Resource oldsource, Resource newsource, Resource property, Node target)
  28. (observing)
  29. Cursors
  30. Enumerator ArcLabelsIn(Node node)
  31. Enumerator ArcLabelsOut(Resource source)
  32. Enumerator GetAllResources()
  33. Interface nsIRDFService - manages named datasources
  34. http://lxr.mozilla.org/seamonkey/source/rdf/base/idl/nsIRDFService.idl
  35. Interface nsIRDFCompositeDataSource - combines datasources, acts as one
  36. http://lxr.mozilla.org/seamonkey/source/rdf/base/idl/nsIRDFCompositeDataSource.idl
  37. Interface nsIRDFObserver, nsIRDFContainer - user side for access
  38. Interface SimpleEnumerator
  39. http://lxr.mozilla.org/seamonkey/source/xpcom/ds/nsIEnumerator.idl
  40. bool hasMoreElements()
  41. void* getNext();