메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.


update를 사용하는 경우는 uri는 기존에 있으며 값만 변경되는 경우는 update형태를 사용하며

delete->insert는 uri를 이용하여 새로운것을 만들고 새로이 만들어진 uri가 삭제될 수 있다면 delete->insert현태를 사용해야한다.


<update> : 기존에 uri가 있는 경우의 구문


delete  { <http://www.gooper.com/test/HumidityObservationValue_LR0001> <http://data.nasa.gov/qudt/owl/qudt#hasNumericValue>  ?delete_dest. }
insert  { <http://www.gooper.com/test/HumidityObservationValue_LR0001> <http://data.nasa.gov/qudt/owl/qudt#hasNumericValue>  0 . }
WHERE   { <http://www.gooper.com/test/HumidityObservationValue_LR0001> <http://data.nasa.gov/qudt/owl/qudt#hasNumericValue> ?delete_dest . }


-----------------------------------------------------------------------------

<delete->insert> : 기존에 uri가 없는 상태에서의 update형태

<delete>

prefix xsd: <http://www.w3.org/2001/XMLSchema#>
delete { <http://www.gooper.com/test/HumidityObservationValue_LR0001>  <http://www.loa-cnr.it/ontologies/DUL.owl#hasLocation> ?O }
WHERE  { <http://www.gooper.com/test/HumidityObservationValue_LR0001>  <http://www.loa-cnr.it/ontologies/DUL.owl#hasLocation> ?O }


<insert>

prefix xsd: <http://www.w3.org/2001/XMLSchema#>
insert data { <http://www.gooper.com/test/HumidityObservationValue_LR0001>  <http://www.loa-cnr.it/ontologies/DUL.owl#hasLocation> "<http://www.gooper.com/test/AA0001>"^^xsd:anyURI }

번호 제목 날짜 조회 수
597 mongodb에서 큰데이타 sort시 오류발생에 대한 해결방법 2015.12.22 5468
596 fuseki에 update하는 방법(java api이용)및 주의 사항 2015.12.30 4767
» update(update와 delete->insert)사용시 주의/참고사항 2016.01.06 4310
594 문자열을 숫자(integer)로 casting하기 2016.01.13 4237
593 한번에 여러값 update하기 2016.01.13 3865
592 CDH 5.4.4 버전에서 hive on tez (0.7.0)설치하기 2016.01.14 4124
591 sparql 1.1 BIND(if() as ?bind변수) 버그로 추정되는 문제점및 해결방안 -> select 문에 (if(,,) as ?bind변수) file 2016.01.21 3085
590 null 혹은 ""를 체크하는 방법 2016.01.27 4606
589 ?a는 모두 표시하면서 ?b와 비교하여 ?a=?b는 표시하고 ?a!=?b 인경우는 ""로 구성된 결과 집합을 구하는 경우 file 2016.01.29 4179
588 ?a는 모두 표시하면서 ?b와 비교하여 ?a=?b는 ""로 하고 ?a!=?b 인경우는 해당값을 가지는 결과 집합을 구하는 경우 file 2016.01.29 3050
587 select와 group by결과 값이 없는경우의 리턴 값이 다름 file 2016.02.05 3662
586 SPARQL의 유형, SPARQL 만들기등에 대한 설명 2016.02.18 3242
585 SPIN(SPARQL Inference Notation)이란.. file 2016.02.25 5626
584 TopBraid Composer에서 SPIN 사용법 file 2016.02.25 4254
583 System Properties Comparison Elasticsearch vs. Hive vs. Jena file 2016.03.10 14151
582 Spark Streaming으로 유실 없는 스트림 처리 인프라 구축하기 2016.03.11 3941
581 CentOS에서 리눅스(Linux) 포트 열기, 방화벽 설정/해제 등. 2016.03.14 4421
580 CentOS의 서버 5대에 yarn(hadoop 2.7.2)설치하기-ResourceManager HA/HDFS HA포함, JobHistory포함 2016.03.29 5228
579 bash는 PS1 변수를 통해 프롬프트의 모양을 바꿀 수 있다. 2016.03.30 4842
578 "java.net.NoRouteToHostException: 호스트로 갈 루트가 없음" 오류시 확인및 조치할 사항 2016.04.01 6327
위로