Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validating CSV column names #434

Open
albamoralest opened this issue Nov 28, 2023 · 1 comment
Open

Validating CSV column names #434

albamoralest opened this issue Nov 28, 2023 · 1 comment
Labels
Feature New feature or request

Comments

@albamoralest
Copy link

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 x-sparql-anything: {
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
Copy link
Member

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.

@enridaga enridaga added the Feature New feature or request label Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants