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

Wrong Sparql generation from simle query #197

Open
ofilangi opened this issue Jun 3, 2022 · 0 comments
Open

Wrong Sparql generation from simle query #197

ofilangi opened this issue Jun 3, 2022 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@ofilangi
Copy link
Collaborator

ofilangi commented Jun 3, 2022

SWDiscovery(config)
       .something("uri")
       .set(URI(uri))
       .isSubjectOf(QueryVariable("relation"),"datatype")
       .console()
       .select("relation","datatype")
       .commit().raw()
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?uri ?relation ?datatype

WHERE {
	VALUES ?uri { <http://rdf.ncbi.nlm.nih.gov/pubchem/reference/PMID34198149> } .
	?uri ?relation ?datatype .
{ { ?relation ?property_relation ?object_relation } UNION { [] ?relation [] } UNION {  ?subject_relation ?property_relation ?relation } }
}
@ofilangi ofilangi added the bug Something isn't working label Jun 3, 2022
@ofilangi ofilangi added this to the 0.4.0 milestone Jun 3, 2022
@ofilangi ofilangi self-assigned this Jun 3, 2022
@ofilangi ofilangi changed the title Bad generation Wrong Sparql generation from simle query Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant