diff options
author | Jonas <dr@jones.dk> | 2013-06-02 14:32:12 +0200 |
---|---|---|
committer | Jonas <dr@jones.dk> | 2013-06-11 18:13:22 +0200 |
commit | 4e1f83d04800b85f66f871a0b6b6269d8e839326 (patch) | |
tree | a636d3effcb0541e3d5ab31e0c2fc712fe16dd23 /bin | |
parent | 582cd17815187dd894fe42dac1e100ebd9389490 (diff) |
Relax SPARQL query to include transit:Service (not only schema:Place).
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/rdf2hours | 3 |
1 files changed, 2 insertions, 1 deletions
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 . |