From 4e1f83d04800b85f66f871a0b6b6269d8e839326 Mon Sep 17 00:00:00 2001 From: Jonas Date: Sun, 2 Jun 2013 14:32:12 +0200 Subject: Relax SPARQL query to include transit:Service (not only schema:Place). --- bin/rdf2hours | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/rdf2hours b/bin/rdf2hours index 9a22aed..0d28d79 100755 --- a/bin/rdf2hours +++ b/bin/rdf2hours @@ -76,13 +76,14 @@ while (my $data = shift @ARGV) { # compose query for hourspec data at least partly within a "window" of time # (yes, comparing global dates against opposite spec dates is deliberate) +# TODO: support transit:Schedule (as alternative to gr:hasOpeningHourSpecification) my $w3c = DateTime::Format::W3CDTF->new; my $query = qurie( sprintf(<<'SPARQL', $w3c->format_datetime($globalthrough), $w3c->format_datetime($globalfrom) )); SELECT * WHERE { { ?location - a schema:Place ; +# a schema:Place ; gr:category ?category ; gr:name ?name ; gr:hasOpeningHourSpecification ?spec . -- cgit v1.2.3