SPARQL-Anything / sparql.anything

SPARQL Anything is a system for Semantic Web re-engineering that allows users to ... query anything with SPARQL.
https://sparql-anything.cc/
Apache License 2.0
217 stars 11 forks source link

Validating CSV column names #434

Open albamoralest opened 11 months ago

albamoralest commented 11 months ago

I am querying a CSV and misspelt a column name. SPARQL anything will not throw a warning or error about it.

E.g CSV columns' names: types, entity

Example of query:

SERVICE { BIND ( CONCAT ( "../path/", ?_fileId , ".csv" ) AS ?location ) . fx:properties fx:location ?location ; fx:csv.headers "true" . [] xyz:types ?typ ; xyz:entty ?ent . ...

ERROR misspeld name xyz:entty

SPARQL Anything does not throw any error using the sparql-anything-0.8.1 version

enridaga commented 11 months ago

Normally, RDF graphs are schema-less, so the query engine does not make any assumption on existing, non-existing, or constrained properties, classes, or data types. However, this is not true for FX graphs (generated applying Facade-X to non-RDF resources). Maybe it is worth considering raising warnings if there are schema elements mentioned that do not exist in the original source.