What is the logic of LIMIT when using CONSTRUCT queries in SPARQL?
When I use CONSTRUCT to query DBpedia, I find that the results sometimes don't match the LIMIT
Example
SPARQL:
CONSTRUCT {
?s a ?sType .
?s ?p ?o .
?o a ?oType .
}
WHERE {
GRAPH <http://dbpedia.org> {
?s a ?sType .
?s ?p ?o .
?o a ?oType .
}
}
LIMIT XXX
When limit = 3, result is incorrect:
<http://dbpedia.org/resource/Cabrini_Medical_Center> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/building> .
<http://dbpedia.org/resource/Cabrini_Medical_Center> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing> .
<http://dbpedia.org/resource/Cabrini_Medical_Center> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Thing> .
<http://dbpedia.org/ontology/building> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
When limit = 10, result is incorrect:
<http://dbpedia.org/ontology/locationCountry> <http://www.w3.org/2000/01/rdf-schema#subPropertyOf> <http://dbpedia.org/ontology/location> .
<http://dbpedia.org/ontology/locationCountry> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
<http://dbpedia.org/resource/Cabrini_Medical_Center> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/building> .
<http://dbpedia.org/ontology/location> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
<http://dbpedia.org/ontology/locationCity> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
<http://dbpedia.org/ontology/locationCity> <http://www.w3.org/2000/01/rdf-schema#subPropertyOf> <http://dbpedia.org/ontology/location> .
<http://dbpedia.org/resource/Cabrini_Medical_Center> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing> .
<http://dbpedia.org/resource/Cabrini_Medical_Center> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/class/yago/Artifact100021939> .
<http://dbpedia.org/ontology/locationCity> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#ObjectProperty> .
<http://dbpedia.org/resource/Cabrini_Medical_Center> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Thing> .
<http://dbpedia.org/ontology/locationCountry> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#ObjectProperty> .
<http://dbpedia.org/resource/Cabrini_Medical_Center> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/class/yago/Building102913152> .
<http://dbpedia.org/ontology/building> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
<http://dbpedia.org/resource/Cabrini_Medical_Center> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/class/yago/Hospital103540595> .