Hello,  i test with Joseki 3.4.3
----------------------------------------------------------------
PREFIX dbpc: <http://dbpedia.org/resource/Category:>
PREFIX dbpo: <http://dbpedia.org/ontology/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?x ?y
FROM <http://dbpedia.org/resource/Dynamic_programming>
FROM <http://dbpedia.org/resource/Optimal_control>
WHERE {?x dcterms:subject dbpc:Optimal_control .
{SELECT ?x ?y WHERE
 {?x rdfs:label ?y . FILTER (lang(?y) = 'en' || lang(?y) = 'de')
 }ORDER BY (lang(?y)) LIMIT 1
}}
----------------------------------------------------------------

WITHOUT LIMIT 1 i get:
<../Optimal_control>     "Optimal control"@en
<../Dynamic_programming> "Dynamische Programmierung"@de
<../Dynamic_programming> "Dynamic programming"@en

WITH LIMIT 1 i get:
<../Dynamic_programming> "Dynamische Programmierung"@de

I think now: This is coreect if LIMIT 1 is at the end of the query, but
LIMIT 1 for nested SELECT should effect, like ORDER BY (lang(?y)) does, 
only results with identical ?x, because  
?x dcterms:subject dbpc:Optimal_control
is outer nested SELECT, in the results this is: <../Dynamic_programming>

and therefore with LIMIT 1 i expect (??) :

<../Optimal_control>     "Optimal control"@en
<../Dynamic_programming> "Dynamische Programmierung"@de

thanks, baran.

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Reply via email to