메뉴 건너뛰기

Bigdata, Semantic IoT, Hadoop, NoSQL

Bigdata, Hadoop ecosystem, Semantic IoT등의 프로젝트를 진행중에 습득한 내용을 정리하는 곳입니다.
필요한 분을 위해서 공개하고 있습니다. 문의사항은 gooper@gooper.com로 메일을 보내주세요.


sparql federated query 예제

총관리자 2017.01.19 11:14 조회 수 : 31

1. union

select ?loc where 
{ 
  {
  ?loc rdf:type dul:PhysicalPlace ;
  }
  union 
  {
  service <http://gsda2:23030/icbms/sparql> 
  {
    ?loc rdf:type dul:PhysicalPlace .
  }
}
}


2. 메인 endpoint에서 구한 ?loc으로 다른 sparql endpoint에 있는 ?device값 구하기


select ?device where 
{ 
  ?loc rdf:type dul:PhysicalPlace ;
  service <http://gsda2:23030/icbms/sparql> 
  {
    ?loc o:hasDevice ?device .
  }
}


A personal place to organize information learned during the development of such Hadoop, Hive, Hbase, Semantic IoT, etc.
We are open to the required minutes. Please send inquiries to gooper@gooper.com.

위로