- From: Frans Knibbe | Geodan <frans.knibbe@geodan.nl>
- Date: Fri, 27 Jun 2014 16:00:42 +0200
- To: Gannon Dick <gannon_dick@yahoo.com>, "public-locadd@w3.org" <public-locadd@w3.org>
- Message-ID: <53AD790A.3020108@geodan.nl>
On 2014-06-13 19:48, Gannon Dick wrote:
>
> "Would it make sense to use HMTL tags for formatting?"
>
> Yes, it would to me, because I am bone tired of look-alike abstractions :-)
At first I was thinking about using HTML to put line breaks in an
address. But I quickly changed my mind when I started noticing how
addresses are formatted in scientific papers. They just use commas. I
think plain commas are nicer than fancy formatting because an address
with only commas could embedded directly in any text. To use such an
address to put on a mail envelope, one would only have to replace the
commas with line breaks.
It was rather less trivial then I thought, but I have now managed to add
full addresses to the data set. For example, the following query returns
all full address within a specified postal code zone:
prefix locn: <http://www.w3.org/ns/locn#>
select ?full_address
from <http://lod.geodan.nl/basisreg/bag/nummeraanduiding/>
where {
?address a locn:Address .
?address locn:postCode "1021GL"^^xsd:string.
?address locn:fullAddress ?full_address .
}
(Click here
<http://lod.geodan.nl/sparql?default-graph-uri=&query=prefix+locn%3A+%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Flocn%23%3E%0D%0Aselect+%3Ffull_address%0D%0Afrom+%3Chttp%3A%2F%2Flod.geodan.nl%2Fbasisreg%2Fbag%2Fnummeraanduiding%2F%3E%0D%0Awhere+%7B%0D%0A%09%3Faddress+a+locn%3AAddress+.%0D%0A%09%3Faddress+locn%3ApostCode+%221021GL%22%5E%5Exsd%3Astring.%0D%0A%09%3Faddress+locn%3AfullAddress+%3Ffull_address+.%0D%0A%7D%0D%0A&format=text%2Fhtml&timeout=0&debug=on>
to issue this request in your web browser and see the results)
I left off the country name on purpose, because it would not be needed
within the country and could easily be added otherwise.
Regards,
Frans
>
> Cheers,
> Gannon
------------------------------------------------------------------------
Frans Knibbe
Geodan
President Kennedylaan 1
1079 MB Amsterdam (NL)
T +31 (0)20 - 5711 347
E frans.knibbe@geodan.nl
www.geodan.nl <http://www.geodan.nl> | disclaimer
<http://www.geodan.nl/disclaimer>
------------------------------------------------------------------------
Received on Friday, 27 June 2014 14:01:13 UTC