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

CLI: default format depending on query type or output file extension #26

Closed
enridaga opened this issue Feb 23, 2021 · 3 comments
Closed
Assignees
Milestone

Comments

@enridaga
Copy link
Member

ASK / SELECT: application/sparql-results+json
CONSTRUCT: text/turtle

@enridaga enridaga self-assigned this Feb 23, 2021
@enridaga
Copy link
Member Author

Still problems with defaults values

@enridaga enridaga reopened this Feb 25, 2021
@enridaga
Copy link
Member Author

enridaga commented Feb 2, 2022

As part of this, we may want to separate CLI handling from execution workflow

@enridaga enridaga added this to the v0.6.0 milestone Feb 2, 2022
@enridaga enridaga changed the title CLI: define default format depending on query type CLI: define default format depending on query type or output file extension Feb 3, 2022
@enridaga enridaga changed the title CLI: define default format depending on query type or output file extension CLI: default format depending on query type or output file extension Feb 3, 2022
@enridaga
Copy link
Member Author

enridaga commented Feb 7, 2022

Error:

$ fx -q queries/draft-ontology.sparql -o ontology/ontology.ttl 
Exception in thread "main" java.lang.RuntimeException: Unsupported format: TURTLE
	at com.github.sparqlanything.cli.SPARQLAnything.executeQuery(SPARQLAnything.java:147)
	at com.github.sparqlanything.cli.SPARQLAnything.main(SPARQLAnything.java:464)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant