XQuery
| 패러다임 | 선언형, 함수형, 모듈성 |
|---|---|
| 설계자 | W3C |
| 발표일 | 2007 |
| 최근 버전 | 3.1 |
| 최근 버전 출시일 | 2017년 3월 21일[1] |
| 자료형 체계 | dynamic 또는 static,[2][3] strong |
| 운영 체제 | 크로스 플랫폼 |
| 파일 확장자 | .xq, .xql, .xqm, .xqy, .xquery |
| 웹사이트 | www |
| 주요 구현체 | |
| 다수 | |
| 영향을 받은 언어 | |
| XPath, SQL, XSLT | |
XQuery(XML Query, XML 쿼리)는 일반적으로 XML, 텍스트, 벤더 특정 확장 데이터 포맷(JSON, 바이너리 등)으로 되어 있는, 정형, 비정형 데이터를 질의하고 변환하는 질의, 함수형 프로그래밍 언어이다. 이 언어는 W3C의 XML 쿼리 워킹 그룹에 의해 개발되었다. 작업은 XSL 워킹 그룹의 XSLT의 개발과 긴밀히 조율되었다. 이 두 단체는 XQuery의 하위 집합인 XPath을 함께 책임지고 있다.
XQuery 1.0은 2007년 1월 23일, W3C 권고안이 되었다.[4]
XQuery 3.0은 2014년 4월 8일 W3C 권고안이 되었다.[5]
XQuery 3.1은 2017년 3월 21일 W3C 권고안이 되었다.[6]
예시
아래의 샘플 XQuery 코드는 셰익스피어의 연극 햄릿마다 고유한 화자를 나열하며 hamlet.xml에 인코딩되어 있다.
<html><body>
{
for $act in doc("hamlet.xml")//ACT
let $speakers := distinct-values($act//SPEAKER)
return
<div>
<h1>{ string($act/TITLE) }</h1>
<ul>
{
for $speaker in $speakers
return <li>{ $speaker }</li>
}
</ul>
</div>
}
</body></html>
같이 보기
각주
- ↑ “XQuery 3.1 Recommendation”. 2017년 3월 21일.
- ↑ “XQuery 3.1: An XML Query Language”. 2017년 3월 21일.
- ↑ “XQuery and Static Typing”.
- ↑ “XML and Semantic Web W3C Standards Timeline” (PDF). 2012년 2월 4일. 2013년 4월 24일에 원본 문서 (PDF)에서 보존된 문서. 2019년 4월 15일에 확인함.
- ↑ “XQuery 3.0 Recommendation”. 2014년 4월 8일.
- ↑ “XQuery 3.1 Recommendation”. 2017년 3월 21일.
외부 링크
- W3C XML Query (XQuery)
- XQuery tutorial
- XQuery API for Java (XQJ) 자바 커뮤니티 프로세스
- hamlet.xml Hamlet in XML Format
- XQuery (presentation - as HTML slides)
- List of open-source XQuery implementations 보관됨 2019-04-20 - 웨이백 머신
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.