Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the OpenGuides CPAN distribution.

Report information
The Basics
Id: 15073
Status: resolved
Priority: 0/
Queue: OpenGuides

People
Owner: Nobody in particular
Requestors: ivorw-cpan [...] xemaps.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.50
Fixed in: (no value)



Subject: RDF Tagging is inconsistent between different pages
The RDF tagging scheme for a node with geographical metadata has information under tag <geo:SpatialThing>, including the list of categories. When there is no geodata, there is no <geo:SpatialThing> tag, but much data you would expect to find here migrates to another <rdf:Description> tag. We need something consistent if we want to parse this usefully.
<?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:wiki="http://purl.org/rss/1.0/modules/wiki/" xmlns:chefmoz="http://chefmoz.org/rdf/elements/1.0/" xmlns:wn="http://xmlns.com/wordnet/1.6/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:os="http://downlode.org/rdf/os/0.1/" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns="http://www.w3.org/2000/10/swap/pim/contact#" > <rdf:Description rdf:about=""> <dc:title>The Open Guide to London: AMT Espresso</dc:title> <dc:date>2003-12-10T09:32:37</dc:date> <dcterms:modified>2003-12-10T09:32:37</dcterms:modified> <dc:contributor>Kake</dc:contributor> <dc:source rdf:resource="http://london.openguides.org/index.cgi?AMT_Espresso" /> <wiki:version>4</wiki:version> <foaf:topic rdf:resource="#obj" /> </rdf:Description> <rdf:Description rdf:ID="obj" dc:title="AMT Espresso"> <!-- categories --> <dc:subject>Coffee Shops</dc:subject> <!-- contact information --> <foaf:homepage rdf:resource="http://www.amtespresso.co.uk/" /> <chefmoz:Hours>Various</chefmoz:Hours> </rdf:Description> </rdf:RDF> <?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:wiki="http://purl.org/rss/1.0/modules/wiki/" xmlns:chefmoz="http://chefmoz.org/rdf/elements/1.0/" xmlns:wn="http://xmlns.com/wordnet/1.6/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:os="http://downlode.org/rdf/os/0.1/" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns="http://www.w3.org/2000/10/swap/pim/contact#" > <rdf:Description rdf:about=""> <dc:title>The Open Guide to London: Fenchurch Street Station</dc:title> <dc:date>2005-10-14T17:16:05</dc:date> <dcterms:modified>2005-10-14T17:16:05</dcterms:modified> <dc:contributor>IvorW</dc:contributor> <dc:source rdf:resource="http://london.openguides.org/index.cgi?Fenchurch_Street_Station" /> <wiki:version>8</wiki:version> <foaf:topic rdf:resource="#obj" /> </rdf:Description> <geo:SpatialThing rdf:ID="obj" dc:title="Fenchurch Street Station"> <dc:description>Fenchurch Street is a railway station in the City of London.</dc:description> <!-- categories --> <dc:subject>Rail</dc:subject> <!-- address and geospatial data --> <address>Fenchurch Place</address> <city>London</city> <postalCode>EC3M 4AJ</postalCode> <country>United Kingdom</country> <foaf:based_near> <wn:Neighborhood> <foaf:name>City of London</foaf:name> </wn:Neighborhood> </foaf:based_near> <foaf:based_near> <wn:Neighborhood> <foaf:name>Tower Hill</foaf:name> </wn:Neighborhood> </foaf:based_near> <geo:lat>51.511138</geo:lat> <geo:long>-0.076996</geo:long> <!-- contact information --> <foaf:homepage rdf:resource="http://www.networkrail.co.uk/Stations/stations/FenchurchStreet/Default.aspx" /> <chefmoz:Hours>First &amp; Last: Mon-Fr 05:10 / 00:25, Sat 05:10 / 00:40, Sun 06:40 / 00:10</chefmoz:Hours> </geo:SpatialThing> </rdf:RDF>
[IVORW - Sat Oct 15 12:53:16 2005]: Show quoted text
> When there is no geodata, there is no <geo:SpatialThing> tag, but much > data you would expect to find here migrates to another > <rdf:Description> tag.
Sorry, I don't understand - what do you mean by "migrates to another <rdf:Description> tag"?
From: IVORW [...] cpan.org
[EMARTIN - Sun Oct 16 15:03:55 2005]: Show quoted text
> Sorry, I don't understand - what do you mean by "migrates to another > <rdf:Description> tag"?
There is an attachment to the original post, containing two node RDFs, one of which has a geo:SpatialThing, and the other has a second rdf:Description. This is kept for the record, just in case we fix the London website. http://london.openguides.org/index.cgi?id=AMT_Espresso;format=rdf This has no geodata, and has dc:subject chefmoz:hours and foaf:homepage tags in a second rdf:Description tag, whereas other nodes have the same info inside their geo:SpatialThing tag (along with address, lat/long etc.) I have accommodated this in OpenGuides::RDF::Reader, but it's still a bug. Non-geo data should be in one tag or the other.
[IVORW - Sun Oct 16 17:42:50 2005]: Show quoted text
> There is an attachment to the original post, containing two node RDFs
Oop, missed that, sorry. Show quoted text
> This has no geodata, and has dc:subject chefmoz:hours and > foaf:homepage tags in a second rdf:Description tag whereas other > nodes have the same info inside their geo:SpatialThing tag (along > with address, lat/long etc.)
Having opening hours needs to be added to the logic for marking things as spatial - thanks, I'll get on it. Having a homepage doesn't qualify, though, because plenty of virtual-only things have websites. It would be nice to deduce this information from what categories the item has had assigned (e.g. Coffee Shops) as well, which is something I'll consider. Show quoted text
> I have accommodated this in OpenGuides::RDF::Reader, but it's still a > bug. Non-geo data should be in one tag or the other.
By the way, are you sure you read the RDF right? Every node has either two rdf:Descriptions or one rdf:Description and one geo:SpatialThing. The first rdf:Description describes the node itself; the second (or geo:SpatialThing) describes the /subject/ of the node. This is a careful distinction that has been the subject of much earlier discussion (in general terms, not our particular implementation - see http://www.w3.org/2001/tag/issues.html#httpRange-14 ).
[EMARTIN - Thu Nov 3 13:55:24 2005]: Show quoted text
> Having opening hours needs to be added to the logic for marking things > as spatial - thanks, I'll get on it. Having a homepage doesn't > qualify, > though, because plenty of virtual-only things have websites.
Can't virtual-only things have opening hours too? For example telephone sales agencies and no doubt more.
[DOM - Fri Nov 4 14:57:10 2005]: Show quoted text
> Can't virtual-only things have opening hours too? > For example telephone sales agencies and no doubt more.
I wouldn't call any company that has an office somewhere and a telephone number "virtual". Anyway, they might have operating hours, but not opening hours as I understand it. Actually, http://chefmoz.org/rdf/elements/1.0/ describes opening hours as "A string describing the hours the restaurant is open." This is decidedly suboptimal, considering that not everything is a restaurant, and I would like to rapidly find an alternative.
[EMARTIN - Fri Nov 4 16:31:54 2005]: Show quoted text
> I would like to rapidly find an alternative.
On this point, see also http://esw.w3.org/topic/OpeningHoursUseCase .