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

Declaring baseIRI whithout load #15

Open
derwehr opened this issue May 21, 2019 · 4 comments
Open

Declaring baseIRI whithout load #15

derwehr opened this issue May 21, 2019 · 4 comments

Comments

@derwehr
Copy link

derwehr commented May 21, 2019

Is there any way to set a baseIRI without using load?

I'm trying to skip load by using

select ?x
from <URL>
...

How would i go about setting a baseIRI in this scenario?

@vcharpenay
Copy link
Owner

the query engine should set it up automatically when dereferencing URL. Currently, it doesn't but it is a bug. I'll fix that asap.

@derwehr
Copy link
Author

derwehr commented May 22, 2019

Okay thank you.
Does that mean relative URLs in the FROM clause won't be supported? e.g.:

SELECT ?x
FROM <../path>
...

I dont necessarily need them but it would add some convenience :)

@vcharpenay
Copy link
Owner

The SPARQL syntax itself has a BASE keyword.

BASE <URL>
SELECT ?x
FROM <../path>
WHERE ...

See also the SPARQL ref, sec. 4.1.1.2.

@derwehr
Copy link
Author

derwehr commented May 27, 2019

Alright I got it to work now thank you.

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

2 participants