2015-12-11

In praise of facets

Follow-up of the previous post, and more on the ways to escape the tyranny of entities in search results. In the quick exchange with Aldo Gangemi in the comments of this post, facets were suggested. I won't argue further with Aldo about facets at BabelNet being types or topics, because he will win at the end, and such a technical argument would lead us astray, far from the main point I wouyld like to make today. You might be uneasy on what facets and particularly faceted search mean, but you have certainly used them many times when searching e-commerce sites, to filter hundreds of laptop models by price, brand, screen size, memory size etc. Libraries, enterprise portals, and many more use faceted search, example below is the search interface of Europeana for "impressionism", the results being filtered by two facets, media type "image" and providing country "Netherlands".

Faceted search is a very intuitive way to search items in a data base. Using faceted search, the user creates at will its own algorithm of filtering, selection and possibly ranking. If you compare with the usual general search engine results, two major advantages appear. The search is multidimensional, and the algorithm is transparent to the user. The system does not apply fancy, smart but opaque algorithms, based on guesses of what the user is looking for. It provides an interface where the user's natural intelligence can be put into action. In short, faceted search provides a good collaborative environment where artificial and human intelligence work together, the former at the service of the latter.

Given the above, one can wonder why general search engines such as Google do not propose faceted search facilities over their results, instead of an unidimensional list of ranked results. A technical answer coming to mind is that such engines do not search items in a collection of objects of which semantic descriptions are stored in a data base, but resources indexed by keywords. That used to be true, but the argument does not seem to hold anymore in the current state of affairs. The Knowledge Graph, however it's implemented, is a data base where things have declared semantic types and properties which could be used for faceted search. It would be a good way to see types and properties defined by schema.org vocabulary put explicitly into action as facets (Creative Work, Person, Place, Event, Business, Intangible ...).

I cannot imagine that Google and al. have never thought about this. There are certainly technical hurdles, but I can't imagine they could not be solved. So I would be curious to hear what they have to say, given that the added value to the search experience would be tremendous. Above all, it would give back to the user the power to define her own filtering on results, and reinstate the habit to do so, instead of the reductionnist Q&A dialogue which in the long run leads to pernicious intellectual laziness, unique thought, and jumping to conclusions without further checking. Our world is more and more complex, and offering simplified and unidimensional answers (presented as facts) to any question does not help to cope with complexity. Current events show us too many examples of oversimplifications and where they lead to.

I think of any of my queries to a search engine as a beam of light sent through the night of my ignorance, where possible answers are hiding as so many complex multi-faceted diamonds. I don't want any one of them, however brilliant and wonderful, make me blind to the point of missing all the rest. Every faceted answer should reflect back a new and unexpected part of the spectrum, without exhausting the question we should always keep alight.


2015-12-09

Search is not only for entities

The Knowledge Graph is a great achievement, but its systematic use at the top of search results is sometimes counter-productive. Knowledge Graph nodes are mostly named entities (individuals, particulars) such as people, places, works (movies, books, music tracks), products ... and rarely universals (concepts, topics, common names). And if an ambiguous search sentence can refer to either particular entities or universals, the former seem to always float at the top with their fancy Knowledge Graph display, and relevant results about universals kicked down. The assumption underlying this default behavior is that people search mostly for particular entities (things), not information about some universal (topic). The hijacking of common names as brand names we already pointed here in the past adds to the issue, along with the growing number of work titles using common names. Add to this the magic of the Knowledge Graph knowing entities by various names in different languages, and you end up with examples like the following. 

For a recent post I searched about the Theory of Everything. If instead of going straight to the Wikipedia article I ask Google, here is what I get.


