Archives for: May 2007, 27
2007-05-27
WotD: "Negative Triples"
Word of the day: "Negative Triples"
From: XUL Planet | Querying RDF Datasources
var target = datasource.GetTarget(karen, name, true);You might have noticed that the GetTarget method has a third argument which is set to true above. This is used to indicate whether you want to retrieve a negative triple instead of a normal one. This is a special Mozilla-specific feature that allows an RDF statement to be false instead of true. Remember that when a piece of information is not supplied in the datasource, it means that the datasource does not know that information, not that the information is blank. For instance, if we hadn't specified Karen's name in the RDF/XML, it means that Karen's name is not known to the datasource. She may still have a name however.
A negative triple indicates that a particular statement is not true. For instance, we could add a statement that Karen's name is not 'Tracy'. Note that there is no way to actually specify this in the RDF/XML, only by directly manipulating the datasource. However, negative triples should generally be avoided. They don't really offer a lot of value and usually this kind of information is better specified in other ways.
It would be interesting to know how much these negative triples are/were actually used in Mozilla/Firefox and what for. Once there is a way to take triples away you could do incremental updates of RDF datasources if needed.
A related conversion, from #swig logs (2007-06-28 @ 14:32:36):
< TipTop> how to say that a statement is invalid, for example, without reification?
< timbl> have to either do reification properly, or you use N3 formulas.
< timbl> { Sky clor blue } a log:Falsehood.
< timbl> is the latter.
| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
| << < | Current | > >> | ||||
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 | |||
Search
Gallery
www.flickr.com
|
Categories
Archives
- February 2011 (1)
- September 2010 (1)
- October 2009 (1)
- March 2009 (2)
- February 2009 (4)
- January 2009 (2)
- December 2008 (2)
- November 2008 (5)
- October 2008 (10)
- August 2008 (1)
- July 2008 (4)
- June 2008 (1)
- More...
- more...

