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 .
}
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:
does not give any results for the data:
while the following queries does give the right result: