So I've been pondering this for a few days, and I don't (yet) have a good solution. But I have an itch growing, and I need to dump it here before I totally forget it.
Currently the RDF view of a page doesn't give the current Categories or Locales. I'd like to include these as some kind of a link to the Category or Locale page ... I'm thinking something like an rdf:seeAlso, but that really isn't descriptive enough. This is where I got stuck working on this idea, I couldn't find a decent RDF vocabulary to give this idea. The closest is spacenamespace's space:contains ... but that's the inverse of what I want.
Having said that, isn't there a way to invert the process and get all the nodes in a Category or Locale via the RDF? I know zool asked about something like that at one point, and it could possibly have made it into the book.
The ultimate purpose of all of this is I'd like to create a little bot to do OpenGuides searches. Something like mudlondon, though not nearly as featureful. I just want something that will perform locative searches for me when I need a resturant to eat lunch at.
-Chris
I hacked something rough that sort of did this for the London OpenGuide:
http://swordfish.rdfweb.org/discovery/2003/10/whwhwhwh/
code: http://swordfish.rdfweb.org/discovery/2003/10/whwhwhwh/RDFBot.java
(search for london and you can see the query string I used to get the rdf)
I remember Kake very kindly making some small alterations so that it worked.
Libby
On Sun, 28 Nov 2004, Chris Prather wrote:
So I've been pondering this for a few days, and I don't (yet) have a good solution. But I have an itch growing, and I need to dump it here before I totally forget it.
Currently the RDF view of a page doesn't give the current Categories or Locales. I'd like to include these as some kind of a link to the Category or Locale page ... I'm thinking something like an rdf:seeAlso, but that really isn't descriptive enough. This is where I got stuck working on this idea, I couldn't find a decent RDF vocabulary to give this idea. The closest is spacenamespace's space:contains ... but that's the inverse of what I want.
Having said that, isn't there a way to invert the process and get all the nodes in a Category or Locale via the RDF? I know zool asked about something like that at one point, and it could possibly have made it into the book.
The ultimate purpose of all of this is I'd like to create a little bot to do OpenGuides searches. Something like mudlondon, though not nearly as featureful. I just want something that will perform locative searches for me when I need a resturant to eat lunch at.
-Chris
-- OpenGuides-Dev mailing list - OpenGuides-Dev@openguides.org http://openguides.org/mm/listinfo/openguides-dev
On Sun 28 Nov 2004, Chris Prather chris@prather.org wrote:
Currently the RDF view of a page doesn't give the current Categories or Locales.
Yes it does! eg http://london.openguides.org/?id=Whitgift_Centre%2C_Croydon;format=rdf
<geo:SpatialThing rdf:ID="obj" dc:title="Whitgift Centre, Croydon"> <!-- categories --> dc:subjectMalls</dc:subject> dc:subjectShopping</dc:subject>
<!-- address and geospatial data --> <city>London</city> <postalCode>CR0 1LP</postalCode> <country>United Kingdom</country> foaf:based_nearwn:Neighborhoodfoaf:nameCroydon</foaf:name></wn:Neighborhood></foaf:based_near>
Is that the wrong way to do it?
Kake
On Sunday 28 November 2004 09:22 pm, Kake L Pugh wrote:
On Sun 28 Nov 2004, Chris Prather chris@prather.org wrote:
Currently the RDF view of a page doesn't give the current Categories or Locales.
Yes it does! eg http://london.openguides.org/?id=Whitgift_Centre%2C_Croydon;format=rdf
Ack! And now that I look again with less weary eyes, it is all there. However There are no links!
<geo:SpatialThing rdf:ID="obj" dc:title="Whitgift Centre, Croydon"> <!-- categories --> dc:subjectMalls</dc:subject> dc:subjectShopping</dc:subject>
<!-- address and geospatial data --> <city>London</city> <postalCode>CR0 1LP</postalCode> <country>United Kingdom</country>
foaf:based_nearwn:Neighborhoodfoaf:nameCroydon</foaf:name></wn:Neighb orhood></foaf:based_near>
This is wonderful, but I'd like to have a few Links in there like:
<rdfs:seeAlso rdf:resource="http://london.openguides.org/index.cgi?action=index;index_type=category;inde..." />
<rdfs:seeAlso rdf:resource="http://london.openguides.org/index.cgi?action=index;index_type=category;inde..." />
and
<rdfs:seeAlso rdf:resource="http://london.openguides.org/index.cgi?action=index;index_type=locale;index_..." />
in there, perhaps inside the wn:Neighborhood along with the foaf:name, it would make moving backwards from a specific node to it's containers easier to do programmatically.
However I could be going about this all wrong though too, there are aparently quite a few RDF people who actively listen to this list.
-Chris
On Mon 29 Nov 2004, Chris Prather chris@prather.org wrote:
This is wonderful, but I'd like to have a few Links in there like:
<rdfs:seeAlso rdf:resource="http://london.openguides.org/index.cgi?action=index;index_type=category;inde..." /> [...] <rdfs:seeAlso rdf:resource="http://london.openguides.org/index.cgi?action=index;index_type=locale;index_..." />
in there, perhaps inside the wn:Neighborhood along with the foaf:name, it would make moving backwards from a specific node to it's containers easier to do programmatically.
However I could be going about this all wrong though too, there are aparently quite a few RDF people who actively listen to this list.
Libby? zool? Is this the right way to do it?
Kake
I'm in Oz atm, but it's on my list to look at next week.
Libby
On Tue, 30 Nov 2004, Kake L Pugh wrote:
On Mon 29 Nov 2004, Chris Prather chris@prather.org wrote:
This is wonderful, but I'd like to have a few Links in there like:
<rdfs:seeAlso rdf:resource="http://london.openguides.org/index.cgi?action=index;index_type=category;inde..." /> [...] <rdfs:seeAlso rdf:resource="http://london.openguides.org/index.cgi?action=index;index_type=locale;index_..." />
in there, perhaps inside the wn:Neighborhood along with the foaf:name, it would make moving backwards from a specific node to it's containers easier to do programmatically.
However I could be going about this all wrong though too, there are aparently quite a few RDF people who actively listen to this list.
Libby? zool? Is this the right way to do it?
Kake
-- OpenGuides-Dev mailing list - OpenGuides-Dev@openguides.org http://openguides.org/mm/listinfo/openguides-dev
----- Original Message ----- From: "Chris Prather" chris@prather.org To: openguides-dev@openguides.org Sent: 29 November 2004 00:49 Subject: [OpenGuides-Dev] RDF for Locales and Categories
So I've been pondering this for a few days, and I don't (yet) have a good solution. But I have an itch growing, and I need to dump it here before I totally forget it.
Currently the RDF view of a page doesn't give the current Categories or Locales. I'd like to include these as some kind of a link to the Category or Locale page ...
Locales were already in there as "Neighborhood" tags. I requested categories to be put in, back in March this year, and they were as dc::subject tags.
see http://openguides.org/mail/openguides-dev/2004-March/000242.html
Having said that, isn't there a way to invert the process and get all the nodes in a Category or Locale via the RDF? I know zool asked about something like that at one point, and it could possibly have made it into the book.
This works already:
http://london.openguides.org/index.cgi?action=index;index_type=category;inde...
http://london.openguides.org/index.cgi?action=index;index_type=locale;index_...
Should we put an Advanced How To page on http://openguides.org/dev ?
The ultimate purpose of all of this is I'd like to create a little bot to do OpenGuides searches. Something like mudlondon, though not nearly as featureful. I just want something that will perform locative searches for me when I need a resturant to eat lunch at.
That would be cool! It could also aggregate the search over multiple OpenGuides if asked to.
Ivor.
On Monday 29 November 2004 01:40 am, IvorW wrote:
Locales were already in there as "Neighborhood" tags. I requested categories to be put in, back in March this year, and they were as dc::subject tags.
see http://openguides.org/mail/openguides-dev/2004-March/000242.html
So Kake pointed out. My bad for totally missing them the first time.
Having said that, isn't there a way to invert the process and get all the nodes in a Category or Locale via the RDF? I know zool asked about something like that at one point, and it could possibly have made it into the book.
This works already:
http://london.openguides.org/index.cgi?action=index;index_type=category;ind ex_value=Bookshops;format=rdf
http://london.openguides.org/index.cgi?action=index;index_type=locale;index _value=Acton;format=rdf
Should we put an Advanced How To page on http://openguides.org/dev ?
I knew that this should have existed, but didn't know how to find it. This information and things like @INDEX_LIST and @INDEX_LINK stuff are woefully under documented. Or perhaps I'm being blind again. I found a reference to @INDEX_LIST inside the Changes file, and again I knew it existed ... just not how it was spelt.
The ultimate purpose of all of this is I'd like to create a little bot to do OpenGuides searches. Something like mudlondon, though not nearly as featureful. I just want something that will perform locative searches for me when I need a resturant to eat lunch at.
That would be cool! It could also aggregate the search over multiple OpenGuides if asked to.
Could do, but I need to figure out how to get it to work at all first :)
-Chris
On Mon 29 Nov 2004, Chris Prather chris@prather.org wrote:
I knew that this should have existed, but didn't know how to find it. This information and things like @INDEX_LIST and @INDEX_LINK stuff are woefully under documented.
We discussed this on IRC. http://openguides.org/dev/ is the place to fill in holes in the documentation.
Kake
openguides-dev@lists.openguides.org