"3·1운동 지방시위에 관한 LOD SPARQL 사용 방법 및 예시"의 두 판 사이의 차이
pinocchio
(→SPARQL 사용 방법) |
(→SPARQL 사용 방법) |
||
1번째 줄: | 1번째 줄: | ||
==SPARQL 사용 방법== | ==SPARQL 사용 방법== | ||
1. [http://dh.aks.ac.kr:8890/sparql 3·1운동 LOD SPARQL Endpoint] 페이지로 이동한다 | 1. [http://dh.aks.ac.kr:8890/sparql 3·1운동 LOD SPARQL Endpoint] 페이지로 이동한다 | ||
− | ::[[File:querySample.png| | + | ::[[File:querySample.png|600px]] |
+ | |||
2. 맨 위 Default Data Set Name (Graph IRI) 란에 http://dh.aks.ac.kr/ontologies/mf 를 입력한다 | 2. 맨 위 Default Data Set Name (Graph IRI) 란에 http://dh.aks.ac.kr/ontologies/mf 를 입력한다 | ||
+ | |||
3. Query Text 창에 질의문을 입력하고 Run Query를 클릭한다. | 3. Query Text 창에 질의문을 입력하고 Run Query를 클릭한다. | ||
+ | |||
※ [[3·1운동 데이터 모델| 3·1운동 데이터 모델 참고]] | ※ [[3·1운동 데이터 모델| 3·1운동 데이터 모델 참고]] | ||
2018년 12월 10일 (월) 12:04 판
목차
SPARQL 사용 방법
1. 3·1운동 LOD SPARQL Endpoint 페이지로 이동한다
2. 맨 위 Default Data Set Name (Graph IRI) 란에 http://dh.aks.ac.kr/ontologies/mf 를 입력한다
3. Query Text 창에 질의문을 입력하고 Run Query를 클릭한다.
SPARQL 사용 예시
3·1운동 관련 모든 사건을 출력해주세요
prefix time: <https://www.w3.org/TR/owl-time/> prefix mf: <http://dh.aks.ac.kr/ontologies/mf#> prefix rdfs:<http://www.w3.org/2000/01/rdf-schema#> prefix owl: <http://www.w3.org/2002/07/owl#> prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix xml: <http://www.w3.org/XML/1998/namespace> prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> prefix edm: <http://www.europeana.eu/schemas/edm/> select * where { ?event rdf:type mf:Event. }
3·1운동 관련 사건 중에 3월에 일어난 사건만을 날짜순으로 보여주세요
prefix time: <https://www.w3.org/TR/owl-time/> prefix mf: <http://dh.aks.ac.kr/ontologies/mf#> prefix rdfs:<http://www.w3.org/2000/01/rdf-schema#> prefix owl: <http://www.w3.org/2002/07/owl#> prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix xml: <http://www.w3.org/XML/1998/namespace> prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> prefix edm: <http://www.europeana.eu/schemas/edm/> select * where { ?event time:begin ?date. filter contains( str(?date), "1919-03") } order by ?date
경기도에 있는 모든 3·1운동 사적지를 출력해주세요
prefix time: <https://www.w3.org/TR/owl-time/> prefix mf: <http://dh.aks.ac.kr/ontologies/mf#> prefix rdfs:<http://www.w3.org/2000/01/rdf-schema#> prefix owl: <http://www.w3.org/2002/07/owl#> prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix xml: <http://www.w3.org/XML/1998/namespace> prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> prefix edm: <http://www.europeana.eu/schemas/edm/> select * where { ?Place mf:currentAddress ?address. filter(contains(str(?address), '경기')) }
유관순이 주도했던 시위와, 그 시위에 함께 참여한 인물들의 이름을 출력해주세요
prefix time: <https://www.w3.org/TR/owl-time/> prefix mf: <http://dh.aks.ac.kr/ontologies/mf#> prefix rdfs:<http://www.w3.org/2000/01/rdf-schema#> prefix owl: <http://www.w3.org/2002/07/owl#> prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix xml: <http://www.w3.org/XML/1998/namespace> prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> prefix edm: <http://www.europeana.eu/schemas/edm/> select * where { mf:유관순 mf:takesLead ?event. ?event mf:hasLeader ?coleader }
제암리 학살과 관련된 사건을 출력해주세요
prefix time: <https://www.w3.org/TR/owl-time/> prefix mf: <http://dh.aks.ac.kr/ontologies/mf#> prefix rdfs:<http://www.w3.org/2000/01/rdf-schema#> prefix owl: <http://www.w3.org/2002/07/owl#> prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix xml: <http://www.w3.org/XML/1998/namespace> prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> prefix edm: <http://www.europeana.eu/schemas/edm/> select * where { mf:제암리교회_학살 ?relation ?event. ?event rdf:type mf:Event }