我想提取元素geo:lat
,但我不知道如何
我这样做但是没有用:
PREFIX fun: <http://w3id.org/sparql-generate/fn/>
PREFIX iter: <http://w3id.org/sparql-generate/iter/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX xmlns: <http://www.georss.org/georss>
GENERATE {
?id a geo:SpatialThing;
rdfs:label ?name;
geo:lat "{?lat}"^^xsd:decimal;
geo:long "{?long}"^^xsd:decimal .
}
SOURCE <http://wcf.tourinsoft.com/Syndication/cdt37/A716E167-B408-45AA-BEAB-01E466942A8C/Objects> AS ?source
ITERATOR iter:XPath(?source,"/feed/entry") AS ?it
WHERE {
BIND(fun:XPath(?it,"/entry/id/text()") AS ?id)
BIND(fun:XPath(?it,"/entry/title/text()") AS ?name)
BIND(fun:XPath(?it,"/entry/lat/text()") AS ?lat)
BIND(fun:XPath(?it,"/entry/geo:long/text()") AS ?long)
}
我需要在feed/entry/geo:long
中获取信息,我的问题是此元素geo:long
的名称。
我有一个感兴趣的列表,我正在尝试获取这些POI的名称和经度和经度 https://ci.mines-stetienne.fr/sparql-generate/playground.html