"사용자:Hiblue"의 두 판 사이의 차이

hiblue
이동: 둘러보기, 검색
(생물정보 LOD)
(생물정보 LOD)
9번째 줄: 9번째 줄:
 
*[http://lod.nature.go.kr/main/intro/dataset.jsp 생물정보LOD 명세서]
 
*[http://lod.nature.go.kr/main/intro/dataset.jsp 생물정보LOD 명세서]
 
*[http://www.visualdataweb.de/webvowl/#file=biology3.rdf VOWL]
 
*[http://www.visualdataweb.de/webvowl/#file=biology3.rdf VOWL]
 +
*[http://lod.nature.go.kr/main/sparql/usefulsparqllist.jsp 생물LOD SPARQL Endpoint sample]
 
  '''덕유산에서 서식하고 있는 모든 버섯의 학명을 반환하시오.'''
 
  '''덕유산에서 서식하고 있는 모든 버섯의 학명을 반환하시오.'''
 
  prefix wildlife: <http://lod.nature.go.kr/resource/>
 
  prefix wildlife: <http://lod.nature.go.kr/resource/>

2018년 2월 10일 (토) 11:34 판

생물정보 LOD

덕유산에서 서식하고 있는 모든 버섯의 학명을 반환하시오.
prefix wildlife: <http://lod.nature.go.kr/resource/>
prefix wlo: <http://lod.nature.go.kr/ontology/>
select ?species ?sName where { 
 ?species wlo:hasInternalDistribution wildlife:Deokyusan . 
 ?species wlo:kingdom wildlife:Fungi .
 ?species wlo:scientificName ?sName .
} limit 500
4월에 꽃이 피는 식물은?
prefix wildlife: <http://lod.nature.go.kr/resource/>
prefix wlo: <http://lod.nature.go.kr/ontology/>
select ?species ?label where { 
 ?species wlo:floweringSeason wildlife:April . 
 ?species rdfs:label ?label .
} limit 500
독수리 인스턴스가 포함하고 있는 Object Property 항목을 반환하시오
prefix wildlife: <http://lod.nature.go.kr/resource/>
Select ?p ?o where {
wildlife:Aegypius_monachus ?p ?o .
?p rdf:type owl:ObjectProperty .
}
생물종별 인스턴스 개수는?
SELECT DISTINCT ?kingdom ?label ( COUNT(DISTINCT ?species) AS ?count )
WHERE {
   {
       ?species <http://lod.nature.go.kr/ontology/kingdom> <http://lod.nature.go.kr/resource/Plantae> .
       ?species <http://lod.nature.go.kr/ontology/kingdom> ?kingdom .
       ?kingdom rdfs:label ?label .
   } UNION {
       ?species <http://lod.nature.go.kr/ontology/kingdom> <http://lod.nature.go.kr/resource/Fungi> .
       ?species <http://lod.nature.go.kr/ontology/kingdom> ?kingdom .
       ?kingdom rdfs:label ?label .
   } UNION {
       ?species <http://lod.nature.go.kr/ontology/class> <http://lod.nature.go.kr/resource/Aves> .
       ?species <http://lod.nature.go.kr/ontology/class> ?kingdom .
       ?kingdom rdfs:label ?label .
   } UNION {
       ?species <http://lod.nature.go.kr/ontology/class> <http://lod.nature.go.kr/resource/Actinopterygii> .
       ?species <http://lod.nature.go.kr/ontology/class> ?kingdom .
       ?kingdom rdfs:label ?label .
   } UNION {
       {
           {
               ?species <http://lod.nature.go.kr/ontology/class> <http://lod.nature.go.kr/resource/Amphibia> .
           }
           UNION
           {
               ?species <http://lod.nature.go.kr/ontology/class> <http://lod.nature.go.kr/resource/Sauropsida> .
           }
       }
       ?species <http://lod.nature.go.kr/ontology/class> ?kingdom .
       ?kingdom rdfs:label ?label .
   }
}
GROUP BY ?kingdom ?label