Johan Sundström wrote:
> Peeking at
>
>   http://simile.mit.edu/wiki/Exhibit/API/MapView
>
> I got interested in ex:proxy. What is it used for? I've peeked at the
> code, and for all I can see it's only probed for by the timeline view,
> but I still don't quite grasp what to do with it. :-) But I'm dead
> curious.
>   
You need two values (lat and lng) to plot an item. Those two values 
might or might not be properties of the item itself. Let's take a gory 
example: 2 suspects of a crime are both inter-city truck drivers and 
each visits a different sequence of cities on his regular trucking 
route. We would like to plot where each suspect has been on a map. But 
each suspect himself doesn't have lat/lng; the cities that he visits do. 
So, the map view should be specified with:

  ex:proxy=".city-visited"
  ex:lat=".latitude"
  ex:lng=".longitude"

Note that it would be wrong to specify

  ex:lat=".city-visited.latitude"
  ex:lng=".city-visited.longitude"

because you would get cross-combinations of lat/lng from all the cities 
visited. That is, if suspect A visits city X and city Y, you would get 4 
points for A instead of just 2:

  [ cityX.latitude, cityX.longitude ]
  [ cityX.latitude, cityY.longitude ]
  [ cityY.latitude, cityY.longitude ]
  [ cityY.latitude, cityX.longitude ]

Not what you want. (Of course, you won't have this trouble if each lat 
and lng pair is bound into a single string.)

> Are there any live examples using it to peek at?
>   
The timeline view of the presidents exhibit uses ex:proxy.
    http://simile.mit.edu/exhibit/examples/presidents/presidents.html
Select "Democratic" and "Presbyterian", then switch to the "Terms" view, 
and scroll to around 1890. You should see 2 terms for  Grover Cleveland.


Presidents and crime suspects. I wish Semantic Web research examples 
move beyond the usual "publications" domain and get a little less 
scholarly and more ... scandalous. :-)

Cheers,

David

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to