Skip to content

Syntatix sugar a for rdf:type not recognized in SPARQL queries #10

@pbonte

Description

@pbonte

the 'a' which is short for http://www.w3.org/1999/02/22-rdf-syntax-ns#type is not recognized in SPARQL queries.

The query:

PREFIX example: <http://www.example.com/>

SELECT ?patient ?name ?riskScore
WHERE {
  ?patient a example:Test .
}

does not give any results for the data:

<http://www.example.com/test1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.example.com/Test> .

while the following queries does give the right result:

PREFIX example: <http://www.example.com/>

SELECT ?patient ?name ?riskScore
WHERE {
  ?patient <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> example:Test .
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions