2013-05-07 4 views
1

SPARQL (Netbeans의 서블릿)에서 concat에 대한 오류 메시지가 표시됩니다. 이 문제에 대한 해결책을 제시해 주시겠습니까? 라인 (1)가 발생 칼럼 (132)에서SPARQL '연결'오류

PREFIX table:<http://www.daltons.com#> 
SELECT ?name 
WHERE{ 
    ?Author table:hasFirstName ?FN. 
    ?Author table:hasLastName ?LN. 
    bind (concat(str(?FN),str(?LN)) as ?name) 
} 

어휘 오류 "("(40), 후 : "바인딩"

+0

예나 (및 ARQ 어떤 버전의) 인 현재 작성된 쿼리는 현재 ARQ 코드로 유효성을 검사하여 오래된 버전 일 수 있습니다. 현재 릴리스는 2.10.0입니다. – RobV

+0

"bind"와 "(". – kr1

+0

이 쿼리는 내 컴퓨터에서 예외를주지 않는다. –

답변

0
"PREFIX table:<http://www.example.com#>" 
+"SELECT " 
+ "(CONCAT(?FN, \" \",COALESCE(?MD,\"\"),\" \", ?LN) AS ?name)" 
+"WHERE{" 
+"?Author table:hasFirstName ?FN. " 
+"OPTIONAL{?Author table:hasMiddleName ?MD}." 
+"?Author table:hasLastName ?LN} "; 

Finally found the right answer with this code and used 2.8.8 version arq of jena . Thanks for your interest and suggestions. 
+0

ARQ 2.8.8은 매우 오래된 버전이며 http://jena.apache.org에서 최신 버전을 구할 수 있습니다. – RobV