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

hiblue
이동: 둘러보기, 검색
(생물정보 LOD)
8번째 줄: 8번째 줄:
 
==생물정보 LOD==
 
==생물정보 LOD==
 
*[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]
 
  '''덕유산에서 서식하고 있는 모든 버섯의 학명을 반환하시오.'''
 
  '''덕유산에서 서식하고 있는 모든 버섯의 학명을 반환하시오.'''
 
  prefix wildlife: <http://lod.nature.go.kr/resource/>
 
  prefix wildlife: <http://lod.nature.go.kr/resource/>
16번째 줄: 17번째 줄:
 
   ?species wlo:scientificName ?sName .
 
   ?species wlo:scientificName ?sName .
 
  } limit 500
 
  } 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 .
 +
}
 +
 +
'''2013년도에 연관정보를 구축한 생물종 수는?.'''
 +
SELECT DISTINCT ?kingdom ?label ( COUNT(DISTINCT ?species) AS ?count )
 +
WHERE {
 +
    ?species <http://lod.nature.go.kr/ontology/order> ?scientificName .
 +
    {
 +
        ?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

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

생물정보 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 .
}
2013년도에 연관정보를 구축한 생물종 수는?.
SELECT DISTINCT ?kingdom ?label ( COUNT(DISTINCT ?species) AS ?count )
WHERE {
   ?species <http://lod.nature.go.kr/ontology/order> ?scientificName .
   {
       ?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