geosparql

Integrate GeoSPARQL spatial querying into the sparq RDF/SPARQL engine.

8|1|Updated Jun 7, 2026
One-click install
npx skills add https://github.com/sparq-org/sparq --skill geosparql
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: geosparql
Source: https://github.com/sparq-org/sparq/tree/main/skills/geosparql
Command: npx skills add https://github.com/sparq-org/sparq --skill geosparql

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sparq-geo, sparq-core, sparq-engine, geo-types, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Provides GeoSPARQL spatial support for the sparq RDF/SPARQL engine, enabling the parsing of GeoSPARQL geometries and the use of spatial functions within SPARQL queries.

Core Features & Use Cases

  • GeoSPARQL Parsing: Handles geo:wktLiteral and geo:gmlLiteral geometries.
  • Spatial Functions: Evaluates spatial functions like distance, relations, and buffer operations.
  • GeoIndex Building: Creates an R-tree index for efficient spatial queries.
  • Use Case: For example, it can be used to find all points within a certain distance from a given location or to determine whether two geometries intersect.

Quick Start

Build the GeoSPARQL skill and run a query to find all features within a 100 km radius of a specific location.

Frequently Asked Questions about geosparql

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query spatial data in RDF using GeoSPARQL?

To query spatial data in RDF using GeoSPARQL, you can integrate spatial support into your SPARQL engine to parse geometries and evaluate spatial functions like distance and intersections within your queries.

What spatial functions can I use in SPARQL for geospatial analysis?

SPARQL geospatial analysis supports evaluating spatial functions including distance calculations, geometric relations, and buffer operations to find features within a specific radius or determine intersecting geometries.

How do I find all points within a certain distance in an RDF graph?

Finding points within a certain distance in an RDF graph requires parsing GeoSPARQL geometries like WKT or GML literals and using spatial functions to evaluate radial queries against your dataset.

Does GeoSPARQL support both WKT and GML geometry literals?

Yes, GeoSPARQL support includes parsing both geo:wktLiteral and geo:gmlLiteral geometries, allowing you to represent and query spatial features using either Well-Known Text or Geography Markup Language formats.

How do I improve SPARQL spatial query performance on large datasets?

To improve SPARQL spatial query performance on large datasets, you can build an R-tree index that enables efficient spatial querying and rapid retrieval of geometries matching your spatial functions.

Do I need sparq-core and sparq-engine to use GeoSPARQL spatial functions?

Yes, using GeoSPARQL spatial functions requires sparq-core and sparq-engine as foundational dependencies, along with sparq-geo and geo-types, to provide the necessary RDF processing and spatial data type support.