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

Not all sparql in tests work. #2

Open
dhananjaybhandiwad opened this issue Nov 30, 2023 · 0 comments
Open

Not all sparql in tests work. #2

dhananjaybhandiwad opened this issue Nov 30, 2023 · 0 comments

Comments

@dhananjaybhandiwad
Copy link

dhananjaybhandiwad commented Nov 30, 2023

Hey authors,
Thank you for this wonderful project. I was just facing some issues and not all the sparql in the test seem to convert to cypher queries. Is there any particular reason for it. Also i had some custom sparql queries to execute.
For Example:
PREFIX wd: http://www.wikidata.org/entity/
PREFIX wds: http://www.wikidata.org/entity/statement/
PREFIX wdv: http://www.wikidata.org/value/
PREFIX wdt: http://www.wikidata.org/prop/direct/
PREFIX wikibase: http://wikiba.se/ontology#
PREFIX p: http://www.wikidata.org/prop/
PREFIX ps: http://www.wikidata.org/prop/statement/
PREFIX pq: http://www.wikidata.org/prop/qualifier/
PREFIX rdfs: http://www.w3.org/2000/01/rdf-schema#
PREFIX bd: http://www.bigdata.com/rdf#
PREFIX n1: http://www.wikidata.org/prop/qualifier/
PREFIX n2: http://www.wikidata.org/prop/qualifier/
SELECT DISTINCT ?thing_8 ?P580_46
WHERE { ?thing_8 p:P39 [ ps:P39 wd:Q373548 ; n1:P580 ?P580_46 ] .
FILTER ( NOT EXISTS { ?thing_8 p:P39 [ n1:P580 ?P580_46 ; n1:P582 ?P582_139 ] . } )
?thing_8 p:P27 [ ps:P27 wd:Q750 ] . }
LIMIT 1

The simplest way of executing this I thought was to pass it in one of the test file and run mvn test. But this seems to not convert this query to cypher. This is intermediate output from the logs below.

In opSlice
(slice _ 1
(distinct
(project (?thing_8 ?P580_46)
(filter (notexists
(bgp
(triple ?thing_8 http://www.wikidata.org/prop/P39 ??1)
(triple ??1 http://www.wikidata.org/prop/qualifier/P580 ?P580_46)
(triple ??1 http://www.wikidata.org/prop/qualifier/P582 ?P582_139)
))
(bgp
(triple ?thing_8 http://www.wikidata.org/prop/P39 ??0)
(triple ??0 http://www.wikidata.org/prop/statement/P39 http://www.wikidata.org/entity/Q373548)
(triple ??0 http://www.wikidata.org/prop/qualifier/P580 ?P580_46)
(triple ?thing_8 http://www.wikidata.org/prop/P27 ??2)
(triple ??2 http://www.wikidata.org/prop/statement/P27 http://www.wikidata.org/entity/Q750)
)))))

Is there any particular way to do this. Please let me know any help is highly appreciated.

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