I was searching for information about a theory in physics, and I get all about a movie which happens to have taken as title the name of this theory. And since my browser default language is French, the Knowledge Graph is kind enough to present me the movie under its French adaptation title "Une merveilleuse histoire du temps", which you can imagine even if you don't speak a lot of French, is all but a translation of "Theory of Everything". The silver lining is that if I search for "Théorie du tout" in French, I have not the same problem, since the movie is not known in French under this title which would be the correct translation of the original one. The first result for "Théorie du tout" is the Wikipedia article on this topic, as expected.
You can play the same funny game with "Gravity", "Frenzy" and many more. Given the limited supply of common names, and the exponential growth of named entities in the Knowledge Graph, all tapping into the commons for their names and titles, such ambiguities are likely to end up being rather the rule than exceptions. Search engines should provide a simple way to opt out entities, so that I could ask "Dear Google, give me resources about the topic called gravity, and I don't care about any individual entity with gravity in its name." And yes, Google, you can do it, I'm sure, just take example on BabelNet, where you can sort results by entities, concepts, music, media etc.  A bit of typing goes a long way ...

Why do I write, really?

Teodora Petkova strikes again with her new and tiny (her word) Web Writing Guide. Her savvy recommendations on the Whys and Whats of writing on/for the Web made me wondering if I ever applied any single one of them, and in particular in this blog which has been for years the main place I've been writing and publishing. The rest of my publication track consisting in a handful of conference or journal papers, a chapter in a collaborative book, some of those still published online, but not really written "for the Web". Not to mention hundreds of messages to various community lists and comments on the social Web, but does that really count as Web writing? 
It might be too late and pointless anyway to consider those recommendations, since I have no tangible reason to keep on writing altogether. Retired from business for half a year, not participating any more in discussions of various communities, not even following them, I have nothing to sell or even to give away here. I could as well forever hold my peace, instead of indulging in more wordy selfies. Nevertheless, I'll make the exercise of going through some of Teodora's recommendations, to see if I ever met them. Just for the fun of it.
  • Write for people
Of course, who else? But I've never thought of anyone in particular as the target of what I write here, although I know I write better when I think about a potential reader. Somehow, each post on this blog could (should) be read as a personal letter to some unknown reader. To make it short, I have no market, no target audience. I know I have a handful of more or less faithful followers, and hope the few serendipitous visitors will bring home some food for thought. 
  • Write for machines
Believe it or not, I really don't give a damn about that one. I've been a so-called Semantic Web evangelist because I liked the ideas behind it and the conceptual debates it triggered (not to mention I was also paid for it), but I never applied its technology to this blog. I even did everything to blur the radar of search engines by changing both URI and title several times. No semantic markup either, beyond a few (rather random) tags. I like the idea of those pages being as easy to reach as the places I love in my mountains. Not unreachable, but not much advertised either, with paths not difficult to follow, but not obvious to find either. And actually, since I'm not able to define or name what I am about, I prefer search engines to ignore those pages than indexing them under any silly topic.
  • Write for joy
This is certainly the only recommendation I follow. Nothing to add.

But the Whys are not the main point of difficulty. Regarding the Whats, I must admit I am completely off track.
  • What is it that you really want to say and cannot help but share?
I'm afraid most of the time I don't know before I've finished writing it.
  • What is it that your audience needs?
As said above, I've no audience, and therefore cannot possibly know what it needs. 

If I try to apply the following ... The intersection of the answers to these questions is the answer to “What to write?” Well I won't say this intersection is empty, but it looks rather undecidable.

Sorry, Teodora, but your recommendations are either useless to me, or they lead to the conclusion that I should not write at all before answering the two above. Unless the write for joy is enough of an excuse to keep writing. 

When I was a child, half a century ago, my school teacher (who happened to be also my father, the teachers offer is scarce in village schools) was an adept of the texte libre. This is the writing exercise I still prefer. Following the Freinet pedagogy, the original free production was selected and amended by the group and eventually published in the class journal. The final text was a collective production based on an individual original idea. Does not that sound quite Webby, back in the 1950's, in remote French village schools?

2015-12-01

Backtracking signs


