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

SPARQL Error: [OpenLink][Virtuoso iODBC Driver][Virtuoso Server]SQ074: Line 19: SP030: SPARQL compiler, line 8: Undefined namespace prefix at 'qb' before '.' #198

Open
k00ni opened this issue Feb 22, 2016 · 4 comments
Assignees
Labels

Comments

@k00ni
Copy link
Member

k00ni commented Feb 22, 2016

That is an issue based on an email, maybe its author can contribute directly using Github.

He wrote:

when i go to the CubeViz: Analyze DataCube menu option I get the following error:

EMERG (0): Erfurt_Store_Adapter_Exception: SPARQL Error: 
[OpenLink][Virtuoso iODBC Driver][Virtuoso Server]SQ074: Line 19: SP030: SPARQL 
compiler, line 8: Undefined namespace prefix at 'qb' before '.' () in query:

SELECT DISTINCT ?element

FROM <http://ns.ontowiki.net/SysOnt/>
FROM <http://ns.ontowiki.net/SysBase/>
WHERE {
                    ?element a qb:Observation .
                    ?element qb:dataSet ?dataset .
                    ?element ?dimension ?dimelement .
                    ?element ?measure ?value .
                    ?dataset a qb:DataSet .
                    ?dataset qb:structure ?datastructuredefintion .
                    ?dimensionspecification a qb:ComponentSpecification .
                    ?dimensionpecification qb:dimension ?dimension .
                    ?measurespecification a qb:ComponentSpecification .
                    ?measurespecification qb:measure ?measure .
                }  
-> /var/www/libraries/Erfurt/library/Erfurt/Store/Adapter/Virtuoso.php@1060

Of the error message, I am concerned with the escape characters (<) replacing the angle brackets < > in the FROM statements.
I get this error both from the Docker build and from the Makefile on a manual LAMP stack for CubeViz. I see from the GitHub repository for a fix Aug 11, 2015 - but I am still getting the error.

@k00ni k00ni added the error label Feb 22, 2016
@k00ni k00ni self-assigned this Feb 22, 2016
@k00ni
Copy link
Member Author

k00ni commented Feb 22, 2016

@GeorgesAlkhouri: Could you please check, if you get the same error in your CubeViz-Docker?

@GeorgesAlkhouri
Copy link
Contributor

Yes, this is the same exception we talked about a few month ago. I looked for the issue but i didn't find one. Have you written one?

@k00ni
Copy link
Member Author

k00ni commented Feb 23, 2016

Ah ok, i forgot. Can you check, if you can fix it quickly (< 30 min)?

@GeorgesAlkhouri
Copy link
Contributor

The crashing line of code:

https://github.com/AKSW/cubeviz.ontowiki/blob/master/CubevizController.php#L104

The query string is not escaped. This is may be an approach to solve the issue. We will look into it, but it will take a while until we've got time.

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

No branches or pull requests

2 participants