Skip to content

Vector Layer to RDF

Timo edited this page Oct 23, 2022 · 2 revisions

Vector layer to RDF conversion

The SPARQLing Unicorn QGIS plugin can convert QGIS vector layers to RDF in two different ways.

Quick conversion to RDF

This conversion method can be accessed using the converting layer to RDF dialog.

image

At first, the RDF vocabulary to convert to should be chosen. The plugin allows the conversion to a variety of standard vocabularies. If the GeoSPARQL vocabulary is chosen, different ways to represent the geometry data are possible and can be selected. Finally, the layer to convert should be selected.

The result is an RDF file in the SPARQL Unicorn namespace with the following attributes:

  • Literal type detection for XSD data types
  • Creation of Datatype and ObjectProperties according to the structure of the vector layer in the SPARQL Unicorn namespace
  • Reusage of Geometry vocabularies according to the selected geometry encoding

This dataset can be used in a graph database, but it is highly recommended to be improved in an ontology editor such as Protege to rename properties to other standardized vocabularies or to improve literal types and contents.

Mapping vector layer contents to targeted RDF vocabularies