Confirmed users, Bureaucrats and Sysops emeriti
2,976
edits
(porting over literals from my old wiki. This includes major edits that have happened in my head since.) |
(→rdfIDataSource: porting over old wiki content, edits of mine reducing the overall method count.) |
||
| Line 130: | Line 130: | ||
*/ | */ | ||
void visitAllTriples(in rdfITripleVisitor aVisitor); | void visitAllTriples(in rdfITripleVisitor aVisitor); | ||
}; | |||
Methods not yet in the tree follow here. Note that rdfIDataSource contains only query methods. We may factor out modifications to rdfIDataTarget. Datasources are *not* named: untrusted script can implement a datasource, and we can't trust the name it gives. | |||
interface rdfIDataSource : nsISupports | |||
{ | |||
/** | |||
* Check if a triple exists. | |||
*/ | |||
boolean hasTriple(in rdfIResource aSubject, | |||
in rdfIResource aPredicate, | |||
in rdfIResource aObject, | |||
in bool aTruthValue); | |||
/** | |||
* Get all the objects from a particular subject->predicate arc. | |||
* The order is indeterminate and may change from one invocation to the | |||
* next. | |||
*/ | |||
void getObjects(in rdfIResource aSubject, | |||
in rdfIResource aPredicate, | |||
in rdfITripleVisitor aVisitor); | |||
/** | |||
* Get all the subjects from a particular predicate->object arc. | |||
* The order is indeterminate and may change from one invocation to the | |||
* next. | |||
*/ | |||
void getSubjects(in rdfIResource aPredicate, | |||
in rdfIResource aObject, | |||
in rdfITripleVisitor aVisitor); | |||
}; | }; | ||