Skip to content

Wrong Sparql generation from simle query #197

@ofilangi

Description

@ofilangi
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 } }
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions