Smalis would like to share these information. Please see following messages.

---------- Forwarded message ----------
From: Smalis Sklavos <[email protected]>
Date: Tue, Jul 2, 2013 at 7:05 PM
Subject: Re: [Dbpedia-discussion] Dbpedia - GeoSparql
To: "[email protected]" <[email protected]>


Oops sorry . i wanted to share in in the dicussion but i cannot find how to
return there. I have nt made it work yet. It seems like it crashes without
returning any results after the construct. On the fly it would be nice to
be done because u could have a mirror of dbpedia without having t tranform
all the data every time. Please gorward the message until i fix my account

Sent from Yahoo! Mail on Android

 ------------------------------
* From: * deng dongpo <[email protected]>;
* To: * Smalis Sklavos <[email protected]>;
* Subject: * Re: [Dbpedia-discussion] Dbpedia - GeoSparql
* Sent: * Tue, Jul 2, 2013 10:23:45 AM

  Hi, Smalis

You just replied me. If you'd like to reply all, you should send it again.

Thank you for sharing information. I also use Parliament. But I never try
to use BIND. Is it worked? Parliament seems need to build spatial indexes
manually after data import. I'm wondering if Parliament can build the
spatial indexes on the fly? Indeed, Rob's paper in SWJ[1] used the query
but I didn't make it work. Good to know if you can make it. I just changed
our Parliament to new version. It may be worked in the new version. Anyway,
it is worth to try. Thank you again.

[1]http://www.semantic-web-journal.net/sites/default/files/swj176_3.pdf

Cheers,
Dongpo


On Tue, Jul 2, 2013 at 6:04 PM, Smalis Sklavos <[email protected]> wrote:

> Thank you all for your responses.
> From my recent research I have found out that in order to create a
> geosparql supported dataset of db-pedia you have to do the following:
> 1) Download  the location based dataset of dbpedia
> http://dbpedia.org/Downloads38
> 2) Insert it in a triple strore such as parliament or strabon (I am using
> parliament), but I will give it a try to Strabon too.
> 3)Convert the dbpedia dataset in geosparql supported format by adding for
> every location resource a triple like : <
> http://www.opengis.net/ont/geosparql#Point> <
> http://www.opengis.net/ont/geosparql#asWKT> "Point({lat} {lon})"^^<
> http://www.opengis.net/ont/sf#wktLiteral> that Dimitris says below.
> 4) In order to do it for all triples in the dataset you have to write a
> Sparql Consract query in parliament  : In my opinion it is the folowing:
>
> PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
> PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
> PREFIX owl: <http://www.w3.org/2002/07/owl#>
> PREFIX par: <http://parliament.semwebcentral.org/parliament#>
> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
> PREFIX time: <http://www.w3.org/2006/time#>
> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
>
> PREFIX geo: <http://www.opengis.net/def/geosparql/>
> PREFIX geof: <http://www.opengis.net/def/geosparql/function/>
> PREFIX sf: <http://www.opengis.net/def/sf/>
> PREFIX gml: <http://www.opengis.net/def/gml/>
>
> PREFIX wgs84_pos: <http://www.w3.org/2003/01/geo/wgs84_pos#>
>
> CONSTRUCT {
> ?feature a geo:Feature ;
> geo:hasGeometry [
> a sf:Point ;
> geo:asWKT ?wkt
> ] .
> }
> WHERE {
> ?feature wgs84_pos:lat ?lat ;
> wgs84_pos:long ?long .
> BIND (STRDT(CONCAT("POINT(",?long, " ", ?lat, ")"),sf:WktLiteral) as ?wkt)
> .
> }
>
> 5) I am still trying to make it work, however , so if you have any
> suggestions they are all welcome
>
>
>
> Smalis Sklavos
>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to