This image has been for some years now my avatar on various places on the Web. I've chosen it obviously because it's a nice image taken in my dear mountains, but also as an illustration of what Quine called the inscrutability of reference.
This image is a sign, elle nous fait signe. To each of you, depending on your experience and culture, it will evoke something different and particular  - or nothing at all. But does it only evoke, or does it represent something? Could a machine figure what it is? I would be curious to submit this image to some automatic description algorithm. Would we get something like tracks in the snow in a winter mountain landscape? That would not be bad. If it succeeds in adding several people wearing snowshoes, I would be most impressed. And I would be really baffled if it could guess how many people have passed, and in which direction.

Now let's take it as a support for an exercise in backtracking. Let's move a few steps towards the genesis of this image, trying to figure out its deeper meaning. Someone shot this image on a fair winter day (supposing it's a genuine photograph and not one of those fancy computer-generated graphics). In either case what you are viewing here and now is just a reconstruction on the screen of your device of a pack of bits, a file uploaded to Google servers from my computer, this local file being itself a resized and trimmed copy of an original one generated by a numeric camera. Several copies, deconstructions and reconstructions happened since the original shot.
Now just trust me it's a "genuine" photograph of some "real" landscape, and imagine yourself back at the scene, along with the photographer. Given the point of view, he's certainly on the tracks himself. Does he follow the tracks let by another group of walkers? Does he belong to this group? Is he looking back at its own tracks? Has he followed the same track way up and down, and the several people who seem to have passed here were actually the same person, once walking up and once down, or maybe several times up and down? Whatever. Who could answer those questions now, except the one who shot the image? Days, months, seasons and years have passed since. Later on the same day other walkers have come following the tracks or crossing them and messing the signs. A few days after a new snow fall has erased them all, and in April the winter memories have vanished in the streams joyfully cascading down. And another summer, and another winter. Going back there now won't tell you anything about those tracks, even if the landscape looks quite the same, even if some walker has taken today the same path, letting similar tracks.

But figuring the genesis of the image itself is not the end of the backtracking. I've chosen this image to represent me on the Web, among thousands of possible images. How can you interpret this choice? Is it a track of mine, captured by someone else, a track of someone else taken by me, my own track taken by myself, a far-fetched form of selfie? Maybe nothing of the sort. Maybe I found this image somewhere on the Web and thought it looked like me, someone who walks, and is often no more where you expected to meet him.

I could answer all those questions, but I won't. I'd rather imagine you wondering as you would wonder, hopefully, finding some perfect pebble stone on the seashore, about the long story it silently tells, the slow cooking of rock in the depth of Earth and its upraising over millions of years, the sudden earthquake or storm or the patient bite of ice cracking the rock, the fall off the cliff, the long rolling travel downstream to the sea, the patient work of currents, tides and waves until this unique morning where its glow on the sand have captured your eyes.

Think about it, just every thing is somehow akin to this image of a track or that pebble stone. Telling stories, giving time its depth by linking us to the past as so many threads. Trees and rocks, bowls, clothes, jewels, printed words and texts. And every so-called Web resource. They are not just sitting idly here and now, but are signs worth backtracking.

2015-11-23

Do things go wrong, or is it just me?

Consistency seems to be an universal requirement for any account of reality we accept to consider as true. This requirement seems to build slowly in childhood with the acquisition and consolidation of language, along with notions of true and false, and the underlying law of excluded middle, a basis for all rational and scientific accounts of the world. Formal logic and mathematics underlie the growing computational power of our machines, and we also try to make consistent the laws and rules governing our daily life. But whatever the level of formality at which they are used, consistency and truth belong to the realm of discourse. Holding that a discourse is (in)consistent and statements are true or false in the framework of this discourse makes sense and in many cases can be precisely defined and proven by logic. Considering that a statement is true because it seems consistent with reality or at least the state of affairs at hand is more hazardous, but is still useful and is actually the basis for most of our daily decisions. 

But what is more arguable is to consider consistency as a characteristic of the reality itself, independently of any discourse we can have on it. What could that mean? Reality simply is what it is whether we think or speak about it or not, and there is no point in asking if reality is true or false, consistent or inconsistent, all qualifiers which should apply only to statements and discourse. Reality is the state of affairs, the mountain as we experience it, it is not a discourse, even if our discourse is part of it. What can be said true, false, consistent or inconsistent, is that one asserts about this experience. But somehow the experience has those permanent patterns which comfort us in believing that indeed reality is internally consistent and our language can build accounts of it we proudly call facts. Our faith in the internal logic and consistency of reality beyond any account of it has gone as far as considering reality as the embodiment of the discourse of some perfect logos. This metaphysical stance pervades implicitly or explicitly all the occidental thought from Greek philosophy through various avatars of monotheism. We can still track it in modern science, with the quest of the Theory of Everything, which in the mind of some would be a consistent account of no more no less than the thought of God. Of course such a theory should be globally logically consistent, since the creator could not be inconsistent without failing to perfection.

Our philosophy should be more humble. Logic should stay where it came from and belongs, inside language. And when the reality suddenly behave in an unexpected way, inconsistent with those accounts we so far considered as true, instead of thinking first that things have gone wrong, let us admit that it is our account of things which was proven wrong. Things never go wrong, but we often do.

2015-11-18

The moving shores of things

I would like to dedicate this post to the victims of last week's attacks in Paris, who were blindly sentenced to death without notice because they were guilty of joie de vivre, or maybe simply of humanity. I started writing those lines before the attacks, and they could seem at first sight to have nothing to do with Daesh madness. But if you are patient enough to read down to the end, I hope you will find relevant food for thought in the context of those events.

Whether things are ontological primitive or abstracted from the states of affairs, as suggested in our previous post, to deny them any kind of existence would fly in the face of common sense and experience. Mountaineers know that there are mountains, rocks and streams, sailors know that there are seas, waves and storms. But ask them what mountain or sea is, and you're likely to get all but a definition. They will certainly tell you awesome stories of climbing and sailing, maybe show you images, and the most sensible of them will just propose to go with them for climbing or sailing to figure by yourself, experiment the thing, be part of it. 
Why is it so? Because being is not being neatly defined. Our logicians and ontologists would like to make us believe that the world can be split neatly between this and that, day and night, land and sea, human and non-human etc, categories which could be logically defined. There are many reasons why they are wrong, the most often quoted being the arbitrary choice of such limits, since the world can be split into things in many ways. A good introduction to the current discussion on this viewpoint called relativism can be found in the Stanford Encyclopedia of Philosophy.
But relativism is not the best and primary stance I would choose to argue why trying to give a logical definition of mountain or sea or whatever else is bound to fail forever. The main point is that such things, as well as most things you can think of, have fringes, shores, edges, interfaces ... (the name depending on the kind of things you consider) through which they are less separated from than intertwined with each other. If you look at a shore from far enough, it can look like a neat line. But if you look closely, while walking on a beach or at the edge of a forest, you will discover a very complex world which belongs to neither or both worlds that meet here. On the shore, the sea enters the land and the land feeds the sea in the perpetual circulation of waves and tides. The shore is where land and sea communicate and exchange. At the forest edge, animals perpetually come in and out of the trees' shelter to feed in the grass and fields. And what is the forest itself, if not a shore between earth and sky, with thousands of trees as so many links and knots between the depth of ground and the air. Great examples of such intertwining interfaces are mangroves, known to be extraordinary rich ecosystems.


Mangrove at Cayo Levisa, Cuba.
Source Wikimedia Commons

The concepts we abstract from the world and toss to each other's face in our endless arguments and wars are of the same nature. Between life and death, human and non-human, the limits should look indeed like the above, moving and intertwined. And thinking otherwise that those moving shores are or should be reduced to neat lines is the first step towards totalitarism, exclusion, and death. 

The words and acts of Daesh have gone of course very far down such an alley, but to fight them back we should be careful not to use similar simplistic rhetoric, ignoring the complexity of fringes and shores, replacing them with edges as straight and cutting as their knife's blade. One of those, the most simplistic one still unfortunately thought aloud by too many people, leads to broadly confuse Daesh with Islam, when 99.9% of Muslims condemn the terrorism, and more than 80% of Daesh victims are Muslims. But the defensive stance of many moderate Muslims claiming outloud that Daesh is not Islam, and his members are not the Muslims they claim to be, is equally simplistic and counterproductive. Daesh is indeed a shore of Islam, although a very remote and dangerous one, and moderate Muslims would certainly benefit to acknowledge outloud that such a shore exists, where Islam meets and intertwine with intolerance, obscurantism, organized criminality, thirst for glory and power, or sheer madness. As any shore, you can get there from both sides. From inside Islam through fundamentalism, and from outside through social exclusion and criminality. 
Beyond or inside Islam, we see many people saying or writing that Daesh killers have put themselves by their words and acts deliberately beyond humanity, and therefore could and should be simply shot down as dangerous furious animals. Calling them "monsters" or "barbarians", whatever fits for saying "they are not like us and must be eliminated" is as simplistic and counterproductive as the above claim "they are not Muslims". Daesh killers certainly dwell on some strange and frightening fringe of humanity, so far off that they are even able to shake the notions we have of what makes humanity. But whether humans or barely so, barbarians, monsters, or simply mad criminals, in any case they have come to this deadly shores from inside humanity, and we need to understand how they got there to prevent more young people to follow the same paths.

2015-11-12

Mountains as states of affairs

Trying to make sense of the deep work of Jan Christoph Westerhoff about ontological categories, reality and everything, along with a slow but steady learning of Chinese language and ancient philosophy, leads you to consider as ontological primitive the states of affairs, instead of good old semantic web things and properties, the latter being derived artefacts of the former, not the other way round. Let's try to illustrate this as simply as possible.
Consider a mountain. On the semantic web you represent a mountain as an instance of owl:Thing or one of its specific subclasses such as schema:Mountain. You claim to have defined a non-ambiguous individual identified by a URI and described by an open set of property-value pairs, such as http://dbpedia.org/resource/Mount_Everest.

But in the view of the world proposed by both Westerhoff philosophy and the Chinese language (insofar as I understand them properly), the above are just abstractions derived from some state of affairs. The chinese 山(shān) we translate in English as mountain(s) is a sign associated with certain aspects of things, or states of the world. We have to be very cautious on terms here, and not take for granted that existence of "things" and "the world" are preconditions to the states of affairs we associate with the sign 山. In ancient Chinese culture where this sign first emerged about three thousands years ago, the world is not divided into things before we name them. Certain states of affairs, patterns we recognize again and again, lead us to associate a sign to them. 山 is just an abstract visual representation of those states of affairs presenting peaks rising upward, a main central one and another one of each side, slightly asymmetrical. A mountain is indeed generally mountains, bearing in mind "three" has to be understood as a shortcut for "many".

The difference between considering there are such things in the world as individual mountains and we just give them individual names and put them in a category, and considering mountains as states of affairs we associate using a common sign or name, might appear subtle or moot. But it is indeed a fundamental shift of our view of the world. States of affairs are not neat individuals defined by properties, they are not separated from each other, they have neither precise limits in space and time, nor definite components and properties. Of course we can try to agree and generally agree to disagree upon such limits and components, and argue forever on what is or is not a mountain in general or this mountain in particular. And we actually argue upon what is a human being, or a book, or a Web resource, or democracy ... This kind of argument is interestingly called in Chinese 是非 (shì fēi), literally meaning "being - not being", hence "right - wrong" and in common language dispute, argument. There is much food for thought in this word. Dispute arises when the language gets out of its original role of simply putting signs on state of affairs, going down to argue on what there is and is not behind signs, in other words, when the language mingles into ontology and meaning instead of sticking to what it's really made for - poetry.

I wish you to stay away from dispute, walk up and listen to the mountain songs.