L’éditeur de requête visuel permet de faire une recherche par rayon :
CONSTRUCT {
?res <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <urn:resource>.
} WHERE {
<http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None".
?res <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.datatourisme.fr/ontology/core#PointOfInterest>.
?res <https://www.datatourisme.fr/ontology/core#isLocatedAt> ?654389455e045.
?654389455e045 <http://schema.org/geo> ?654389455e0c6.
{
SERVICE <http://www.bigdata.com/rdf/geospatial#search> {
?654389455e0c6 <http://www.bigdata.com/rdf/geospatial#search> "inCircle".
?654389455e0c6 <http://www.bigdata.com/rdf/geospatial#predicate> <https://www.datatourisme.fr/ontology/core#latlon>.
?654389455e0c6 <http://www.bigdata.com/rdf/geospatial#searchDatatype> <http://www.bigdata.com/rdf/geospatial/literals/v1#lat-lon>.
?654389455e0c6 <http://www.bigdata.com/rdf/geospatial#spatialCircleCenter> "48.112765203533#-1.67429".
?654389455e0c6 <http://www.bigdata.com/rdf/geospatial#spatialCircleRadius> "30".
}
<http://www.bigdata.com/queryHints#SubQuery> <http://www.bigdata.com/queryHints#optimizer> "Static".
}
}
Vous pouvez faire un UNION
pour ajouter d’autre localisation, même si nous vous suggérons plutôt de faire des flux différents :
CONSTRUCT {
?res <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <urn:resource>.
} WHERE {
<http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None".
{
?res <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.datatourisme.fr/ontology/core#PointOfInterest>.
?res <https://www.datatourisme.fr/ontology/core#isLocatedAt> ?654389455e045.
?654389455e045 <http://schema.org/geo> ?654389455e0c6.
{
SERVICE <http://www.bigdata.com/rdf/geospatial#search> {
?654389455e0c6 <http://www.bigdata.com/rdf/geospatial#search> "inCircle".
?654389455e0c6 <http://www.bigdata.com/rdf/geospatial#predicate> <https://www.datatourisme.fr/ontology/core#latlon>.
?654389455e0c6 <http://www.bigdata.com/rdf/geospatial#searchDatatype> <http://www.bigdata.com/rdf/geospatial/literals/v1#lat-lon>.
?654389455e0c6 <http://www.bigdata.com/rdf/geospatial#spatialCircleCenter> "43.529742#5.447427".
?654389455e0c6 <http://www.bigdata.com/rdf/geospatial#spatialCircleRadius> "30".
}
<http://www.bigdata.com/queryHints#SubQuery> <http://www.bigdata.com/queryHints#optimizer> "Static".
}
}
UNION
{
?res <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.datatourisme.fr/ontology/core#PointOfInterest>.
?res <https://www.datatourisme.fr/ontology/core#isLocatedAt> ?654389455e045.
?654389455e045 <http://schema.org/geo> ?654389455e0c6.
{
SERVICE <http://www.bigdata.com/rdf/geospatial#search> {
?654389455e0c6 <http://www.bigdata.com/rdf/geospatial#search> "inCircle".
?654389455e0c6 <http://www.bigdata.com/rdf/geospatial#predicate> <https://www.datatourisme.fr/ontology/core#latlon>.
?654389455e0c6 <http://www.bigdata.com/rdf/geospatial#searchDatatype> <http://www.bigdata.com/rdf/geospatial/literals/v1#lat-lon>.
?654389455e0c6 <http://www.bigdata.com/rdf/geospatial#spatialCircleCenter> "48.112765203533#-1.67429".
?654389455e0c6 <http://www.bigdata.com/rdf/geospatial#spatialCircleRadius> "30".
}
<http://www.bigdata.com/queryHints#SubQuery> <http://www.bigdata.com/queryHints#optimizer> "Static".
}
}
}
Cordialement